branch: externals-release/org commit 67ec6997698eda1b5107c71d073b95884d69f25a Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
org-dblock-write:columnview: Fix when :id file:foo.org is not open * lisp/org-colview.el (org-dblock-write:columnview): Fix generating columnview when :id point to a file that is not yet open in Emacs. Just open it as needed. Reported-by: Vlastimil Vondra <vlastimil.von...@gmail.com> Link: https://orgmode.org/list/cacjq+cwjyi-d_jfy9ove_kvimflqm4t3+dvtr_qk_kzazt7...@mail.gmail.com --- lisp/org-colview.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-colview.el b/lisp/org-colview.el index d0be87fcc5..5c19d08ef6 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -1495,7 +1495,7 @@ PARAMS is a property list of parameters: (setq view-file filename) (setq view-pos position)) (_ (user-error "Cannot find entry with :ID: %s" id))) - (with-current-buffer (if view-file (get-file-buffer view-file) + (with-current-buffer (if view-file (org-get-agenda-file-buffer view-file) (current-buffer)) (org-with-wide-buffer (when view-pos (goto-char view-pos))