comparison lisp/calendar/calendar.el @ 6668:5ab295d49e7f

(generate-calendar-month): Add mouse-face properties.
author Karl Heuer <kwzh@gnu.org>
date Mon, 04 Apr 1994 22:59:59 +0000
parents 56546a41a683
children 12aafd560832
comparison
equal deleted inserted replaced
6667:569c3687217f 6668:5ab295d49e7f
1385 ;; Add blank days before the first of the month 1385 ;; Add blank days before the first of the month
1386 (calendar-for-loop i from 1 to blank-days do (insert " ")) 1386 (calendar-for-loop i from 1 to blank-days do (insert " "))
1387 ;; Put in the days of the month 1387 ;; Put in the days of the month
1388 (calendar-for-loop i from 1 to last do 1388 (calendar-for-loop i from 1 to last do
1389 (insert (format "%2d " i)) 1389 (insert (format "%2d " i))
1390 (put-text-property (- (point) (if (< i 10) 2 3)) (1- (point))
1391 'mouse-face 'highlight)
1390 (and (zerop (calendar-mod (+ i blank-days) 7)) 1392 (and (zerop (calendar-mod (+ i blank-days) 7))
1391 (/= i last) 1393 (/= i last)
1392 (calendar-insert-indented "" 0 t) ;; Force onto following line 1394 (calendar-insert-indented "" 0 t) ;; Force onto following line
1393 (calendar-insert-indented "" indent)))));; Go to proper spot 1395 (calendar-insert-indented "" indent)))));; Go to proper spot
1394 1396