|
@@ -11633,7 +11633,7 @@ When SHOW-ALL is nil, only return the current occurrence of a time stamp."
|
|
;; Make the proper lists from the dates
|
|
;; Make the proper lists from the dates
|
|
(catch 'exit
|
|
(catch 'exit
|
|
(let ((a1 '(("d" . day) ("w" . week) ("m" . month) ("y" . year)))
|
|
(let ((a1 '(("d" . day) ("w" . week) ("m" . month) ("y" . year)))
|
|
- dn dw sday cday n1 n2
|
|
|
|
|
|
+ dn dw sday cday n1 n2 n0
|
|
d m y y1 y2 date1 date2 nmonths nm ny m2)
|
|
d m y y1 y2 date1 date2 nmonths nm ny m2)
|
|
|
|
|
|
(setq start (org-date-to-gregorian start)
|
|
(setq start (org-date-to-gregorian start)
|
|
@@ -11682,6 +11682,8 @@ When SHOW-ALL is nil, only return the current occurrence of a time stamp."
|
|
(setq m2 (+ m dn) y2 y)
|
|
(setq m2 (+ m dn) y2 y)
|
|
(if (> m2 12) (setq y2 (1+ y2) m2 (- m2 12)))
|
|
(if (> m2 12) (setq y2 (1+ y2) m2 (- m2 12)))
|
|
(setq n2 (calendar-absolute-from-gregorian (list m2 d y2))))))
|
|
(setq n2 (calendar-absolute-from-gregorian (list m2 d y2))))))
|
|
|
|
+ ;; Make sure n1 is the earlier date
|
|
|
|
+ (setq n0 n1 n1 (min n1 n2) n2 (max n0 n2))
|
|
(if show-all
|
|
(if show-all
|
|
(cond
|
|
(cond
|
|
((eq prefer 'past) n1)
|
|
((eq prefer 'past) n1)
|