aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-30 00:28:54 +0000
committerRichard M. Stallman1994-01-30 00:28:54 +0000
commit1a380827e3eba102eb844d30ee4a7a7c0e735976 (patch)
tree4a789d9f8366dbd5cfa59f65c48790d99cf72531
parent1d34f34921fec2c5b82ba71cf027ff48bfd96d6c (diff)
downloademacs-1a380827e3eba102eb844d30ee4a7a7c0e735976.tar.gz
emacs-1a380827e3eba102eb844d30ee4a7a7c0e735976.zip
(calendar-phases-of-moon): Fix mode line.
-rw-r--r--lisp/calendar/lunar.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/calendar/lunar.el b/lisp/calendar/lunar.el
index 1d8e45492ea..dd0501083b6 100644
--- a/lisp/calendar/lunar.el
+++ b/lisp/calendar/lunar.el
@@ -192,8 +192,11 @@ remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon,
192 (set-buffer (get-buffer-create lunar-phases-buffer)) 192 (set-buffer (get-buffer-create lunar-phases-buffer))
193 (setq buffer-read-only nil) 193 (setq buffer-read-only nil)
194 (calendar-set-mode-line 194 (calendar-set-mode-line
195 (format "Phases of the moon from %s, %d to %s, %d%%-" 195 (if (= y1 y2)
196 (calendar-month-name m1) y1 (calendar-month-name m2) y2)) 196 (format "Phases of the Moon from %s to %s, %d%%-"
197 (calendar-month-name m1) (calendar-month-name m2) y2)
198 (format "Phases of the Moon from %s, %d to %s, %d%%-"
199 (calendar-month-name m1) y1 (calendar-month-name m2) y2)))
197 (erase-buffer) 200 (erase-buffer)
198 (insert 201 (insert
199 (mapconcat 202 (mapconcat