diff --git a/faq.html b/faq.html index 6f64473..c08a5f2 100644 --- a/faq.html +++ b/faq.html @@ -7,7 +7,7 @@ - + @@ -391,7 +391,7 @@ directive:
-

Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

Validate XHTML 1.0

diff --git a/index.html b/index.html index c244862..993288c 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + @@ -194,7 +194,7 @@ for the JavaScript code in this tag.
-

Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

Validate XHTML 1.0

diff --git a/snippet-development.html b/snippet-development.html index 1048676..c944d61 100644 --- a/snippet-development.html +++ b/snippet-development.html @@ -7,7 +7,7 @@ - + @@ -154,7 +154,9 @@ for the JavaScript code in this tag.
  • # group: snippet menu grouping
  • # expand-env: expand environment
  • # binding: direct keybinding
  • -
  • # contributor: snippet author
  • +
  • # type: snippet or command
  • +
  • # uuid: unique identifier
  • +
  • # contributor: snippet author
  • Template syntax @@ -458,10 +460,43 @@ will expand the paragraph tag without newlines.
  • -

    # contributor: snippet author

    +

    # type: snippet or command

    +

    +If the type directive is set to command, the body of the snippet +is interpreted as lisp code to be evaluated when the snippet is +triggered. +

    +

    +If it's snippet (the default when there is no type directive), the +snippet body will be parsed according to the Template Syntax, +described below. +

    +
    + +
    + +
    +

    # 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

    +
    + +

    This is optional and has no effect whatsoever on snippet functionality, but it looks nice. @@ -472,7 +507,7 @@ but it looks nice.

    -

    Template syntax

    +

    Template syntax

    @@ -490,8 +525,8 @@ to TextMate's.

    Arbitrary text can be included as the content of a template. They are -usually interpreted as plain text, except $ and ==. You need to -use \` to escape them: \$ and \. The \` itself may also needed to be +usually interpreted as plain text, except $ and `. You need to +use \ to escape them: \$ and \`. The \ itself may also needed to be escaped as \\ sometimes.

    @@ -505,7 +540,7 @@ escaped as \\ sometimes.

    Emacs-Lisp code can be embedded inside the template, written inside -back-quotes (==). The lisp forms are evaluated when the snippet is +back-quotes (`). The lisp forms are evaluated when the snippet is being expanded. The evaluation is done in the same buffer as the snippet being expanded.

    @@ -840,7 +875,7 @@ performs the normal Emacs delete-char command.
    -

    Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


    Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

    Validate XHTML 1.0

    diff --git a/snippet-expansion.html b/snippet-expansion.html index f6099a6..7e60a96 100644 --- a/snippet-expansion.html +++ b/snippet-expansion.html @@ -7,7 +7,7 @@ - + @@ -633,7 +633,7 @@ See the documentation on variable -

    Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


    Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

    Validate XHTML 1.0

    diff --git a/snippet-menu.html b/snippet-menu.html index afb2f82..688033d 100644 --- a/snippet-menu.html +++ b/snippet-menu.html @@ -7,7 +7,7 @@ - + @@ -269,7 +269,7 @@ variables.
    -

    Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


    Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

    Validate XHTML 1.0

    diff --git a/snippet-organization.html b/snippet-organization.html index 83f01ec..15b5076 100644 --- a/snippet-organization.html +++ b/snippet-organization.html @@ -7,7 +7,7 @@ - + @@ -379,7 +379,7 @@ ruby-mode/
    -

    Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


    Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

    Validate XHTML 1.0

    diff --git a/snippet-reference.html b/snippet-reference.html index 9f16ae5..b9239a6 100644 --- a/snippet-reference.html +++ b/snippet-reference.html @@ -7,7 +7,7 @@ - + @@ -227,6 +227,7 @@ for the JavaScript code in this tag.
  • Useful variables @@ -1122,8 +1122,8 @@ The remaining elements are strings. defining snippets.

    -uuid is the snippets "unique-id". Loading a second snippet file -with the same uuid replaced the previous snippet. +uuid is the snippet's "unique-id". Loading a second snippet +file with the same uuid would replace the previous snippet.

    You can use yas--parse-template to return such lists based on @@ -1217,9 +1217,6 @@ It doesn't make any sense to call func programatically. omit-items is a list of snippet uuid's that will always be omitted from mode's menu, even if they're manually loaded.

    -

    -This function does nothing if yas-use-menu is nil. -

  • @@ -1331,8 +1328,20 @@ considered when expanding the snippet. +
    +

    yas-after-reload-hook

    +
    + + +

    +Hooks run after yas-reload-all. +

    +
    + +
    +
    -

    yas-snippet-beg

    +

    yas-snippet-beg

    @@ -1344,7 +1353,7 @@ Beginning position of the last snippet committed.
    -

    yas-after-exit-snippet-hook

    +

    yas-after-exit-snippet-hook

    @@ -1369,7 +1378,7 @@ Attention: These hooks are not run when exiting nested/stacked snippet expansion
    -

    yas-global-mode-hook

    +

    yas-global-mode-hook

    @@ -1381,7 +1390,7 @@ Attention: These hooks are not run when exiting nested/stacked snippet expansion
    -

    yas-dont-activate

    +

    yas-dont-activate

    @@ -1413,7 +1422,7 @@ mode's hook.
    -

    yas-minor-mode-map

    +

    yas-minor-mode-map

    @@ -1425,7 +1434,7 @@ The keymap used when yas-minor-mode i
    -

    yas-moving-away-p

    +

    yas-moving-away-p

    @@ -1437,7 +1446,7 @@ Non-nil if user is about to exit field.
    -

    yas-buffer-local-condition

    +

    yas-buffer-local-condition

    @@ -1528,7 +1537,7 @@ snippet itself contains a condition that returns the symbol
    -

    yas-modified-p

    +

    yas-modified-p

    @@ -1540,7 +1549,7 @@ Non-nil if field has been modified by user or transformation.
    -

    yas-before-expand-snippet-hook

    +

    yas-before-expand-snippet-hook

    @@ -1552,7 +1561,7 @@ Hooks to run just before expanding a snippet.
    -

    yas-keymap

    +

    yas-keymap

    @@ -1564,7 +1573,7 @@ The active keymap while a snippet expansion is in progress.
    -

    yas-key-syntaxes

    +

    yas-key-syntaxes

    @@ -1590,7 +1599,7 @@ isn't a trigger key, "foo-bar" is tried, respecting a second
    -

    yas-snippet-end

    +

    yas-snippet-end

    @@ -1602,7 +1611,7 @@ End position of the last snippet committed.
    -

    yas-minor-mode-hook

    +

    yas-minor-mode-hook

    @@ -1614,7 +1623,7 @@ Hook run when yas-minor-mode is turne
    -

    yas-verbosity

    +

    yas-verbosity

    @@ -1626,7 +1635,7 @@ Log level for yas--message 4 means trace most anything, 0 means not
    -

    yas-minor-mode-major-mode

    +

    yas-minor-mode-major-mode

    @@ -1639,7 +1648,7 @@ Log level for yas--message 4 means trace most anything, 0 means not
    -

    Generated by Org version 7.9.3f with Emacs version 24 on 2013-12-24T11:50-0500 from 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 +


    Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b

    Validate XHTML 1.0