]> code.delx.au - gnu-emacs-elpa/commit
Closes #497: Allow functions as elements in yas-key-syntaxes
authorJoão Távora <joaotavora@gmail.com>
Tue, 29 Jul 2014 00:19:58 +0000 (01:19 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 29 Jul 2014 00:19:58 +0000 (01:19 +0100)
commit7761deeeb52b779b6c4fb7525aedced929099fbf
treefe5c840d5b44b7ff6cf92428b840ccb6b73c3553
parent0b7b34a333ff5fbb279f57980d6cc983e9a5d8c9
Closes #497: Allow functions as elements in yas-key-syntaxes

* yasnippet.el (yas--templates-for-key-at-point): Renamed from
`yas--current-key'.
(yas-key-syntaxes): Overhaul documentation.
(yas-expand-from-trigger-key): Use
`yas--templates-for-key-at-point'.

* yasnippet-tests.el (complicated-yas-key-syntaxes): New test.
(yas-should-expand, yas-should-not-expand): Friendlier failure
message.
yasnippet-tests.el
yasnippet.el