org-map-entries: Fix when buffer is not a file buffer and SCOPE is nil
* lisp/org.el (org-map-entries): Avoid triggering check for existence of file on FS when SCOPE is nil. Link: https://old.reddit.com/r/emacs/comments/1bnhz24/bug_nonexistent_agenda_file_s/
This commit is contained in:
parent
d7f7b63a77
commit
6223f20a64
|
@ -12307,7 +12307,7 @@ a *different* entry, you cannot use these techniques."
|
|||
;; agenda cache for non-file buffers.
|
||||
(when buffer-file-name
|
||||
(org-agenda-prepare-buffers
|
||||
(and buffer-file-name (list buffer-file-name))))
|
||||
(and buffer-file-name (list (current-buffer)))))
|
||||
(setq res
|
||||
(org-scan-tags
|
||||
func matcher org--matcher-tags-todo-only start-level)))
|
||||
|
|
Loading…
Reference in New Issue