457 Commits

Author SHA1 Message Date
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
Joao Tavora
0da56720a8 Closes #318: now checks for circular parenthood in snippet dirs 2013-05-05 20:42:33 -04:00
Jonas Bernoulli
57138e6df4 do not require dropdown-list at compile time
It might not be available.

Also update commentary with respect to dropdown-list.
2013-05-04 03:36:06 +02:00
Guillaume Papin
8772b51052 Fix yas--version to compatible with version-to-list 2013-02-04 10:42:09 +01:00
Takafumi Arakaki
2e118646f0 Fix yas--message for the case message contains % 2013-01-12 18:23:16 +01:00
João Távora
618cf506ee Doc: document structures YAS--FIELD and YAS--MIRROR 2012-12-25 04:30:26 +00:00
João Távora
74e8f43f06 Closes #351: sort mirrors by nesting depth when updating 2012-12-25 04:30:19 +00:00
Joao Tavora
04970abf30 Closes #315: don't consider keybindings when filtering snippets in YAS-ACTIVE-KEYS 2012-12-24 16:35:03 +00:00
João Távora
1ef0091de1 Fix: YAS-RELOAD-ALL preserves user bindings on YAS-MINOR-MODE-MAP cleanup
- Don't create a new keymap on every reload
2012-12-23 20:43:23 +00:00
João Távora
9b31880ed1 Fix: double check if mac trigger symbol is available 2012-12-22 18:18:04 +00:00
João Távora
1db685c480 Fix: YAS--CALLED-INTERACTIVELY-P should reverse its condition check 2012-12-22 18:04:54 +00:00
João Távora
1bc497ecbe Closes #335: YAS-DONT-ACTIVATE is only buffer-local in pre-24 emacsen 2012-12-17 00:13:17 +00:00
João Távora
327fa4b86e Merge pull request #344 from dgutov/no-aget
Fix: remove the use of AGET that has creeped in
2012-12-16 15:53:04 -08:00
João Távora
d9f966a220 Closes #347: can't expect THIS-COMMAND to have valid value in YAS-BUFFER-LOCAL-CONDITION 2012-12-16 14:36:14 +00:00
Dmitry Gutov
f6d6d4ca56 Remove the use of aget that has creeped in
See also c38c3aa, 38db5aa9fbf0f60dce63b83cab8f028bfcd152bd and
9de1c5f4fb6f281cfa4af869d393db76616cb42e#commitcomment-2265088
2012-12-09 03:08:57 +04:00
João Távora
4f99f9dc20 Closes #339 2012-11-27 00:25:51 +00:00
Joao Tavora
0778a1b61b Fix: Closes #330 2012-11-16 15:15:24 +00:00
João Távora
0ab9fb281e Minor: make 'yas--define-snippets-1' an internal defun 2012-11-08 22:22:41 +00:00
João Távora
d5865b1092 Merge remote-tracking branch 'rolandwalker/byte-compiler-3'
Fix: reorder defuns to quieten byte-compiler

Conflicts:
	yasnippet.el
2012-11-08 22:21:19 +00:00
João Távora
552008872b Minor: cleanup internal doc headings slightly 2012-11-08 22:15:42 +00:00
Roland Walker
b7fe4c1f8d reorder defuns to quieten byte-compiler
Two warnings avoided:
function `yas-define-snippets' defined multiple times in this file
the function `yas-define-snippets' is not known to be defined
2012-11-08 14:33:21 -05:00
Roland Walker
7d411fbfd7 replace interactive-p with called-interactively-p macro
tested compatible with GNU Emacs v 22.x - 24.x
2012-11-08 12:47:00 -05:00
João Távora
880767e669 Merge remote-tracking branch 'rolandwalker/flet'
Conflicts:
	yasnippet.el
