]> code.delx.au - gnu-emacs-elpa/commitdiff
Closes #347: can't expect THIS-COMMAND to have valid value in YAS-BUFFER-LOCAL-CONDITION
authorJoão Távora <joaotavora@gmail.com>
Sun, 16 Dec 2012 14:36:14 +0000 (14:36 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 16 Dec 2012 14:36:14 +0000 (14:36 +0000)
yasnippet.el

index 42227f1a84e04f2b8922b3855f69934ed8f39121..c33c3c6bda4cd0c74fc4eb33e5aadf18c3d9ebeb 100644 (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.