emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug, org.el] Wrong guess of future date
Date: Tue, 06 Jan 2015 23:22:16 +0100	[thread overview]
Message-ID: <87oaqba6sn.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87tx05fnmf.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 05 Jan 2015 12:55:20 +0100")

Hello,

Rasmus <rasmus@gmx.us> writes:

> There seems to be a bug in `org-read-date-analyze' so that when
> re-scheduling from 2014 to 2014, the year is not updated.
>
> Here's an example.  Type 30 in the rescheduling prompt.  It will be
> rescheduled to <2014-12-30> rather than <2015-01-30> as expected when
> org-read-date-prefer-future is non-nil.
>
> (let* ((file (make-temp-file ""))
>        (org-read-date-prefer-future t)
>        (org-agenda-files (list file)))
>   (save-window-excursion
>     (find-file file)
>     (insert "* TODO Document\nSCHEDULED: <2014-12-25>")
>     (org-mode)
>     (save-buffer))
>   (org-agenda-list)
>   (goto-char (point-min))
>   (search-forward "TODO")
>   (org-agenda-schedule 0)
>   (find-file file)
>   (goto-char (point-min))
>   (org-show-entry))

This should be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2015-01-06 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-05 11:55 [bug, org.el] Wrong guess of future date Rasmus
2015-01-06 22:22 ` Nicolas Goaziou [this message]

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=87oaqba6sn.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).