emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Neil Jerram <neiljerram@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Capture with date prompt defaults to yesterday
Date: Fri, 7 Jun 2019 13:33:46 +0100	[thread overview]
Message-ID: <CAKuG=vsqSf+KNDyx6=DujG4eiHtCH7Ptj+b48xiytYF998vadQ@mail.gmail.com> (raw)
In-Reply-To: <CAKuG=vuAs6-iHPzHg9LtptFZjj-DssFLfR-V7wZvxOxqEWZMdQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

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 <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:
>>
>>  '(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. <date> 00:00.  And then, I
>> presume, some following code thinks that means <date>-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
>
>

[-- Attachment #2: Type: text/html, Size: 2102 bytes --]

  reply	other threads:[~2019-06-07 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 13:36 Capture with date prompt defaults to yesterday Neil Jerram
2019-05-28 20:20 ` Neil Jerram
2019-06-07 12:33   ` Neil Jerram [this message]
2019-06-07 21:31     ` Nicolas Goaziou
2019-06-09 10:40       ` Neil Jerram
2019-06-10  9:22         ` Nicolas Goaziou
2019-06-11  8:53           ` Neil Jerram

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='CAKuG=vsqSf+KNDyx6=DujG4eiHtCH7Ptj+b48xiytYF998vadQ@mail.gmail.com' \
    --to=neiljerram@gmail.com \
    --cc=emacs-orgmode@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).