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

index 1d8e45492eae11a89b52b06576c946834704243e..dd0501083b6e147ed93e162545483f9c66615c60 100644 (file)
@@ -192,8 +192,11 @@ remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon,
     (set-buffer (get-buffer-create lunar-phases-buffer))
     (setq buffer-read-only nil)
     (calendar-set-mode-line
-          (format "Phases of the moon from %s, %d to %s, %d%%-"
-                  (calendar-month-name m1) y1 (calendar-month-name m2) y2))
+     (if (= y1 y2)
+         (format "Phases of the Moon from %s to %s, %d%%-"
+                 (calendar-month-name m1) (calendar-month-name m2) y2)
+       (format "Phases of the Moon from %s, %d to %s, %d%%-"
+               (calendar-month-name m1) y1 (calendar-month-name m2) y2)))
     (erase-buffer)
     (insert
      (mapconcat