emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] Re: Insert LOGBOOK drawer removes indendation of f


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] Re: Insert LOGBOOK drawer removes indendation of first line under headline
Date: Sat, 21 Mar 2009 18:21:34 +0100

Applied, thanks.

- Carsten

On Mar 20, 2009, at 11:25 PM, Peter Jones wrote:

David Maus <address@hidden> writes:
When I start to clock a headline (C-c C-x C-i) that does not have a
LOGBOOK drawer orgmode inserts one but removes the indentation of the
first line below the headline:

This patch fixes your problem.  Sorry about that.

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index c79a6af..8d2279a 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -444,13 +444,13 @@ 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)
+        (beginning-of-line -1)
+        (org-indent-line-function)
(org-flag-drawer t)
- (beginning-of-line 2)
+        (beginning-of-line 2)
+        (org-indent-line-function)
+ (beginning-of-line)
(or org-log-states-order-reversed
   (and (re-search-forward org-property-end-re nil t)
(goto-char (match-beginning 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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


reply via email to

[Prev in Thread] Current Thread [Next in Thread]