From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Re: Capture with date prompt defaults to yesterday Date: Fri, 7 Jun 2019 13:33:46 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000606863058abb0bfe" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48850) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZE4L-00050q-0j for emacs-orgmode@gnu.org; Fri, 07 Jun 2019 08:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZE4J-00010g-Rk for emacs-orgmode@gnu.org; Fri, 07 Jun 2019 08:34:04 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:37966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZE4H-0000t5-RK for emacs-orgmode@gnu.org; Fri, 07 Jun 2019 08:34:02 -0400 Received: by mail-lj1-x229.google.com with SMTP id o13so1581067lji.5 for ; Fri, 07 Jun 2019 05:33:59 -0700 (PDT) In-Reply-To: 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" To: Org Mode List --000000000000606863058abb0bfe Content-Type: text/plain; charset="UTF-8" Nicolas, I hope you don't mind me sending a 'ping' for this, as it looks like it might have got lost. Please do let me know what you think. Best wishes, Neil On Tue, 28 May 2019 at 21:20, Neil Jerram wrote: > On Sun, 19 May 2019 at 14:36, Neil Jerram wrote: > >> I have a capture template like this: >> >> '(org-capture-templates >> (quote >> (("a" "" entry >> (file "~/org/capture.org") >> "** TODO %? >> SCHEDULED: %^t")))) >> >> When I use that, the date prompt defaults to yesterday, whereas I'd >> expect it to default to today. >> >> I believe this is because I also have (setq org-extend-today-until 2). >> What happens is that (org-get-cursor-date) gets the right _date_, then >> converts that to a time at midnight, i.e. 00:00. And then, I >> presume, some following code thinks that means -1, because of my >> org-extend-today-until setting. >> >> Thoughts? >> >> Many thanks, >> Neil >> > > Well I think it's a bug and propose the attached fix. Please let me know > what you think. > > Neil > > --000000000000606863058abb0bfe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nicolas, I hope you don't mind me sending a 'ping&= #39; for this, as it looks like it might have got lost.=C2=A0 Please do let= me know what you=C2=A0think.

Best wishes,
=C2= =A0 =C2=A0Neil


On Tue, 28 May 2019 at 21:20, Neil Jerra= m <neiljerram@gmail.com> = wrote:
On Sun, 19 May 2019 at 14:36, Neil Jerram <neiljerram@gmail.com= > wrote:
I have a capture template like this:

= =C2=A0'(org-capture-templates
=C2=A0 =C2=A0(quote
= =C2=A0 =C2=A0 (("a" "" entry
=C2=A0 =C2=A0 = =C2=A0 (file "~/org/c= apture.org")
=C2=A0 =C2=A0 =C2=A0 "** TODO %?
=
SCHEDULED: %^t"))))

When I use tha= t, the date prompt defaults to yesterday, whereas I'd expect it to defa= ult to today.

I believe this is because I also hav= e (setq=C2=A0org-extend-today-until 2).=C2=A0 What happens is that (org-get= -cursor-date) gets the right _date_, then converts that to a time at midnig= ht, i.e. <date> 00:00.=C2=A0 And then, I presume, some following code= thinks that means <date>-1, because of my org-extend-today-until set= ting.

Thoughts?

Many than= ks,
=C2=A0 =C2=A0Neil
Well I think it's a bug and propose the attached fix.=C2= =A0 Please let me know what you think.

=C2=A0 =C2= =A0 =C2=A0Neil
=C2=A0
--000000000000606863058abb0bfe--