]> code.delx.au - gnu-emacs-elpa/commitdiff
closes #391: don't assume `declare-function'/ exists, it doesn't in emacs22
authorJoao Tavora <joaotavora@gmail.com>
Mon, 22 Jul 2013 17:32:45 +0000 (18:32 +0100)
committerJoao Tavora <joaotavora@gmail.com>
Mon, 22 Jul 2013 17:32:45 +0000 (18:32 +0100)
yasnippet.el

index 7e2eeee22870698202c6acb15698ce7d01d35a42..f44a994ba99f0c719cda7546011de51c4097371e 100644 (file)
@@ -1623,7 +1623,10 @@ Optional PROMPT sets the prompt to use."
                 ido-mode))
     (yas-completing-prompt prompt choices display-fn #'ido-completing-read)))
 
-(declare-function dropdown-list "dropdown-list")
+(eval-when-compile
+  (if (fboundp 'declare-function)
+      (declare-function dropdown-list "dropdown-list")))
+
 (defun yas-dropdown-prompt (prompt choices &optional display-fn)
   (when (featurep 'dropdown-list)
     (let (formatted-choices