closes #391: don't assume `declare-function'/ exists, it doesn't in emacs22

This commit is contained in:
Joao Tavora 2013-07-22 18:32:45 +01:00
parent 636c01d34a
commit 9e085ec05d

View 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