From 4f99f9dc205db03754d1d4664704e6838e545b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 27 Nov 2012 00:25:51 +0000 Subject: [PATCH] Closes #339 --- yasnippet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index d5b6973..42227f1 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -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)))