From 76ac6dce68477acbea822c94152633e222c269ef Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sat, 21 Mar 2009 13:17:53 +0100 Subject: [PATCH] Bugfix: Fix indentation problems David Maus 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: > > Example: > > * TODO Do something > Do this, do that etc. > > after C-c C-x C-i becomes > > * TODO Do something > :LOGBOOK: > CLOCK: [2009-03-20 Fr 19:03]--[2009-03-20 Fr 19:03] => 0:00 > :END: > Do this, do that etc. Fixed with this commit, a patch written by Peter Jones. --- lisp/ChangeLog | 2 ++ lisp/org-clock.el | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1632c6d12..6681f7aa9 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2009-03-21 Carsten Dominik + * org-clock.el (org-clock-find-position): Fix drawer indentations. + * org-export-latex.el (org-export-latex-low-levels): More options for how to process lower levels in LaTeX. (org-export-latex-subcontent): Better treatment for lists as a diff --git a/lisp/org-clock.el b/lisp/org-clock.el index c79a6afb6..8d2279ae0 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)))))))) -- 2.11.4.GIT