]> git.eshelyaron.com Git - emacs.git/commitdiff
(generate-calendar-month): Add mouse-face properties.
authorKarl Heuer <kwzh@gnu.org>
Mon, 4 Apr 1994 22:59:59 +0000 (22:59 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 4 Apr 1994 22:59:59 +0000 (22:59 +0000)
lisp/calendar/calendar.el

index 74d1c52e0a1ec539778a10c83b3f30ee81e0d749..b1495c456339470d5f8fe34464c19f5004f782f8 100644 (file)
@@ -1387,6 +1387,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) (if (< i 10) 2 3)) (1- (point))
+                        'mouse-face 'highlight)
       (and (zerop (calendar-mod (+ i blank-days) 7))
            (/= i last)
            (calendar-insert-indented "" 0 t)    ;; Force onto following line