From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Bugfix in org-add-log-setup. Date: Mon, 20 Oct 2008 07:46:00 +0200 Message-ID: <0DFF8BA7-108C-45F2-B2DD-75492BC35787@uva.nl> References: <1224433338-16661-1-git-send-email-ahktenzero@mohorovi.cc> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrqMq-0006NL-Li for emacs-orgmode@gnu.org; Mon, 20 Oct 2008 04:44:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrqMp-0006MJ-Hv for emacs-orgmode@gnu.org; Mon, 20 Oct 2008 04:44:00 -0400 Received: from [199.232.76.173] (port=37766 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrqMp-0006MB-CS for emacs-orgmode@gnu.org; Mon, 20 Oct 2008 04:43:59 -0400 Received: from nf-out-0910.google.com ([64.233.182.185]:36058) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrqMp-000301-0x for emacs-orgmode@gnu.org; Mon, 20 Oct 2008 04:43:59 -0400 Received: by nf-out-0910.google.com with SMTP id c7so747471nfi.26 for ; Mon, 20 Oct 2008 01:43:57 -0700 (PDT) In-Reply-To: <1224433338-16661-1-git-send-email-ahktenzero@mohorovi.cc> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: James TD Smith Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Oct 19, 2008, at 6:22 PM, James TD Smith wrote: > --- > 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 > + > + * 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 > > * 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode