Fix: (org-ql-select) Don't search hidden/special buffers

This commit is contained in:
Adam Porter 2019-08-13 15:05:47 -05:00
parent b634647e46
commit 3856e61800
2 changed files with 4 additions and 1 deletions

View file

@ -156,7 +156,9 @@ non-nil."
;; It feels unintuitive that `find-file-noselect' returns
;; a buffer if the filename doesn't exist.
(find-file-noselect it))
(user-error "Can't open file: %s" it)))))))
(user-error "Can't open file: %s" it)))))
;; Ignore special/hidden buffers.
(--remove (string-prefix-p " " (buffer-name it)))))
(query (org-ql--pre-process-query query))
((query preamble-re) (org-ql--query-preamble query))
(predicate (org-ql--query-predicate query))