calendar.el: Add new faces, and day-header-array
commit3b5c03d32b5917f1d14aabeb2bf082a0451ae3da
authorGlenn Morris <rgm@gnu.org>
Tue, 6 Aug 2013 23:53:49 +0000 (6 19:53 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 6 Aug 2013 23:53:49 +0000 (6 19:53 -0400)
tree9fbf49a4230dc33c3c41231d5dbd3698f0ac75ea
parentec9564383ba1599be3e253d0b6643d392938de41
calendar.el: Add new faces, and day-header-array

* lisp/calendar/calendar.el (calendar-weekday-header)
(calendar-weekend-header, calendar-month-header): New faces.
(calendar-day-header-construct): New function.
(calendar-day-header-width): Also :set calendar-day-header-array.
(calendar-american-month-header, calendar-european-month-header)
(calendar-iso-month-header): Use calendar- faces.
(calendar-generate-month):
Use calendar-day-header-array for day headers; apply faces to them.
(calendar-mode): Check calendar-font-lock-keywords non-nil.
(calendar-abbrev-construct): Add optional maxlen argument.
(calendar-day-name-array): Doc fix.
(calendar-day-name-array, calendar-abbrev-length)
(calendar-day-abbrev-array):
Also :set calendar-day-header-array, and maybe redraw.
(calendar-day-header-array): New option.
(calendar-font-lock-keywords): Use calendar-day-header-array,
and calendar- faces.  Make obsolete.
(calendar-day-name): Add option to use header array.

* etc/NEWS: Mention this.

Fixes: debbugs:15007
etc/NEWS
lisp/ChangeLog
lisp/calendar/calendar.el