2012-11-06 18:33:37 +00:00
Roland Walker
4e07abaec7 comment 2012-11-06 13:06:01 -05:00
João Távora
185c771ded Closes #253. 2012-11-06 16:28:16 +00:00
João Távora
9de1c5f4fb Fix: need to require assoc, since using aget somewhere 2012-11-06 15:51:32 +00:00
João Távora
81dbf038a1 Fix: expose and honour yas-dont-activate 2012-11-06 15:18:04 +00:00
João Távora
73a1b485d6 Merge branch 'trigger-key-fallback-cleanup'
Conflicts:
	yasnippet.el
2012-11-06 14:16:46 +00:00
João Távora
cd70010b83 Closes #296: No longer use customizable yas-trigger-key and friends.
Use keymaps that the user can customise with `define-key` like all the
other modes
2012-11-06 14:12:18 +00:00
João Távora
5aff68266c Merge pull request #323 from rolandwalker/byte-compiler
Fix: quieten byte-compiler
2012-11-06 04:50:38 -08:00
Roland Walker
32e56098fb future-proof against obsoleting of `flet'
flet will be marked obsolete starting in Emacs 24.3
2012-11-05 11:09:25 -05:00
Roland Walker
9574288277 checkdoc + spelling 2012-11-05 10:59:34 -05:00
Roland Walker
49dde5177b quieten byte-compiler 2012-11-05 10:07:46 -05:00
Christopher Monsanto
7130d9c365 Fix "arrayp, nil" bug in yas-load-snippet-buffer. 2012-09-23 11:26:01 -04:00
João Távora
38db5aa9fb Refactor: remove horrible 'yas--trigger-key-for-fallback' and rework 'yas--fallback' 2012-08-22 22:56:30 +01:00
João Távora
9503c332f5 Closes #290: problem when advancing the start of a mirror-in-field
* Rewrote 'yas--update-mirrors'
* Added unit test
* Advancing is done exceptionally in 'yas--update-mirrors'
  not 'yas--mirror-update-display' and just before we need to
  re-update the mirror-in-field.
* Alternative to prior point would be to have fields carry a reference
  to their child mirrors.
2012-08-22 00:52:17 +01:00
João Távora
8a26ab0a31 Closes #277: add new yas-active-keys (for auto-complete)
Also documented and reviewed related functionality slightly.
commit 51b182104b
2012-08-19 13:51:33 +01:00
João Távora
08c6dd44b3 Fix: arrgh remove the ^M line-endings again 2012-08-19 13:46:34 +01:00
Joao Tavora
38c4b734c9 Closes #285: fix typo introduced in 71c8e0ea469c2992a31d17b0722ebdeb789fd1bf 2012-08-16 10:45:33 +01:00
João Távora
100beaf735 Fix: Ooops forgot to commit the actual fix for #281. 2012-08-15 15:38:10 +01:00
João Távora
7981f8d63b Closes #281: jit-load in reverse order to maintain coherence with yas-snippet-dirs 2012-08-15 15:38:10 +01:00
Joao Tavora
5eede17563 Fix: new yas-trigger-key default messed up the fallbacks.
Introduced an ugly `yas--trigger-key-for-fallback` hack, but should be good.
2012-08-07 12:44:14 +01:00
Joao Tavora
38093c1a9e Fix: default value for yas-trigger-key is not "<tab>" not "TAB"
After some exploration, this seems to be the more correct default.
Corrected test that checks for correct binding in org-mode, pass in emacs23 and emacs24
2012-08-07 12:06:53 +01:00
Joao Tavora
b4ccb6e956 Refactor: yas-load-snippet-buffer can be called non-interactively 2012-08-06 18:39:11 +01:00
João Távora
18714eac59 Fix: Put buffers of yas-tryout-snippet in yas-minor-mode 2012-08-06 08:40:20 +01:00
Joao Tavora
c967f74847 Closes #271: 4th try, with backquote, need protection before collection
* Add one more test, probably will need even more.
2012-08-03 18:36:29 +01:00
Joao Tavora
197104b450 Closes #271: 3rd try, protect escapes after collecting backquote elisp
* Add more tests
* Now only need to escape backslashes in mirror/field
  transformations
2012-08-03 11:03:11 +01:00