diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 19 |
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0c4240c9075..f7dbcfd3a27 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-08-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/calendar.el (calendar-generate-month): | ||
| 4 | Fix for calendar-column-width != 1 + calendar-day-digit-width. | ||
| 5 | |||
| 1 | 2013-08-05 Juanma Barranquero <lekktu@gmail.com> | 6 | 2013-08-05 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * desktop.el (desktop-clear): Use new name of sort predicate. | 8 | * desktop.el (desktop-clear): Use new name of sort predicate. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 20a8684e387..00c6404af7c 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1544,15 +1544,16 @@ line." | |||
| 1544 | (dotimes (i last) | 1544 | (dotimes (i last) |
| 1545 | (setq day (1+ i)) | 1545 | (setq day (1+ i)) |
| 1546 | ;; TODO should numbers be left-justified, centered...? | 1546 | ;; TODO should numbers be left-justified, centered...? |
| 1547 | (insert (format (format "%%%dd%%s" calendar-day-digit-width) day | 1547 | (insert (propertize |
| 1548 | (make-string | 1548 | (format (format "%%%dd" calendar-day-digit-width) day) |
| 1549 | (- calendar-column-width calendar-day-digit-width) ?\s))) | 1549 | 'mouse-face 'highlight |
| 1550 | ;; 'date property prevents intermonth text confusing re-searches. | 1550 | 'help-echo (eval calendar-date-echo-text) |
| 1551 | ;; (Tried intangible, it did not really work.) | 1551 | ;; 'date property prevents intermonth text confusing |
| 1552 | (set-text-properties | 1552 | ;; re-searches. (Tried intangible, it did not |
| 1553 | (- (point) (1+ calendar-day-digit-width)) (1- (point)) | 1553 | ;; really work.) |
| 1554 | `(mouse-face highlight help-echo ,(eval calendar-date-echo-text) | 1554 | 'date t) |
| 1555 | date t)) | 1555 | (make-string |
| 1556 | (- calendar-column-width calendar-day-digit-width) ?\s)) | ||
| 1556 | (when (and (zerop (mod (+ day blank-days) 7)) | 1557 | (when (and (zerop (mod (+ day blank-days) 7)) |
| 1557 | (/= day last)) | 1558 | (/= day last)) |
| 1558 | (calendar-ensure-newline) | 1559 | (calendar-ensure-newline) |