changeset 8143:1c621b9896c0

(generate-calendar-month): Make highlighted text for mouse-2 a one character wide for single-digit dates (this undoes the incorrect fix of May 30, 1994).
author Edward M. Reingold <reingold@emr.cs.iit.edu>
date Tue, 05 Jul 1994 15:44:40 +0000
parents 66a5487be3a7
children 41071c0159f8
files lisp/calendar/calendar.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/calendar.el	Tue Jul 05 07:25:05 1994 +0000
+++ b/lisp/calendar/calendar.el	Tue Jul 05 15:44:40 1994 +0000
@@ -1402,7 +1402,8 @@
    ;; Put in the days of the month
    (calendar-for-loop i from 1 to last do
       (insert (format "%2d " i))
-      (put-text-property (- (point) 3) (1- (point)) 'mouse-face 'highlight)
+      (put-text-property (- (point) (if (< i 10) 2 3)) (1- (point))
+			 'mouse-face 'highlight)
       (and (zerop (mod (+ i blank-days) 7))
            (/= i last)
            (calendar-insert-indented "" 0 t)    ;; Force onto following line