Fix: (org-ql-find) Always map across a list
This commit is contained in:
parent
77916a1c4f
commit
c2b8af3181
1 changed files with 3 additions and 0 deletions
|
|
@ -198,6 +198,9 @@ single predicate)."
|
||||||
;; which interrupts it, so we must work around this problem by
|
;; which interrupts it, so we must work around this problem by
|
||||||
;; ensuring all of the BUFFERS-FILES are loaded and initialized
|
;; ensuring all of the BUFFERS-FILES are loaded and initialized
|
||||||
;; before calling `completing-read'.
|
;; before calling `completing-read'.
|
||||||
|
(unless (listp buffers-files)
|
||||||
|
;; Since we map across this argument, we ensure it's a list.
|
||||||
|
(setf buffers-files (list buffers-files)))
|
||||||
(mapc #'org-ql--ensure-buffer buffers-files)
|
(mapc #'org-ql--ensure-buffer buffers-files)
|
||||||
(let* ((completion-styles '(org-ql-find))
|
(let* ((completion-styles '(org-ql-find))
|
||||||
(completion-styles-alist (list (list 'org-ql-find #'try #'all "Org QL Find")))
|
(completion-styles-alist (list (list 'org-ql-find #'try #'all "Org QL Find")))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue