João Távora
81e26b418c
Merge pull request #431 from ignisf/update-snippet-submodules
...
Migrate to snippets maintained by the TextMate community
2013-11-25 16:10:22 -08:00
Petko Bordjukov
042837d542
Migrate to snippets maintained by the TextMate community
2013-11-25 22:51:02 +02:00
João Távora
3002594c0e
Merge pull request #430 from npostavs/org-doc
2013-11-24 17:49:29 -08:00
Noam Postavsky
8e8320fadb
remove reference to yas-trigger-key
2013-11-23 14:38:43 -05:00
Noam Postavsky
fdd550a698
Fix screencast link.
2013-11-23 14:20:50 -05:00
Noam Postavsky
b20f0a4270
fix exporting of doc strings for org manual
...
need to pass (1+ level) to yas--document-symbol
2013-11-23 13:31:38 -05:00
Noam Postavsky
bc4cfbbb04
yas/ -> yas-
2013-11-12 01:55:05 -05:00
Noam Postavsky
a4a7e5e31e
fix typo: .yas.parents -> .yas-parents
...
same as 8853127, for org
2013-11-12 01:47:46 -05:00
Noam Postavsky
f5457dfa33
Go back to org manual
2013-11-12 01:42:44 -05:00
João Távora
0f67c07ddd
Merge pull request #424 from ljos/de/activate-extra-mode
...
Feature: de/activate-extra-mode
2013-10-31 06:28:26 -07:00
Joao Tavora
6ee3d2e0b6
Closes #404 : merge remote-tracking branch 'npostavs/widen'
2013-10-31 13:03:42 +01:00
Joao Tavora
43a484e943
add: external test for issue #404
2013-10-31 13:03:32 +01:00
Noam Postavsky
d7b2b89eaa
widen before deleting regions
...
This avoid problems with c-mode's after change hooks.
2013-10-30 18:25:51 -04:00
Bjarte Johansen
d5d6e456bf
Feature: de/activate-extra-mode
...
Adds functionality to deactivate/activate extra modes. Two new functions
are added: `activate-extra-mode', `deactivate-extra-mode'. These two
functions activate and deactivate snippets for the given mode in the
current buffer. The use-case for the functions is to have a simple
interface for adding new snippets when activating a new minor mode.
The previous way of doing this, using `yas-extra-modes', is made
obsolete and the new deactivate/activate should be the preferred
instead. The reason for making `yas-extra-modes' obsolete is to keep a
simple interface.
See issue #420 for more information.
2013-10-27 20:38:12 +01:00
João Távora
84b7e69413
Merge pull request #423 from npostavs/load-snippet-ui
...
Improve load snippet ui
2013-10-26 16:37:17 -07:00
Noam Postavsky
33dff9ad12
let C-c C-c save existing snippets too
2013-10-26 14:40:50 -04:00
Noam Postavsky
205b0e6970
move snippet saving from loading to closing
...
yas-load-snippet-buffer now just loads the snippet,
yas-load-snippet-buffer-and-close also saves it.
2013-10-26 13:42:32 -04:00
Noam Postavsky
ffd497d541
don't kill snippet buffer unless saved
...
Split the quit-window part of yas-load-snippet-buffer into
yas-load-snippet-buffer-and-close, and only quit if the snippet was
saved.
This resolves #417 , where you could lose a snippet by giving the wrong
answer in a prompt.
2013-10-26 12:11:04 -04:00
Joao Tavora
32ee5cbde5
Closes #415 : remove c-specific hacks, harmful on emacs 24.3
2013-10-21 09:28:44 +01:00
João Távora
6c3e0294dd
Merge pull request #412 from npostavs/less-narrow
...
Wait till after content insertion to narrow
2013-10-14 09:28:42 -07:00
Noam Postavsky
5c76a0fda2
test middle-of-buffer snippet insertion
2013-10-14 11:48:04 -04:00
João Távora
3bb1515046
Merge pull request #409 from npostavs/font-lock
...
Fix yas--font-lock-keywords
2013-10-14 08:46:18 -07:00
Noam Postavsky
51e9e8e53c
wait till after content insertion to narrow
...
Fixes #404 without inhibiting change hooks.
2013-10-14 10:00:45 -04:00
Noam Postavsky
6997922011
Revert "inhibit change hooks during (insert content)"
...
This reverts commit 90d4cae1b1bbfacc612e73444f1e5a723ae4036e.
2013-10-14 09:57:11 -04:00
Joao Tavora
7849ffcec5
fix: don't use universal-argument-num-events
2013-10-14 10:26:34 +01:00
Joao Tavora
6268cc26b3
add: test for issue #404
2013-10-14 10:25:38 +01:00
Noam Postavsky
90d4cae1b1
inhibit change hooks during (insert content)
...
`yas-expand-snippet' narrows to a 0 size region before doing (insert
content), this confuses cc-mode's before-change-functions that
invalidate some cached information. Binding `inhibit-modification-hooks'
to `t' prevents calling these functions.
Fixes #404 .
2013-10-14 01:05:29 -04:00
Noam Postavsky
f21ddd1b2e
remove redundant font-lock-keywords
...
`lisp-font-lock-keywords' is identical to `lisp-font-lock-keywords1',
`lisp-font-lock-keywords2' is a superset of `lisp-font-lock-keywords1'.
2013-10-13 18:00:00 -04:00
Noam Postavsky
79f3656b3e
fix font-lock-keywords syntax
...
The syntax is (MATCHER . FACENAME) (note the dot).
2013-10-13 17:55:58 -04:00
João Távora
d963c41a14
Closes #406 : correct docstring for yas-extra-modes
2013-10-10 00:02:39 +01:00
João Távora
13cfdbc164
fix: remove references to dropdown-list.el in Rakefile
2013-10-10 00:00:22 +01:00
João Távora
1aac5fc273
Merge pull request #407 from dongxiong/patch-1
...
Update manual.mdown
2013-10-09 15:57:43 -07:00
dongxiong
88531271f1
Update manual.mdown
...
file name error
2013-10-03 12:09:26 +08:00
João Távora
3ec62aba0d
fix: please older emacsen, don't use LETREC after all
...
also fix some compiler warnings
2013-09-07 18:55:37 +01:00
João Távora
78c52fdf5c
fix: shoosh warning with LETREC instead of LET
2013-09-02 12:01:24 +01:00
João Távora
ce50b3dbfa
Closes #318 : Don't use CL-LABELS for backward compatibility with older emacsen
2013-09-02 11:55:55 +01:00
João Távora
a7d40ed14a
Closes #318 : correctly implement YAS--MODES-TO-ACTIVATE
...
- simpler and got rid of YAS--ALL-PARENTS
- also got rid of YAS/MODE-SYMBOL backward compatibility hack
2013-08-31 23:48:19 +01:00
João Távora
ddaf9a9f5c
Fix: cleanup yasnippet-tests.el
...
- add edebug-form-specs
- replace "yas/" with "yas-"
- yas/ert => yas-batch-run-tests
2013-08-31 23:48:00 +01:00
Joao Tavora
6ce6b24f52
fix: replace 'text' in 'yas-text' in bundled snippets
...
The previous commit broke these snippets by enabling
2013-08-30 17:13:02 +01:00
Joao Tavora
13d87aa3c0
fix: more idiomatic elisp, better docstrings, less byte-compiler warnings
...
By Stefan Monnier, with original commentary.
"Here's an untested patch of cleanups, found partly via compilation using
lexical-binding and partly via checkdoc-current-buffer (and
occasionally by stumble-upon happenstance)."
2013-08-29 10:20:31 +01:00
João Távora
a2f0f7f767
Merge pull request #397 from thisirs/customizable-snippet
...
Make default snippet customizable
2013-08-20 08:53:32 -07:00
thisirs
501857e767
Assume NO-TEMPLATE is non-nil if `yas-new-snippet-default' is nil
2013-08-20 17:19:35 +02:00
thisirs
80bb95326b
Factor out embedded elisp code
...
* yasnippet.el (yas--key-from-desc): Added
2013-08-20 17:19:35 +02:00
thisirs
3acb8c5773
Make default snippet customizable
2013-08-20 17:19:35 +02:00
Joao Tavora
9e085ec05d
closes #391 : don't assume `declare-function'/ exists, it doesn't in emacs22
2013-07-22 18:32:45 +01:00
João Távora
636c01d34a
doc: finally decided to write the manual in markdown
...
will use same or similar doc helpers
2013-05-09 00:07:22 +01:00
João Távora
ccea21bf99
doc: remove README.org
2013-05-08 23:50:54 +01:00
Joao Tavora
8bf75fe425
Closes #372 : removed trailing spaces in snippets
2013-05-05 21:15:27 -04:00
Joao Tavora
9df05fc413
Minor: indenting in for yasnippet-tests.el macro
2013-05-05 20:42:33 -04:00
Joao Tavora
0da56720a8
Closes #318 : now checks for circular parenthood in snippet dirs
2013-05-05 20:42:33 -04:00