From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [bug, org.el] Wrong guess of future date
Date: Mon, 05 Jan 2015 12:55:20 +0100 [thread overview]
Message-ID: <87tx05fnmf.fsf@gmx.us> (raw)
Hi,
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))
I think the bug is in the sexp starting on line 16938 of org.el.
I don't know the agenda code well, so if someone can fix it would be
great; otherwise input on whether this is truly the place to fix this
behavior please let me know.
Thanks,
Rasmus
--
El Rey ha muerto. ¡Larga vida al Rey!
next reply other threads:[~2015-01-05 11:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 11:55 Rasmus [this message]
2015-01-06 22:22 ` [bug, org.el] Wrong guess of future date Nicolas Goaziou
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=87tx05fnmf.fsf@gmx.us \
--to=rasmus@gmx.us \
--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).