diff options
| author | Glenn Morris | 2014-03-17 09:04:32 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-03-17 09:04:32 -0700 |
| commit | 61debe4a9c2d555f537a3ed3a45a0f77a2f13c82 (patch) | |
| tree | acd0dcd4449ef39cf17efe63608b918a4762b511 | |
| parent | 8273986b5aaa1c6b48e4b350cc2fbe2a69f80056 (diff) | |
| download | emacs-61debe4a9c2d555f537a3ed3a45a0f77a2f13c82.tar.gz emacs-61debe4a9c2d555f537a3ed3a45a0f77a2f13c82.zip | |
* lisp/calendar/calendar.el (calendar-generate-month): Apply weekend face
to the right days; fixes 2013-08-06 change.
Fixes: debbugs:17028
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2946ac5e0ac..94240d63a6c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/calendar.el (calendar-generate-month): Apply weekend | ||
| 4 | face to the right days; fixes 2013-08-06 change. (Bug#17028) | ||
| 5 | |||
| 1 | 2014-03-17 Michael Albinus <michael.albinus@gmx.de> | 6 | 2014-03-17 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp.el (tramp-action-out-of-band): Read pending output. | 8 | * net/tramp.el (tramp-action-out-of-band): Read pending output. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 37d5dfaedf3..57cb488a838 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1546,7 +1546,8 @@ line." | |||
| 1546 | (last (calendar-last-day-of-month month year)) | 1546 | (last (calendar-last-day-of-month month year)) |
| 1547 | (trunc (min calendar-intermonth-spacing | 1547 | (trunc (min calendar-intermonth-spacing |
| 1548 | (1- calendar-left-margin))) | 1548 | (1- calendar-left-margin))) |
| 1549 | (day 1)) | 1549 | (day 1) |
| 1550 | j) | ||
| 1550 | (goto-char (point-min)) | 1551 | (goto-char (point-min)) |
| 1551 | (calendar-move-to-column indent) | 1552 | (calendar-move-to-column indent) |
| 1552 | (insert | 1553 | (insert |
| @@ -1556,11 +1557,11 @@ line." | |||
| 1556 | (calendar-insert-at-column indent calendar-intermonth-header trunc) | 1557 | (calendar-insert-at-column indent calendar-intermonth-header trunc) |
| 1557 | ;; Use the first N characters of each day to head the columns. | 1558 | ;; Use the first N characters of each day to head the columns. |
| 1558 | (dotimes (i 7) | 1559 | (dotimes (i 7) |
| 1560 | (setq j (mod (+ calendar-week-start-day i) 7)) | ||
| 1559 | (insert | 1561 | (insert |
| 1560 | (truncate-string-to-width | 1562 | (truncate-string-to-width |
| 1561 | (propertize (calendar-day-name (mod (+ calendar-week-start-day i) 7) | 1563 | (propertize (calendar-day-name j 'header t) |
| 1562 | 'header t) | 1564 | 'font-lock-face (if (memq j '(0 6)) |
| 1563 | 'font-lock-face (if (memq i '(0 6)) | ||
| 1564 | 'calendar-weekend-header | 1565 | 'calendar-weekend-header |
| 1565 | 'calendar-weekday-header)) | 1566 | 'calendar-weekday-header)) |
| 1566 | calendar-day-header-width nil ?\s) | 1567 | calendar-day-header-width nil ?\s) |