summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2008-10-20 08:21:41 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2008-10-20 08:21:41 +0200
commitc7ff3d46e12411e991598bf89b4f9af42452cbc7 (patch)
treefc459790af139d77daeff8a31faf964f96d11da2
parent24d80b392870123fb8be90d1509d01837930fba3 (diff)
downloadorg-mode-c7ff3d46e12411e991598bf89b4f9af42452cbc7.tar.gz
Fix bug with missing state notes when calling org-todo with prefix arg.
Reported by Robert Goldman.
-rwxr-xr-xlisp/ChangeLog2
-rw-r--r--lisp/org.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4db27a1..3680f65 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
* org.el (org-entry-properties): Add CATEGORY property, iven if it
is not defined as a property in this entry.
+ (org-add-log-note): Mask prefix argument when immediately storing
+ the note.
2008-10-19 James TD Smith <ahktenzero@mohorovi.cc>
diff --git a/lisp/org.el b/lisp/org.el
index 455d0aa..d9cf394 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8439,7 +8439,7 @@ EXTRA is additional text that will be inserted into the notes buffer."
(org-switch-to-buffer-other-window "*Org Note*")
(erase-buffer)
(if (memq org-log-note-how '(time state))
- (org-store-log-note)
+ (let (current-prefix-arg) (org-store-log-note))
(let ((org-inhibit-startup t)) (org-mode))
(insert (format "# Insert note for %s.
# Finish with C-c C-c, or cancel with C-c C-k.\n\n"