emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Peter Jones <mlists@pmade.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Properly indent clock drawer upon creation
Date: Sun, 1 Mar 2009 17:19:34 +0100	[thread overview]
Message-ID: <42ECEBD3-250F-4A2D-AFD3-90E0B559F3C4@uva.nl> (raw)
In-Reply-To: <m2hc2fmlzc.fsf@pmade.com>

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 <pjones@pmade.com>
> 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

  reply	other threads:[~2009-03-01 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28  0:41 Peter Jones
2009-03-01 16:19 ` Carsten Dominik [this message]
2009-03-02  0:32   ` Peter Jones
2009-03-02  5:44 ` 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42ECEBD3-250F-4A2D-AFD3-90E0B559F3C4@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=mlists@pmade.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).