Use prefix arg 0 to inhibit note taking for TODO change
* lisp/org.el (org-todo): Interpret 0 prefix arg as note inhibitor. Sometimes I want to quickly make a few TODOs done in the agenda and I want to bypass the note taking I have normally set up. With this change, I can press `0 t d' in the agenda to do this.
This commit is contained in:
parent
b43c1c621f
commit
773596e347
|
@ -11168,6 +11168,7 @@ With numeric prefix arg, switch to that state.
|
|||
With a double \\[universal-argument] prefix, switch to the next set of TODO \
|
||||
keywords (nextset).
|
||||
With a triple \\[universal-argument] prefix, circumvent any state blocking.
|
||||
With a numeric prefix arg of 0, inhibit note taking for the change.
|
||||
|
||||
For calling through lisp, arg is also interpreted in the following way:
|
||||
'none -> empty state
|
||||
|
@ -11199,6 +11200,9 @@ For calling through lisp, arg is also interpreted in the following way:
|
|||
(org-log-done org-log-done)
|
||||
(org-log-repeat org-log-repeat)
|
||||
(org-todo-log-states org-todo-log-states)
|
||||
(org-inhibit-logging
|
||||
(if (equal arg 0)
|
||||
(progn (setq arg nil) 'note) org-inhibit-logging))
|
||||
(this (match-string 1))
|
||||
(hl-pos (match-beginning 0))
|
||||
(head (org-get-todo-sequence-head this))
|
||||
|
|
Loading…
Reference in New Issue