aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-08-06 20:06:43 -0400
committerGlenn Morris2013-08-06 20:06:43 -0400
commit8a806f0430cf2c42e08768920a714cc497ce6f77 (patch)
tree4bda519be5c05b35cab87dedb9284137f296e98c
parent3b5c03d32b5917f1d14aabeb2bf082a0451ae3da (diff)
downloademacs-8a806f0430cf2c42e08768920a714cc497ce6f77.tar.gz
emacs-8a806f0430cf2c42e08768920a714cc497ce6f77.zip
* lisp/calendar/calendar.el (calendar-font-lock-keywords): Set to nil
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/calendar/calendar.el21
2 files changed, 2 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ff9b68e1987..09e0349e7f1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -16,8 +16,7 @@
16 (calendar-day-abbrev-array): 16 (calendar-day-abbrev-array):
17 Also :set calendar-day-header-array, and maybe redraw. 17 Also :set calendar-day-header-array, and maybe redraw.
18 (calendar-day-header-array): New option. (Bug#15007) 18 (calendar-day-header-array): New option. (Bug#15007)
19 (calendar-font-lock-keywords): Use calendar-day-header-array, 19 (calendar-font-lock-keywords): Set to nil and make obsolete.
20 and calendar- faces. Make obsolete.
21 (calendar-day-name): Add option to use header array. 20 (calendar-day-name): Add option to use header array.
22 21
232013-08-06 Lars Magne Ingebrigtsen <larsi@gnus.org> 222013-08-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index b5d06aba135..e1f85832dc4 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -2360,26 +2360,7 @@ Negative years are interpreted as years BC; -1 being 1 BC, and so on."
2360 (+ (* 12 (- yr2 yr1)) 2360 (+ (* 12 (- yr2 yr1))
2361 (- mon2 mon1))) 2361 (- mon2 mon1)))
2362 2362
2363(defvar calendar-font-lock-keywords 2363(defvar calendar-font-lock-keywords nil
2364 ;; Month and year. Not really needed now that calendar-month-header
2365 ;; contains propertize, and not correct for non-american forms
2366 ;; of that variable.
2367 `((,(concat (regexp-opt (mapcar 'identity calendar-month-name-array) t)
2368 " -?[0-9]+")
2369 . 'calendar-month-header)
2370 ;; Day headers.
2371 ;; Also not needed now that calendar-generate-month uses propertize.
2372 (,(regexp-opt
2373 (list (truncate-string-to-width (aref calendar-day-header-array 6)
2374 calendar-day-header-width)
2375 (truncate-string-to-width (aref calendar-day-header-array 0)
2376 calendar-day-header-width)))
2377 ;; Saturdays and Sundays are highlighted differently.
2378 . 'calendar-weekend-header)
2379 (,(regexp-opt (mapcar (lambda (x) (truncate-string-to-width
2380 x calendar-day-header-width))
2381 calendar-day-header-array))
2382 . 'calendar-day-header))
2383 "Default keywords to highlight in Calendar mode.") 2364 "Default keywords to highlight in Calendar mode.")
2384 2365
2385(make-obsolete-variable 'calendar-font-lock-keywords 2366(make-obsolete-variable 'calendar-font-lock-keywords