Fix: (org-ql-completing-read-snippet) while-no-input
This commit is contained in:
parent
7ecb4a8b10
commit
40b25ac319
1 changed files with 11 additions and 7 deletions
|
|
@ -91,13 +91,17 @@ Returns value returned by function
|
||||||
`org-ql-completing-read-snippet-function' or
|
`org-ql-completing-read-snippet-function' or
|
||||||
`org-ql-completing-read--snippet-simple', whichever returns a
|
`org-ql-completing-read--snippet-simple', whichever returns a
|
||||||
value, or nil."
|
value, or nil."
|
||||||
(while-no-input
|
(pcase (while-no-input
|
||||||
;; Using `while-no-input' here doesn't make it as
|
;; Using `while-no-input' here doesn't make it as
|
||||||
;; responsive as, e.g. Helm while typing, but it seems to
|
;; responsive as, e.g. Helm while typing, but it seems to
|
||||||
;; help a little when using the org-rifle-style snippets.
|
;; help a little when using the org-rifle-style snippets.
|
||||||
(org-with-point-at marker
|
(org-with-point-at marker
|
||||||
(or (funcall org-ql-completing-read-snippet-function)
|
(or (funcall org-ql-completing-read-snippet-function)
|
||||||
(org-ql-completing-read--snippet-simple)))))
|
(org-ql-completing-read--snippet-simple))))
|
||||||
|
(`t
|
||||||
|
;; Interrupted: return nil (which can be concatted).
|
||||||
|
nil)
|
||||||
|
(else else)))
|
||||||
|
|
||||||
(defun org-ql-completing-read-path (marker)
|
(defun org-ql-completing-read-path (marker)
|
||||||
"Return formatted outline path for entry at MARKER."
|
"Return formatted outline path for entry at MARKER."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue