diff options
| author | Glenn Morris | 2009-02-09 07:52:54 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-09 07:52:54 +0000 |
| commit | bdc3df307b9668a915629fa831e661fe2a28bbf7 (patch) | |
| tree | f7ae57bcb15a2de00053ab12a74e035030f41939 | |
| parent | 160f11d3fbe815548cc369a5c44b4cbc7c3e7402 (diff) | |
| download | emacs-bdc3df307b9668a915629fa831e661fe2a28bbf7.tar.gz emacs-bdc3df307b9668a915629fa831e661fe2a28bbf7.zip | |
(diary-entry-marker, calendar-today-marker)
(calendar-holiday-marker): Drop test for color display.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 45 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-02-08 Glenn Morris <rgm@gnu.org> | 6 | 2009-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. |
| 266 | The value can be either a single-character string or a face." | 265 | The 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. |
| 275 | The value can be either a single-character string or a face. | 271 | The value can be either a single-character string (e.g. \"=\") or a face. |
| 276 | Used by `calendar-mark-today'." | 272 | Used 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. |
| 285 | The value can be either a single-character string or a face." | 278 | The 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 |