From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help,gmane.emacs.orgmode Subject: Re: org-mode: Remove CLOSED line when cycling Date: Mon, 21 May 2012 09:56:27 +0800 Message-ID: <87k4068fg4.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337565441 9647 80.91.229.3 (21 May 2012 01:57:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 May 2012 01:57:21 +0000 (UTC) Cc: emacs-orgmode@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 21 03:57:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SWHs7-0007hY-Nn for geh-help-gnu-emacs@m.gmane.org; Mon, 21 May 2012 03:57:19 +0200 Original-Received: from localhost ([::1]:56205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHs7-0005nH-A0 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 May 2012 21:57:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHrn-000516-Og for help-gnu-emacs@gnu.org; Sun, 20 May 2012 21:57:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWHrm-0007Oi-2d for help-gnu-emacs@gnu.org; Sun, 20 May 2012 21:56:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHrl-0007Oa-Qc for help-gnu-emacs@gnu.org; Sun, 20 May 2012 21:56:57 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SWHrh-0006t9-18 for help-gnu-emacs@gnu.org; Mon, 21 May 2012 03:56:53 +0200 Original-Received: from 114.250.123.57 ([114.250.123.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 May 2012 03:56:53 +0200 Original-Received: from eric by 114.250.123.57 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 May 2012 03:56:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.123.57 X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:bH4RMw91ekSDDsT82IKfMB09Mqs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84912 gmane.emacs.orgmode:56089 Archived-At: 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