mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix invalid-function error on snippet prompt
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
(file-in-directory-p (yas--template-get-file x) doom-emacs-dir)))
|
(file-in-directory-p (yas--template-get-file x) doom-emacs-dir)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +snippets-prompt-private (prompt choices &optional fn)
|
(defun +snippets-prompt-private (prompt choices &optional display-fn)
|
||||||
"Prioritize private snippets over built-in ones if there are multiple
|
"Prioritize private snippets over built-in ones if there are multiple
|
||||||
choices.
|
choices.
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ ignored. This makes it easy to override built-in snippets with private ones."
|
|||||||
(choices (cl-remove-duplicates choices :test #'+snippets--remove-p)))
|
(choices (cl-remove-duplicates choices :test #'+snippets--remove-p)))
|
||||||
(if (cdr choices)
|
(if (cdr choices)
|
||||||
(cl-loop for fn in (cdr (memq '+snippets-prompt-private yas-prompt-functions))
|
(cl-loop for fn in (cdr (memq '+snippets-prompt-private yas-prompt-functions))
|
||||||
if (funcall prompt choices fn)
|
if (funcall fn prompt choices display-fn)
|
||||||
return it)
|
return it)
|
||||||
(car choices)))))
|
(car choices)))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user