mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Fix issue reported in http://stackoverflow.com/questions/9298866/emacs-yasnippet-insert-snippet-on-keystroke
This commit is contained in:
parent
b8a1ffdf27
commit
c43c55b573
5
yasnippet.el
Normal file → Executable file
5
yasnippet.el
Normal file → Executable file
@ -2133,7 +2133,10 @@ object satisfying `yas/field-p' to restrict the expansion to."
|
|||||||
If expansion fails, execute the previous binding for this key"
|
If expansion fails, execute the previous binding for this key"
|
||||||
(interactive)
|
(interactive)
|
||||||
(setq yas/condition-cache-timestamp (current-time))
|
(setq yas/condition-cache-timestamp (current-time))
|
||||||
(let* ((vec (this-command-keys-vector))
|
(let* ((yas/prefix current-prefix-arg)
|
||||||
|
(vec (subseq (this-command-keys-vector) (if current-prefix-arg
|
||||||
|
universal-argument-num-events
|
||||||
|
0)))
|
||||||
(templates (mapcan #'(lambda (table)
|
(templates (mapcan #'(lambda (table)
|
||||||
(yas/fetch table vec))
|
(yas/fetch table vec))
|
||||||
(yas/get-snippet-tables))))
|
(yas/get-snippet-tables))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user