aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-02-09 07:52:54 +0000
committerGlenn Morris2009-02-09 07:52:54 +0000
commitbdc3df307b9668a915629fa831e661fe2a28bbf7 (patch)
treef7ae57bcb15a2de00053ab12a74e035030f41939
parent160f11d3fbe815548cc369a5c44b4cbc7c3e7402 (diff)
downloademacs-bdc3df307b9668a915629fa831e661fe2a28bbf7.tar.gz
emacs-bdc3df307b9668a915629fa831e661fe2a28bbf7.zip
(diary-entry-marker, calendar-today-marker)
(calendar-holiday-marker): Drop test for color display.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/calendar.el45
2 files changed, 24 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a8914bb471..1dfb5a96f11 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-02-09 Glenn Morris <rgm@gnu.org>
2
3 * calendar/calendar.el (diary-entry-marker, calendar-today-marker)
4 (calendar-holiday-marker): Drop test for color display.
5
12009-02-08 Glenn Morris <rgm@gnu.org> 62009-02-08 Glenn Morris <rgm@gnu.org>
2 7
3 * calendar/calendar.el (diary-entry-marker, calendar-today-marker) 8 * calendar/calendar.el (diary-entry-marker, calendar-today-marker)
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 0709a18b4ac..e2cb14827c8 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -250,40 +250,33 @@ See `calendar-holiday-marker'."
250;; Backward-compatibility alias. FIXME make obsolete. 250;; Backward-compatibility alias. FIXME make obsolete.
251(put 'holiday-face 'face-alias 'holiday) 251(put 'holiday-face 'face-alias 'holiday)
252 252
253;; These don't respect changes in font-lock-mode after loading. 253;; These briefly checked font-lock-mode, but that is broken, since it
254 254;; is a buffer-local variable, and which buffer happens to be current
255;; Checking font-lock-mode is broken, since it is a buffer-local 255;; when this file is loaded shouldn't make a difference. One could
256;; variable, and which buffer happens to be current when this file is 256;; perhaps check global-font-lock-mode, or font-lock-global-modes; but
257;; loaded shouldn't make a difference. One could perhaps check 257;; this feature doesn't use font-lock, so there's no real reason it
258;; global-font-lock-mode, or font-lock-global-modes; but this feature 258;; should respect those either. See bug#2199.
259;; doesn't use font-lock, so there's no real reason it should respect 259;; They also used to check display-color-p, but that is a problem if
260;; those either. See bug#2199. 260;; loaded from --daemon. Since BW displays are rare now, this was
261(defcustom diary-entry-marker (if ;(and font-lock-mode 261;; also taken out. The way to keep it would be to have nil mean do a
262 (display-color-p) 262;; runtime check whenever this variable is used.
263 'diary 263(defcustom diary-entry-marker 'diary
264 "+")
265 "How to mark dates that have diary entries. 264 "How to mark dates that have diary entries.
266The value can be either a single-character string or a face." 265The value can be either a single-character string (e.g. \"+\") or a face."
267 :type '(choice string face) 266 :type '(choice (string :tag "Single character string") face)
268 :group 'diary) 267 :group 'diary)
269 268
270(defcustom calendar-today-marker (if ;(and font-lock-mode 269(defcustom calendar-today-marker 'calendar-today
271 (display-color-p)
272 'calendar-today
273 "=")
274 "How to mark today's date in the calendar. 270 "How to mark today's date in the calendar.
275The value can be either a single-character string or a face. 271The value can be either a single-character string (e.g. \"=\") or a face.
276Used by `calendar-mark-today'." 272Used by `calendar-mark-today'."
277 :type '(choice string face) 273 :type '(choice (string :tag "Single character string") face)
278 :group 'calendar) 274 :group 'calendar)
279 275
280(defcustom calendar-holiday-marker (if ;(and font-lock-mode 276(defcustom calendar-holiday-marker 'holiday
281 (display-color-p)
282 'holiday
283 "*")
284 "How to mark notable dates in the calendar. 277 "How to mark notable dates in the calendar.
285The value can be either a single-character string or a face." 278The value can be either a single-character string (e.g. \"*\") or a face."
286 :type '(choice string face) 279 :type '(choice (string :tag "Single character string") face)
287 :group 'holidays) 280 :group 'holidays)
288 281
289(define-obsolete-variable-alias 'view-calendar-holidays-initially 282(define-obsolete-variable-alias 'view-calendar-holidays-initially