diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-07-30 16:52:11 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-07-30 16:52:11 -0400 |
commit | 80c9f491fc8dc068421f32cd15e0b387a6d1ee11 (patch) | |
tree | 016bb577c006768a47012d5fa4ca61d61eb5e0cf /doc/misc/org.org | |
parent | 735f3700f6510608415fd647dc28c0332c11d011 (diff) | |
download | emacs-80c9f491fc8dc068421f32cd15e0b387a6d1ee11.tar.gz emacs-80c9f491fc8dc068421f32cd15e0b387a6d1ee11.tar.bz2 emacs-80c9f491fc8dc068421f32cd15e0b387a6d1ee11.zip |
Update to Org 9.6.7-5-gd1d0c3
Diffstat (limited to 'doc/misc/org.org')
-rw-r--r-- | doc/misc/org.org | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org index ae3fae0623e..d8bbcb4d0c5 100644 --- a/doc/misc/org.org +++ b/doc/misc/org.org @@ -4562,7 +4562,7 @@ all children are done, you can use the following setup: #+begin_src emacs-lisp (defun org-summary-todo (n-done n-not-done) "Switch entry to DONE when all subentries are done, to TODO otherwise." - (let (org-log-done org-log-states) ; turn off logging + (let (org-log-done org-todo-log-states) ; turn off logging (org-todo (if (= n-not-done 0) "DONE" "TODO")))) (add-hook 'org-after-todo-statistics-hook #'org-summary-todo) @@ -16034,7 +16034,12 @@ can remove every headline in the buffer during export like this: "Remove all headlines in the current buffer. BACKEND is the export back-end being used, as a symbol." (org-map-entries - (lambda () (delete-region (point) (line-beginning-position 2))))) + (lambda () + (delete-region (point) (line-beginning-position 2)) + ;; We need to tell `org-map-entries' to not skip over heading at + ;; point. Otherwise, it would continue from _next_ heading. See + ;; the docstring of `org-map-entries' for details. + (setq org-map-continue-from (point))))) (add-hook 'org-export-before-parsing-hook #'my-headline-removal) #+end_src |