emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] more problems with future timestamps
@ 2010-02-25 21:35 Łukasz Stelmach
  2010-02-26  9:08 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Łukasz Stelmach @ 2010-02-25 21:35 UTC (permalink / raw)
  To: emacs-orgmode

EHLo.

I think the following patch should be applied to handle the future
properly. I belive the year is set by the time this part is reached.
At least that is what I observe using ISO dates. When I write 1-2
(1 January) I get it in 2010.

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/org.el b/lisp/org.el
index 8ba782a..3ef2e1c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -13491,11 +13491,10 @@ user."
 			     (nth 3 tl) (< (nth 3 tl) (nth 3 nowdecode)))
 			(prog1 (1+ (nth 4 nowdecode)) (setq futurep t))
 		      (nth 4 defdecode)))
-	  year (or (nth 5 tl)
-		   (if (and org-read-date-prefer-future
+	  year (if (and org-read-date-prefer-future
 			    (nth 4 tl) (< (nth 4 tl) (nth 4 nowdecode)))
 		       (prog1 (1+ (nth 5 nowdecode)) (setq futurep t))
-		     (nth 5 defdecode)))
+		     (nth 5 defdecode))
 	  hour (or (nth 2 tl) (nth 2 defdecode))
 	  minute (or (nth 1 tl) (nth 1 defdecode))
 	  second (or (nth 0 tl) 0)
--8<---------------cut here---------------end--------------->8---


BTW when I write w2 in the org date input minibuffer

  Error in post-command-hook: (void-function calendar-absolute-from-iso)


-- 
Miłego dnia,
Łukasz Stelmach

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-26  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-25 21:35 [BUG] more problems with future timestamps Łukasz Stelmach
2010-02-26  9:08 ` Carsten Dominik

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).