Closes #347: can't expect THIS-COMMAND to have valid value in YAS-BUFFER-LOCAL-CONDITION

This commit is contained in:
João Távora 2012-12-16 14:36:14 +00:00
parent 4f99f9dc20
commit d9f966a220

View File

@ -415,7 +415,8 @@ Attention: These hooks are not run when exiting nested/stacked snippet expansion
(defvar yas-buffer-local-condition
'(if (and (or (fourth (syntax-ppss))
(fifth (syntax-ppss)))
(eq (symbol-function this-command) 'yas-expand-from-trigger-key))
this-command
(eq this-command 'yas-expand-from-trigger-key))
'(require-snippet-condition . force-in-comment)
t)
"Snippet expanding condition.