comparison lisp/calendar/calendar.el @ 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 bf04e77f34dc
children 676fd590cc41
comparison
equal deleted inserted replaced
8142:66a5487be3a7 8143:1c621b9896c0
1400 ;; Add blank days before the first of the month 1400 ;; Add blank days before the first of the month
1401 (calendar-for-loop i from 1 to blank-days do (insert " ")) 1401 (calendar-for-loop i from 1 to blank-days do (insert " "))
1402 ;; Put in the days of the month 1402 ;; Put in the days of the month
1403 (calendar-for-loop i from 1 to last do 1403 (calendar-for-loop i from 1 to last do
1404 (insert (format "%2d " i)) 1404 (insert (format "%2d " i))
1405 (put-text-property (- (point) 3) (1- (point)) 'mouse-face 'highlight) 1405 (put-text-property (- (point) (if (< i 10) 2 3)) (1- (point))
1406 'mouse-face 'highlight)
1406 (and (zerop (mod (+ i blank-days) 7)) 1407 (and (zerop (mod (+ i blank-days) 7))
1407 (/= i last) 1408 (/= i last)
1408 (calendar-insert-indented "" 0 t) ;; Force onto following line 1409 (calendar-insert-indented "" 0 t) ;; Force onto following line
1409 (calendar-insert-indented "" indent)))));; Go to proper spot 1410 (calendar-insert-indented "" indent)))));; Go to proper spot
1410 1411