forked from mirrors/org-mode
Fix typo in `org-todo-log-states' variable name
* doc/org-manual.org (Priorities): * lisp/org.el (org-update-parent-todo-statistics): Fix incorrect spelling of `org-todo-log-states' variable. Reported-by: Evgenii Klimov <eugene.dev@lipklim.org> Reported-by: Max Nikulin <manikulin@gmail.com> Link: https://list.orgmode.org/orgmode/e900a08d-11af-9106-423e-28a2befe813d@gmail.com/
This commit is contained in:
parent
a4586f0d71
commit
0b6f9f8677
|
@ -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)
|
||||
|
|
|
@ -9709,7 +9709,7 @@ when there is a statistics cookie in the headline!
|
|||
|
||||
(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\"))))")
|
||||
|
||||
(defvar org-todo-statistics-hook nil
|
||||
|
|
Loading…
Reference in New Issue