[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master faed106 129/177: * yasnippet.el (yas-key-syntaxes): Improv
From: |
João Távora |
Subject: |
[elpa] master faed106 129/177: * yasnippet.el (yas-key-syntaxes): Improve documentation. |
Date: |
Sat, 28 Mar 2015 15:41:24 +0000 |
branch: master
commit faed1062a27fd2bfd130db7c730971bcd5636c4f
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
* yasnippet.el (yas-key-syntaxes): Improve documentation.
---
yasnippet.el | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index ae55883..fc5d36b 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -391,24 +391,23 @@ the trigger key itself."
(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" "^ ")
"Syntaxes and functions to help look for trigger keys before point.
-Its elements can be either strings or functions (see below for
-the difference) and are tried in order by the snippet expansion
-mechanism until one or more expandable snippets are found.
-
-Each element is a way to skip buffer positions backwards and look
-for the start of a trigger key. A string element is simply passed
-to `skip-syntax-backward' whereas a function element is called
-with no arguments and should also place point before the original
+Each element in this list specifies how to skip buffer positions
+backwards and look for the start of a trigger key.
+
+Each element can be either a string or a functino of no
+arguments. A string element is simply passed to
+`skip-syntax-backward' whereas a function element is called with
+no arguments and should also place point before the original
position.
-If no expandable snippets are found but the function returns the
-symbol `try-again' it will be called again from the previous
-position and may again reposition point until it returns some
-other value.
+The string between the resulting buffer position and the original
+point.in the is matched against the trigger keys in the active
+snippet tables.
-The buffer's string starting at the resulting position and ending
-at the original point is matched against the active snippet
-tables.
+If no expandable snippets are found, the next element is the list
+is tried, unless a function element returned the symbol `again',
+in which case it is called again from the previous position and
+may once more reposition point.
For example, if `yas-key-syntaxes'' value is '(\"w\" \"w_\"),
trigger keys composed exclusively of \"word\"-syntax characters
- [elpa] master 4c16eae 119/177: Document uuid directive, (continued)
- [elpa] master 4c16eae 119/177: Document uuid directive, João Távora, 2015/03/28
- [elpa] master fe288a1 121/177: Fix publishing with org 7.9, João Távora, 2015/03/28
- [elpa] master e1ed662 125/177: Allow jit loading interactively, João Távora, 2015/03/28
- [elpa] master e53ec1e 124/177: Make snippets submodule track master, update it, João Távora, 2015/03/28
- [elpa] master f98c527 123/177: Replace text -> yas-text in documentation, João Távora, 2015/03/28
- [elpa] master 763f5fa 122/177: Closes #474: fix more cc-mode font-lock conflicts, João Távora, 2015/03/28
- [elpa] master 2b24aea 126/177: Merge pull request #493 from npostavs/ijit, João Távora, 2015/03/28
- [elpa] master 280ece2 131/177: Add yas-shortest-key-until-whitespace, João Távora, 2015/03/28
- [elpa] master 0b7b34a 127/177: Closes #492, closes #494: Consider defalias when calculating parent modes, João Távora, 2015/03/28
- [elpa] master 7761dee 128/177: Closes #497: Allow functions as elements in yas-key-syntaxes, João Távora, 2015/03/28
- [elpa] master faed106 129/177: * yasnippet.el (yas-key-syntaxes): Improve documentation.,
João Távora <=
- [elpa] master de34d91 130/177: Closes #470, handle non-whitespace newlines, João Távora, 2015/03/28
- [elpa] master 6b04dad 120/177: Document type directive, João Távora, 2015/03/28
- [elpa] master 10ecde1 132/177: Pass start point to yas-key-syntaxes functions, João Távora, 2015/03/28
- [elpa] master 47a3d5f 134/177: Fix yas-key-syntaxes example functions docstrings., João Távora, 2015/03/28
- [elpa] master d982b70 135/177: Fix edge case in yas-longest-key-from-whitespace, João Távora, 2015/03/28
- [elpa] master 5d10b5d 133/177: Add yas-longest-key-from-whitespace, João Távora, 2015/03/28
- [elpa] master f7ef023 137/177: Prevent disabling errors from recent `yas-current-syntaxes` logic, João Távora, 2015/03/28
- [elpa] master 1d4618b 138/177: Closes #504: Correctly discover buffers needing snippets immediately, João Távora, 2015/03/28
- [elpa] master e60e8b5 136/177: Merge pull request #503 from npostavs/key-syntaxes, João Távora, 2015/03/28
- [elpa] master 5b59b80 139/177: Closes #495: Allow symbols as aliases in `yas-snippet-dirs', João Távora, 2015/03/28