[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3c0be40 11/42: Update FAQ
From: |
Noam Postavsky |
Subject: |
[elpa] master 3c0be40 11/42: Update FAQ |
Date: |
Sun, 22 Dec 2019 17:37:57 -0500 (EST) |
branch: master
commit 3c0be40e21386d652d18b9b602ca6cfce2f270cd
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Update FAQ
* doc/faq.org: Add two questions about yas-key-syntaxes. Remove
reference to obsolete Google Groups. Remove question about turning
off minor mode in some buffers, it was out of date, and not frequently
asked.
* yasnippet.el (yas-key-syntaxes): Fix docstring.
---
doc/faq.org | 32 +++++++++++++-------------------
yasnippet.el | 2 +-
2 files changed, 14 insertions(+), 20 deletions(-)
diff --git a/doc/faq.org b/doc/faq.org
index 9994e7b..cac9068 100644
--- a/doc/faq.org
+++ b/doc/faq.org
@@ -7,6 +7,16 @@
the Github issue tracker. It might be more up-to-date than this
list.
+* Why are my snippet abbrev keys triggering when I don't want them too?
+Expansion of abbrev keys is controlled by
[[sym:yas-key-syntaxes][=yas-key-syntaxes=]]. Try
+removing entries which correspond to the abbrev key character syntax.
+For example, if you have a snippet with abbrev key "bar", that you
+don't want to trigger when point follows the text =foo_bar=, remove
+the ="w"= entry (since "bar" has only word syntax characters).
+
+* Why aren't my snippet abbrev keys triggering when I want them too?
+See previous question, but in reverse.
+
* Why is there an extra newline?
If there is a newline at the end of a snippet definition file,
@@ -33,9 +43,9 @@ active:
This is apparently related to overlay priorities. For some reason, the
=keymap= property of flyspell's overlays always takes priority over the
same property in YASnippet's overlays, even if one sets the latter's
-=priority= property to something big. If you know emacs-lisp and can
-solve this problem, drop a line in the
-[[http://groups.google.com/group/smart-snippet][discussion group]].
+=priority= property to something big. If you know emacs-lisp
+and can solve this problem, send a message to address@hidden
+or the [[Github issue
tracker][https://github.com/joaotavora/yasnippet/issues/]].
* How do I use alternative keys, i.e. not TAB?
@@ -56,22 +66,6 @@ Edit the keymaps
[[sym:yas-minor-mode-map][=yas-minor-mode-map=]] and
(define-key yas-keymap (kbd "<new-prev-field-key>") 'yas-prev)
#+end_src
-* How do I turn off the minor mode where in some buffers?
-
-The best way, since version 0.6.1c, is to set the default value of the
-variable [[sym:yas-dont-activate][=yas-dont-activate=]] to a lambda function
like so:
-
-#+BEGIN_SRC emacs-lisp
- (set-default 'yas-dont-activate
- #'(lambda ()
- (and yas-root-directory
- (null (yas-get-snippet-tables)))))
-#+END_SRC
-
-This is also the default value starting for that version. It skips the
-minor mode in buffers where it is not applicable (no snippet tables),
-but only once you have setup your yas-root-directory.
-
* How do I define an abbrev key containing characters not supported by the
filesystem?
- *Note*: This question applies if you're still defining snippets
diff --git a/yasnippet.el b/yasnippet.el
index 215a7c3..766de4e 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -442,7 +442,7 @@ are looked for first. Failing that, longer keys composed of
\"word\" or \"symbol\" syntax are looked for. Therefore,
triggering after
-foo-bar
+foo-barbaz
will, according to the \"w\" element first try \"barbaz\". If
that isn't a trigger key, \"foo-barbaz\" is tried, respecting the
- [elpa] master 79b90c9 04/42: Remove compatibility code for Emacs 22 and earlier, (continued)
- [elpa] master 79b90c9 04/42: Remove compatibility code for Emacs 22 and earlier, Noam Postavsky, 2019/12/22
- [elpa] master d3bb879 05/42: Remove last-buffer-undo-list compat definition, Noam Postavsky, 2019/12/22
- [elpa] master 4f78d03 01/42: Close #937: Officially support automatically moving to next field, Noam Postavsky, 2019/12/22
- [elpa] master 1e71360 06/42: Per #947: fix typo in README.md, Noam Postavsky, 2019/12/22
- [elpa] master 7a178a2 07/42: Remove spurious change of before-change-functions, Noam Postavsky, 2019/12/22
- [elpa] master 8328c38 08/42: Fix another failure of cc-mode indentation, Noam Postavsky, 2019/12/22
- [elpa] master eeb05f0 10/42: Handle field adjust of pending active fields, Noam Postavsky, 2019/12/22
- [elpa] master 8452227 13/42: Consider fundamental-mode as ultimate ancestor, Noam Postavsky, 2019/12/22
- [elpa] master fb253ac 15/42: New public function yas-maybe-expand-abbrev-key-filter, Noam Postavsky, 2019/12/22
- [elpa] master bceb65b 16/42: Make backspace/DEL clear field (#957), Noam Postavsky, 2019/12/22
- [elpa] master 3c0be40 11/42: Update FAQ,
Noam Postavsky <=
- [elpa] master 8b25d62 20/42: * doc/snippet-development.org: Fix typos., Noam Postavsky, 2019/12/22
- [elpa] master 7612bc1 24/42: Don't check this-command in yas-not-string-or-comment-condition, Noam Postavsky, 2019/12/22
- [elpa] master dabc719 21/42: Don't turn on yas-minor-mode in temp buffers, Noam Postavsky, 2019/12/22
- [elpa] master fc33b2f 28/42: Make overlay-modification protection optional, Noam Postavsky, 2019/12/22
- [elpa] master 048d030 22/42: Fix line-relative snapshotting for org src blocks, Noam Postavsky, 2019/12/22
- [elpa] master bae20af 27/42: ; * doc/faq.org: Linkify bug reference., Noam Postavsky, 2019/12/22
- [elpa] master ffc733d 09/42: ; Debug code fixes, Noam Postavsky, 2019/12/22
- [elpa] master 1d96da2 18/42: Don't call before/after change-functions twice, Noam Postavsky, 2019/12/22
- [elpa] master 6a3619b 23/42: Fix additional corner case with org source block integration, Noam Postavsky, 2019/12/22
- [elpa] master 9cedd59 25/42: Allow disabling snippet keybindings from hook, Noam Postavsky, 2019/12/22