]> git.eshelyaron.com Git - emacs.git/commitdiff
(generate-calendar-month): Make highlighted text for mouse-2 a one character
authorEdward M. Reingold <reingold@emr.cs.iit.edu>
Tue, 5 Jul 1994 15:44:40 +0000 (15:44 +0000)
committerEdward M. Reingold <reingold@emr.cs.iit.edu>
Tue, 5 Jul 1994 15:44:40 +0000 (15:44 +0000)
wide for single-digit dates (this undoes the incorrect fix of May 30, 1994).

lisp/calendar/calendar.el

index 2cc35b6f18204d744771694363f26cfb8bb74368..bb3aaed68b5c2468905de0c9d809c23ef7abe86f 100644 (file)
@@ -1402,7 +1402,8 @@ characters on the line."
    ;; 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