emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode: Remove CLOSED line when cycling
Date: Mon, 21 May 2012 09:56:27 +0800	[thread overview]
Message-ID: <87k4068fg4.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAJtBfr-KmKQkoR3yCV-ovCsz85ksme8ObhJuRcgQM61CQZ1HSw@mail.gmail.com

On Mon, May 21 2012, Florian Lindner wrote:

> Hello,
>
> I use the org-mode from emacs 23.4-2 (ArchLinux) with settings
>
> (setq org-log-done t)
> (setq org-startup-indented t)
>
> When cycling through TODO/DONE/- using C-c C-t org-mode inserts the
> CLOSED timestamp accordingly. Org-mode removes the CLOSED timestamp
> when cycling to the - state but fails to remove the now empty line.
> This produces a growing whitespace between the heading and the
> body/children.
>
> Is this considered a bug? Can I change that behavior so that it remove
> the empty line?

For what it's worth, the git version of org, with those settings,
doesn't leave an extra line. If you're willing to consider running the
development version of org you'll get that and a whole bunch of other
new features. If not, you might look at the function
`org-add-planning-info' as it exists in the git codebase, and see how it
differs from yours (particularly when the symbol 'closed is passed in as
the third argument).

http://orgmode.org/w/?p=org-mode.git;a=blob;f=lisp/org.el;h=05f5375f4e47bdfe6de55d6aa8f2ec7130dedaca;hb=HEAD#l12230

Also, there's a orgmode mailing list!

Good luck,
Eric

-- 
GNU Emacs 24.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-05-19 on pellet

           reply	other threads:[~2012-05-21  1:56 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAJtBfr-KmKQkoR3yCV-ovCsz85ksme8ObhJuRcgQM61CQZ1HSw@mail.gmail.com>]

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=87k4068fg4.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=help-gnu-emacs@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 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).