diff --git a/faq.html b/faq.html index c08a5f2..866da45 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 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/index.html b/index.html index 993288c..223723b 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 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/snippet-development.html b/snippet-development.html index c944d61..2a7e031 100644 --- a/snippet-development.html +++ b/snippet-development.html @@ -7,7 +7,7 @@ - + @@ -671,12 +671,13 @@ the field and others mirrors.
-If the value of an ${n:
-construct starts with and contains $(
, then
-it is interpreted as a mirror for field n
with a transformation. The
-mirror's text content is calculated according to this transformation,
-which is Emacs-lisp code that gets evaluated in an environment where the
-variable text
(or yas-text
) is bound to the text content (string)
-contained in the field n
.Here's an example for Objective-C:
+If the value of an ${n:
-construct starts with and contains $(
,
+then it is interpreted as a mirror for field n
with a
+transformation. The mirror's text content is calculated according to
+this transformation, which is Emacs-lisp code that gets evaluated in
+an environment where the variable yas-text
is bound to the text
+content (string) contained in the field n
. Here's an example for
+Objective-C:
n
.Here's an example for Objective-C:
return $2;
}
-- (void)set${2:$(capitalize text)}:($1)aValue
+- (void)set${2:$(capitalize yas-text)}:($1)aValue
{
[$2 autorelease];
$2 = [aValue retain];
@@ -696,12 +697,13 @@ $0
-Look at ${2:$(capitalize text)}
, it is a mirror with transformation
-instead of a field. The actual field is at the first line: ${2:foo}
.
-When you type text in ${2:foo}
, the transformation will be evaluated
-and the result will be placed there as the transformed text. So in this
-example, if you type "baz" in the field, the transformed text will be
-"Baz". This example is also available in the screencast.
+Look at ${2:$(capitalize yas-text)}
, it is a mirror with
+transformation instead of a field. The actual field is at the first
+line: ${2:foo}
. When you type text in ${2:foo}
, the transformation
+will be evaluated and the result will be placed there as the
+transformed text. So in this example, if you type "baz" in the field,
+the transformed text will be "Baz". This example is also available in
+the screencast.
Another example is for rst-mode
. In reStructuredText, the document
@@ -735,9 +737,9 @@ is not. Here's an snippet for rst title:
-
${1:$(make-string (string-width text) ?\=)} +${1:$(make-string (string-width yas-text) ?\=)} ${1:Title} -${1:$(make-string (string-width text) ?\=)} +${1:$(make-string (string-width yas-text) ?\=)} $0@@ -875,7 +877,7 @@ performs the normal Emacsdelete-char
command.
Generated by Org version 7.9.3f with Emacs version 24 on 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/snippet-expansion.html b/snippet-expansion.html index 7e60a96..9594879 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 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/snippet-menu.html b/snippet-menu.html index 688033d..6c971c3 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 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/snippet-organization.html b/snippet-organization.html index 15b5076..4e5ea34 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 2014-05-11T19:37-0400 from fe288a156c063666d9c6613b6eea0ed5a515a86b +
Generated by Org version 7.9.3f with Emacs version 24 on 2014-06-17T19:49-0400 from e53ec1e0c3611c3a0f4ac6228aab041a82b9d3bb
diff --git a/snippet-reference.html b/snippet-reference.html index b9239a6..2d248a9 100644 --- a/snippet-reference.html +++ b/snippet-reference.html @@ -7,7 +7,7 @@ - + @@ -1648,7 +1648,7 @@ Log level foryas--message
4 means trace most anything, 0 means not