# HG changeset patch # User Richard M. Stallman # Date 759889720 0 # Node ID baab03aaf3b93086ec42543892b47c681aaa4183 # Parent 6d93eb3d5bc7ceccc45eaa54ed0d1e1b1cedf324 (list-calendar-holidays): Fix mode line. diff -r 6d93eb3d5bc7 -r baab03aaf3b9 lisp/calendar/holidays.el --- a/lisp/calendar/holidays.el Sun Jan 30 00:26:04 1994 +0000 +++ b/lisp/calendar/holidays.el Sun Jan 30 00:28:40 1994 +0000 @@ -155,8 +155,11 @@ (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