[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH] Bugfix in org-add-log-setup.
From: |
James TD Smith |
Subject: |
[Orgmode] [PATCH] Bugfix in org-add-log-setup. |
Date: |
Sun, 19 Oct 2008 17:22:17 +0100 |
---
lisp/ChangeLog | 6 ++++++
lisp/org.el | 3 ++-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 35ce9c3..ad7c9fe 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-19 James TD Smith <address@hidden>
+
+ * org.el (org-add-log-setup): Bugfix; code to find insertion point
+ after drawers was skipping ahead one line too many, so notes were
+ inserted after the first note instead of before it.
+
2008-10-18 Carsten Dominik <address@hidden>
* org-table.el (orgtbl-to-html): Bind `html-table-tag' for the
diff --git a/lisp/org.el b/lisp/org.el
index 9c08ba4..85f138d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8407,7 +8407,8 @@ EXTRA is additional text that will be inserted into the
notes buffer."
(while (looking-at org-drawer-regexp)
(goto-char (match-end 0))
(re-search-forward org-property-end-re (point-max) t)
- (forward-line))))
+ (forward-line))
+ (forward-line -1)))
(unless org-log-states-order-reversed
(and (= (char-after) ?\n) (forward-char 1))
(org-skip-over-state-notes)
--
1.5.6.5
- [Orgmode] [PATCH] Bugfix in org-add-log-setup.,
James TD Smith <=
- [Orgmode] [PATCH] Allow storing clock status between emacs sessions., James TD Smith, 2008/10/19
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., Helge Gudmundsen, 2008/10/20
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., Helge Gudmundsen, 2008/10/22
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., Carsten Dominik, 2008/10/22
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., Helge Gudmundsen, 2008/10/22
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., James TD Smith, 2008/10/22
- Re: [Orgmode] [PATCH] Allow storing clock status between emacs sessions., Carsten Dominik, 2008/10/22
- [Orgmode] [PATCH 0/3] Split my clock resume/clock persistence patch, James TD Smith, 2008/10/23
- [Orgmode] [PATCH 1/3] Fix some typos and duplication in the ChangeLog, James TD Smith, 2008/10/23
- [Orgmode] [PATCH 2/3] Add clock resuming., James TD Smith, 2008/10/23