Document uuid directive

* doc/snippet-development.org: Mention uuid in directive list.
* yasnippet.el (yas-define-snippets): Fix docstring grammar.
This commit is contained in:
Noam Postavsky 2014-05-10 16:28:09 -04:00
parent f1760272e0
commit 4c16eaee0e
2 changed files with 8 additions and 2 deletions

View File

@ -169,6 +169,12 @@ This binding will be recorded in the keymap =html-mode-map=. To expand a
paragraph tag newlines, just press =C-u C-c C-c C-m=. Omitting the =C-u= paragraph tag newlines, just press =C-u C-c C-c C-m=. Omitting the =C-u=
will expand the paragraph tag without newlines. will expand the paragraph tag without newlines.
** =# uuid:= unique identifier
This provides to a way to identify a snippet, independent of its name.
Loading a second snippet file with the same uuid would replace the
previous snippet.
** =# contributor:= snippet author ** =# contributor:= snippet author
This is optional and has no effect whatsoever on snippet functionality, This is optional and has no effect whatsoever on snippet functionality,

View File

@ -1631,8 +1631,8 @@ The remaining elements are strings.
FILE is probably of very little use if you're programatically FILE is probably of very little use if you're programatically
defining snippets. defining snippets.
UUID is the snippets \"unique-id\". Loading a second snippet file UUID is the snippet's \"unique-id\". Loading a second snippet
with the same uuid replaced the previous snippet. file with the same uuid would replace the previous snippet.
You can use `yas--parse-template' to return such lists based on You can use `yas--parse-template' to return such lists based on
the current buffers contents." the current buffers contents."