Browse Source

Fix bug with missing state notes when calling org-todo with prefix arg.

Reported by Robert Goldman.
Carsten Dominik 11 years ago
parent
commit
c7ff3d46e1
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 2 - 0
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>
 

+ 1 - 1
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"