mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
* yasnippet.el (yas--define-snippets-2): Use file-name-NONdirectory.
This commit is contained in:
parent
041821a210
commit
01139a2deb
@ -926,8 +926,11 @@ Honour `yas-dont-activate', which see."
|
||||
expand-env load-file xkeybinding xuuid save-file
|
||||
&aux
|
||||
(name (or xname
|
||||
(and load-file (file-name-directory load-file))
|
||||
(and save-file (file-name-directory save-file))
|
||||
;; A little redundant: we always get a name
|
||||
;; 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))
|
||||
(keybinding (yas--read-keybinding xkeybinding))
|
||||
(uuid (or xuuid name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user