From 773596e347e21b3e06e116ccc1d4ceb0ca7b0012 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 17 Nov 2011 08:56:11 +0100 Subject: [PATCH] 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. --- lisp/org.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 8b33cf612..cd48b6b1d 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))