From: Peter Jones <mlists@pmade.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Re: Insert LOGBOOK drawer removes indendation of first line under headline
Date: Fri, 20 Mar 2009 16:25:05 -0600 [thread overview]
Message-ID: <m2mybfomri.fsf@pmade.com> (raw)
In-Reply-To: 20090320211753.GA4890@thinkpad
David Maus <maus.david@gmail.com> 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
next prev parent reply other threads:[~2009-03-20 22:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 21:17 Insert LOGBOOK drawer removes indendation of first line under headline David Maus
2009-03-20 21:42 ` Peter Jones
2009-03-20 22:25 ` Peter Jones [this message]
2009-03-21 6:54 ` [PATCH] " David Maus
2009-03-21 17:21 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mybfomri.fsf@pmade.com \
--to=mlists@pmade.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.