Add `grok-org-element-parse-whole-buffer' command

This commit is contained in:
Gerard Vermeulen 2023-06-29 06:43:20 +02:00
parent 540d604079
commit 41a1de66e2

View File

@ -3957,6 +3957,12 @@ non-interactive =org-element= functions to an =Emacs-lisp= buffer.
(pp-display-expression
(org-element-parse-buffer what) grok-org-output)))
(defun grok-org-element-parse-whole-buffer ()
"Like `grok-org-element-parse-buffer' from point 1 and sans granularity."
(interactive)
(org-with-point-at 1
(pp-display-expression (org-element-parse-buffer) grok-org-output)))
(defun grok-org-heading-components ()
"Call `org-heading-components' interactively and pretty-print."
(interactive)