]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-calendar-holidays): Fix mode line.
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 Jan 1994 00:28:40 +0000 (00:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 Jan 1994 00:28:40 +0000 (00:28 +0000)
lisp/calendar/holidays.el

index e29d5e6d3362eefd0d43106c57a56910deaf59b1..addd8f80ac7fa57810dbe65c876887d821dd16c9 100644 (file)
@@ -155,8 +155,11 @@ holidays are found, nil if not."
       (increment-calendar-month m1 y1 -1)
       (increment-calendar-month m2 y2 1)
       (calendar-set-mode-line
-            (format "Notable Dates from %s, %d to %s, %d%%-"
-                    (calendar-month-name m1) y1 (calendar-month-name m2) y2))
+       (if (= y1 y2)
+           (format "Notable Dates from %s to %s, %d%%-"
+                   (calendar-month-name m1) (calendar-month-name m2) y2)
+         (format "Notable Dates from %s, %d to %s, %d%%-"
+                 (calendar-month-name m1) y1 (calendar-month-name m2) y2)))
       (erase-buffer)
       (insert
        (mapconcat