diff options
author | Noam Postavsky <npostavs@users.sourceforge.net> | 2015-09-04 20:19:52 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@users.sourceforge.net> | 2015-09-05 15:41:05 -0400 |
commit | 215ad9bcf2e832be31778f026cb4f4469c7301e3 (patch) | |
tree | 31fba075b9341f52d268ee71c9a16efe4ad0e801 /yasnippet-debug.el | |
parent | cc1c758ab7c8b7312fea26f9d8dbce2118ef916b (diff) |
Fix #597; use SAVE-FILE to visit compiled snippets
Rename the existing FILE field to LOAD-FILE, and add a new SAVE-FILE to
yas--template struct. Normally they will be the same, but compiled
snippets have only SAVE-FILE because they are loaded by "compiled" code.
* yasnippet.el (yas--template): Remove field file, add load-file and
save-file.
(yas--parse-template): Update snippet-definition list in docstrings.
(yas-define-snippets): Move LOAD-FILE value to SAVE-FILE when compiling.
(yas--template-get-file): New function.
(yas--visit-snippet-file-1, yas-load-snippet-buffer,
yas-load-snippet-buffer-and-close): Use yas--template-load-file,
yas--template-save-file, or yas--template-get-file, as appropriate.
* doc/snippet-organization.org (The =.yas-compiled-snippet.el= file):
Remove caveat that is no longer relevant.
Diffstat (limited to 'yasnippet-debug.el')
0 files changed, 0 insertions, 0 deletions