mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
closes #391: don't assume `declare-function'/ exists, it doesn't in emacs22
This commit is contained in:
parent
636c01d34a
commit
9e085ec05d
@ -1623,7 +1623,10 @@ Optional PROMPT sets the prompt to use."
|
|||||||
ido-mode))
|
ido-mode))
|
||||||
(yas-completing-prompt prompt choices display-fn #'ido-completing-read)))
|
(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)
|
(defun yas-dropdown-prompt (prompt choices &optional display-fn)
|
||||||
(when (featurep 'dropdown-list)
|
(when (featurep 'dropdown-list)
|
||||||
(let (formatted-choices
|
(let (formatted-choices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user