Browse Source

org-collector.el: Don't narrow to subtree when collecting properties on the whole buffer.

* org-collector.el (org-dblock-write:propview): Don't narrow
to subtree when collecting properties on the whole buffer.

TINYCHANGE
Bastien Guerry 7 years ago
parent
commit
9602e1cb38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-collector.el

+ 1 - 1
contrib/lisp/org-collector.el

@@ -131,7 +131,7 @@ preceeding the dblock, then update the contents of the dblock."
 		  ((setq idpos (org-find-entry-with-id id))
 		   (goto-char idpos))
 		  (t (error "Cannot find entry with :ID: %s" id))))
-	  (org-narrow-to-subtree)
+	  (unless (eq id 'global) (org-narrow-to-subtree))
 	  (setq stringformat (if noquote "%s" "%S"))
 	  (setq table (org-propview-to-table
 		       (org-propview-collect cols stringformat conds match scope inherit