]> code.delx.au - gnu-emacs-elpa/commitdiff
Closes #339
authorJoão Távora <joaotavora@gmail.com>
Tue, 27 Nov 2012 00:25:51 +0000 (00:25 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 27 Nov 2012 00:25:51 +0000 (00:25 +0000)
yasnippet.el

index d5b697324203fd265f836e2a5c8ec53735776a4f..42227f1a84e04f2b8922b3855f69934ed8f39121 100644 (file)
@@ -1311,7 +1311,7 @@ them all in `yas--menu-table'"
 
 Optional KIND is as documented at `called-interactively-p'
 in GNU Emacs 24.1 or higher."
-  (if (eq 0 (cdr (subr-arity (symbol-function 'called-interactively-p))))
+  (if (string< "24.1" emacs-version)
       '(called-interactively-p)
     `(called-interactively-p ,kind)))