Fix: (org-ql-view--link-store) Don't store link to buffers
This commit is contained in:
parent
01660aac22
commit
87b952c7bf
1 changed files with 4 additions and 0 deletions
|
|
@ -652,6 +652,10 @@ When opened, the link searches the buffer it's opened from."
|
||||||
(require 'url-util)
|
(require 'url-util)
|
||||||
(when org-ql-view-query
|
(when org-ql-view-query
|
||||||
;; Only Org QL View buffers should have `org-ql-view-query' set.
|
;; Only Org QL View buffers should have `org-ql-view-query' set.
|
||||||
|
(when (or (bufferp org-ql-view-buffers-files)
|
||||||
|
(cl-some #'bufferp org-ql-view-buffers-files))
|
||||||
|
;; Buffers are unreadable, so they can't be linked to.
|
||||||
|
(user-error "Views that search buffers rather than files can't be linked to"))
|
||||||
(cl-incf org-ql-view--link-store-counter)
|
(cl-incf org-ql-view--link-store-counter)
|
||||||
(cl-flet ((prompt-for (buffers-files)
|
(cl-flet ((prompt-for (buffers-files)
|
||||||
;; HACK: Use counter to avoid prompting the first of the
|
;; HACK: Use counter to avoid prompting the first of the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue