Browse Source

Bugfix: Don't add CLOSED timestamp when repeating

Carsten Dominik 16 năm trước cách đây
mục cha
commit
3b396b0e77
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 3 0
      lisp/ChangeLog
  2. 3 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-03-03  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org.el (org-add-planning-info): Fix bug with looking for keyword
+	only at column 0.
+
 	* org-agenda.el (org-agenda-custom-commands-local-options): Add
 	option for tags filter preset.
 	(org-prepare-agenda): Store filter preset as a property on the

+ 3 - 1
lisp/org.el

@@ -9297,7 +9297,9 @@ be removed."
 	    (goto-char (match-end 0))
 	    (if (eobp) (insert "\n") (forward-char 1))
 	    (when (and (not what)
-		       (not (looking-at org-keyword-time-not-clock-regexp)))
+		       (not (looking-at
+			     (concat "[ \t]*"
+				     org-keyword-time-not-clock-regexp))))
 	      ;; Nothing to add, nothing to remove...... :-)
 	      (throw 'exit nil))
 	    (if (and (not (looking-at outline-regexp))