aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calendar/diary-lib.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1999-01-06 08:09:27 +0000
committerRichard M. Stallman <[email protected]>1999-01-06 08:09:27 +0000
commitb5972d799ec150dffdb29036422204d6980f2040 (patch)
tree3366cc3e9440acab47d94088ce2698755451face /lisp/calendar/diary-lib.el
parent45d1e4d4427045e7b8bea3035dbf1cef3be16b5c (diff)
(diary-float): Better fix of end-of-year error.
Diffstat (limited to 'lisp/calendar/diary-lib.el')
-rw-r--r--lisp/calendar/diary-lib.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 88df6ab6fc..6647bc2b35 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -1289,7 +1289,8 @@ An optional parameter DAY means the Nth DAYNAME on or after/before MONTH DAY."
(calendar-last-day-of-month m1 y1)))))
(and (<= d1 d) (<= d d2))))
;; only possible base dates straddle two months
- (and (/= m1 m2)
+ (and (or (< y1 y2)
+ (and (= y1 y2) (< m1 m2)))
(or
;; m1, d1 works as a base date
(and