[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8f1fa08 049/177: replace obsolete refs
From: |
João Távora |
Subject: |
[elpa] master 8f1fa08 049/177: replace obsolete refs |
Date: |
Sat, 28 Mar 2015 15:40:45 +0000 |
branch: master
commit 8f1fa089fb6325b3b8e8f0854940aa2e1aac6f7d
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
replace obsolete refs
yas-trigger-key -> bind yas-expand
yas-mode-symbol -> call yas-activate-extra-mode
---
doc/snippet-expansion.org | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/doc/snippet-expansion.org b/doc/snippet-expansion.org
index aa0ce37..54a212f 100644
--- a/doc/snippet-expansion.org
+++ b/doc/snippet-expansion.org
@@ -59,7 +59,7 @@ YASnippet in some buffers by setting the buffer-local variable
[[sym:yas-fallback-behaviour][=yas-fallback-behaviour=]] is a customization
variable bound to
'=call-other-command= by default. If [[sym:yas-expand][=yas-expand=]] failed
to find any
suitable snippet to expand, it will disable the minor mode temporarily
-and find if there's any other command bound the
[[sym:yas-trigger-key][=yas-trigger-key=]].
+and find if there's any other command bound to the same key.
If found, the command will be called. Usually this works very well
--when there's a snippet, expand it, otherwise, call whatever command
@@ -140,13 +140,11 @@ In particular, the following things matter:
also considered. This works recursively, i.e. parents of parents of
eligible tables are also considered.
-- Buffer-local [[sym:yas-mode-symbol][=yas-mode-symbol=]] variable
+- Buffer-local list of extra modes
- This can be used to consider snippet tables whose name does not
- correspond to a major mode. If you set this variable to a name , like
- =rinari-minor-mode=, you can have some snippets expand only in that
- minor mode. Naturally, you want to set this conditionally, i.e. only
- when entering that minor mode, so using a hook is a good idea.
+ Use [[#yas-activate-extra-mode][=yas-activate-extra-mode=]] to consider
snippet tables whose name
+ does not correspond to a major mode. Typically, you call this from
+ a minor mode hook.
- Buffer-local
[[sym:yas-buffer-local-condition][=yas-buffer-local-condition=]] variable
@@ -158,9 +156,9 @@ In particular, the following things matter:
*** The condition system
Consider this scenario: you are an old Emacs hacker. You like the
-abbrev-way and set [[sym:yas-trigger-key][=yas-trigger-key=]] to =SPC=.
However, you don't want
-=if= to be expanded as a snippet when you are typing in a comment block
-or a string (e.g. in =python-mode=).
+abbrev-way and bind [[sym:yas-expand][=yas-expand=]] to =SPC=. However, you
don't want
+=if= to be expanded as a snippet when you are typing in a comment
+block or a string (e.g. in =python-mode=).
If you use the =# condition := directive (see
[[./snippet-development.org][Writing Snippets]]) you could just specify
- [elpa] master 042837d 038/177: Migrate to snippets maintained by the TextMate community, (continued)
- [elpa] master 042837d 038/177: Migrate to snippets maintained by the TextMate community, João Távora, 2015/03/28
- [elpa] master 81e26b4 039/177: Merge pull request #431 from ignisf/update-snippet-submodules, João Távora, 2015/03/28
- [elpa] master c7c6516 040/177: don't use link abbreviations, João Távora, 2015/03/28
- [elpa] master d451fef 041/177: rename manual.org to index.org, João Távora, 2015/03/28
- [elpa] master 5acc976 043/177: split symbol reference into separate file, João Távora, 2015/03/28
- [elpa] master fd8423c 045/177: fix links, João Távora, 2015/03/28
- [elpa] master 7b82424 046/177: move index.org subsection into snippet-expansion.org, João Távora, 2015/03/28
- [elpa] master 3002594 037/177: Merge pull request #430 from npostavs/org-doc, João Távora, 2015/03/28
- [elpa] master 875ef77 044/177: move index.org subsection into snippet-organization.org, João Távora, 2015/03/28
- [elpa] master 2f7bb6c 048/177: move images to the section they describe, João Távora, 2015/03/28
- [elpa] master 8f1fa08 049/177: replace obsolete refs,
João Távora <=
- [elpa] master 08a44b4 050/177: add code examples for snippet-expansion.rst, João Távora, 2015/03/28
- [elpa] master dfdb89c 054/177: remove erroneous #+BEGIN/END_QUOTE, João Távora, 2015/03/28
- [elpa] master eaeb6ff 051/177: more links to docstrings, don't repeat docstrings, João Távora, 2015/03/28
- [elpa] master 07b1d39 056/177: move #+STARTUP to org-setup.inc; add #+LINK_HOME, João Távora, 2015/03/28
- [elpa] master fd3fa39 057/177: publish org doc from Rakefile, João Távora, 2015/03/28
- [elpa] master 2c237cc 060/177: check function doc before variable doc, João Távora, 2015/03/28
- [elpa] master eaa3141 059/177: fix docstring extraction for "fancy" docs, João Távora, 2015/03/28
- [elpa] master 8d7c9a6 058/177: retrieve function documentation correctly, João Távora, 2015/03/28
- [elpa] master 63873e7 052/177: snippet-menu.org: links, formatting, obsolete refs, João Távora, 2015/03/28
- [elpa] master e46d9c7 047/177: link to docstring ref; fix other links, formatting, João Távora, 2015/03/28