* yasnippet.el (yas--define-snippets-2): Use file-name-NONdirectory.

This commit is contained in:
Noam Postavsky 2015-09-12 16:30:01 -04:00
parent 041821a210
commit 01139a2deb

View File

@ -926,8 +926,11 @@ Honour `yas-dont-activate', which see."
expand-env load-file xkeybinding xuuid save-file expand-env load-file xkeybinding xuuid save-file
&aux &aux
(name (or xname (name (or xname
(and load-file (file-name-directory load-file)) ;; A little redundant: we always get a name
(and save-file (file-name-directory save-file)) ;; from `yas--parse-template' except when
;; there isn't a file.
(and load-file (file-name-nondirectory load-file))
(and save-file (file-name-nondirectory save-file))
key)) key))
(keybinding (yas--read-keybinding xkeybinding)) (keybinding (yas--read-keybinding xkeybinding))
(uuid (or xuuid name)) (uuid (or xuuid name))