From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: Extra space inserted in repeated tasks' date line Date: Thu, 18 Aug 2011 10:25:46 +0200 Message-ID: References: <20110815120242.GA9035@gmail.com> <877h6bcfwp.fsf@gnu.org> <80ei0jgmct.fsf@somewhere.org> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtxvD-0007Y6-As for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 04:25:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtxvC-0006bE-Ca for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 04:25:51 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:48860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtxvC-0006b3-2J for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 04:25:50 -0400 Received: by ewy9 with SMTP id 9so771449ewy.0 for ; Thu, 18 Aug 2011 01:25:48 -0700 (PDT) In-Reply-To: <80ei0jgmct.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org On Aug 18, 2011, at 10:22 AM, Sebastien Vauban wrote: > Hi Bastien and Markus, >=20 > Bastien wrote: >> Markus Berlin writes: >>=20 >>> some time ago I noticed this small bug (small but it keeps annoying = me!): >>>=20 >>> If the following are set: >>>=20 >>> (setq org-log-done 'time) >>> (setq org-log-repeat nil) >>>=20 >>> then if you press C-c C-t on a repeated tasks, like this one: >>>=20 >>> * TODO do nothing >>> SCHEDULED: <2011-08-12 Fr .+2d> >>>=20 >>> an extra space is introduced just before "SCHEDULED", i.e. you get: >>>=20 >>> * TODO do nothing >>> SCHEDULED: <2011-08-17 Mi .+2d> >>> ^ >>>=20 >>> instead of what you want: >>>=20 >>> * TODO do nothing >>> SCHEDULED: <2011-08-17 Mi .+2d> >>=20 >> This is fixed in the current git repo -- please test and confirm. >=20 > Similar to this, I've noticed that sometimes the SCHEDULED line (or = DEADLINE, > or ...) is moved synchronously with the heading when = promoting/demoting, > sometimes not. >=20 > I now found in which cases it does and when it does not: it depends on = the > presence of text in the entry. It depends on the presence of *unindented* text in the entry, and purposefully so. See the variable `org-adapt-indentation'. HTH - Carsten >=20 > So, for example: >=20 > --8<---------------cut here---------------start------------->8--- > * The SCHED will be moved > SCHEDULED: <2011-08-18 Thu> >=20 > * This one won't be moved along with the heading > SCHEDULED: <2011-08-18 Thu> >=20 > Because of this text here... > --8<---------------cut here---------------end--------------->8--- >=20 > becomes, when demoted: >=20 > --8<---------------cut here---------------start------------->8--- > * New section >=20 > ** The SCHED will be moved > SCHEDULED: <2011-08-18 Thu> >=20 > ** This one won't be moved along with the heading > SCHEDULED: <2011-08-18 Thu> >=20 > Because of this text here... > --8<---------------cut here---------------end--------------->8--- >=20 > Best regards, > Seb >=20 > --=20 > Sebastien Vauban >=20 >=20 - Carsten