瀏覽代碼

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

Reported by Robert Goldman.
Carsten Dominik 16 年之前
父節點
當前提交
c7ff3d46e1
共有 2 個文件被更改,包括 3 次插入1 次删除
  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"