summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-11-17 08:56:11 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2011-11-17 08:56:11 +0100
commit773596e347e21b3e06e116ccc1d4ceb0ca7b0012 (patch)
tree451a39a3835a1ff0b55170a07d358a3be3f24e81
parentb43c1c621f52f4a51d8d79cb76c226dfed003998 (diff)
downloadorg-mode-773596e3.tar.gz
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.
-rw-r--r--lisp/org.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 8b33cf6..cd48b6b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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))