From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Jones Subject: [PATCH] Properly indent clock drawer upon creation Date: Fri, 27 Feb 2009 17:41:27 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdDGw-0007Uu-4u for emacs-orgmode@gnu.org; Fri, 27 Feb 2009 19:41:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdDGu-0007Ui-Nk for emacs-orgmode@gnu.org; Fri, 27 Feb 2009 19:41:40 -0500 Received: from [199.232.76.173] (port=33691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdDGu-0007Uf-IV for emacs-orgmode@gnu.org; Fri, 27 Feb 2009 19:41:40 -0500 Received: from main.gmane.org ([80.91.229.2]:49867 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdDGt-000545-Tb for emacs-orgmode@gnu.org; Fri, 27 Feb 2009 19:41:40 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LdDGs-0003iv-Fc for emacs-orgmode@gnu.org; Sat, 28 Feb 2009 00:41:38 +0000 Received: from c-67-177-235-141.hsd1.co.comcast.net ([67.177.235.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2009 00:41:38 +0000 Received: from mlists by c-67-177-235-141.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2009 00:41:38 +0000 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: emacs-orgmode@gnu.org --=-=-= Properly indent clock drawer upon creation. Patch also available from: git://pmade.com/org-mode branch: pjones-clock-end-indent --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=clock.patch >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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--