From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Properly indent clock drawer upon creation Date: Sun, 1 Mar 2009 17:19:34 +0100 Message-ID: <42ECEBD3-250F-4A2D-AFD3-90E0B559F3C4@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) 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 1LdoOA-00028v-QR for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:19:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdoO9-00027X-2E for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:19:38 -0500 Received: from [199.232.76.173] (port=53808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdoO8-00027T-R9 for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:19:36 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:48254) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdoO8-00021z-Ep for emacs-orgmode@gnu.org; Sun, 01 Mar 2009 11:19:36 -0500 Received: by nf-out-0910.google.com with SMTP id b11so189270nfh.26 for ; Sun, 01 Mar 2009 08:19:35 -0800 (PST) In-Reply-To: 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: Peter Jones Cc: emacs-orgmode@gnu.org Hi Peter, can you please describe a test case where the code without your patch fails? Thanks. - Carsten On Feb 28, 2009, at 1:41 AM, Peter Jones wrote: > Properly indent clock drawer upon creation. > > Patch also available from: > > git://pmade.com/org-mode > branch: pjones-clock-end-indent > > From ced66c53109a0f34e280853f02deb6bbdeabdaaa Mon Sep 17 00:00:00 2001 > From: Peter Jones > Date: Fri, 27 Feb 2009 17:37:22 -0700 > Subject: [PATCH] Properly indent clock drawer upon creation > > --- > lisp/org-clock.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-clock.el b/lisp/org-clock.el > index 3f302a9..02f6b18 100644 > --- a/lisp/org-clock.el > +++ b/lisp/org-clock.el > @@ -444,12 +444,12 @@ the clocking selection, associated with the > letter `d'." > (stringp org-clock-into-drawer) > (and (integerp org-clock-into-drawer) > (< org-clock-into-drawer 2))) > + (org-indent-line-function) > (insert ":" drawer ":\n:END:\n") > (beginning-of-line 0) > (org-indent-line-function) > (beginning-of-line 0) > (org-flag-drawer t) > - (org-indent-line-function) > (beginning-of-line 2) > (or org-log-states-order-reversed > (and (re-search-forward org-property-end-re nil t) > -- > 1.6.0 > > > -- > Peter Jones, http://pmade.com > pmade inc. Louisville, CO US > _______________________________________________ > 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