diff options
| author | Miles Bader | 2000-11-03 03:30:49 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-11-03 03:30:49 +0000 |
| commit | 9c887adacf57efd199e5930cb8f519de6256f583 (patch) | |
| tree | 66c7faf5a17ddefc80638a2d9c124c5451cd3e35 | |
| parent | 9b9111073686faa7dc71b57ff85c120a3a76e6f2 (diff) | |
| download | emacs-9c887adacf57efd199e5930cb8f519de6256f583.tar.gz emacs-9c887adacf57efd199e5930cb8f519de6256f583.zip | |
(diary-face, calendar-today-face, holiday-face):
Remove dependency on `window-system'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 55 |
2 files changed, 32 insertions, 28 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e11116f87dc..a8a1ffd790e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-11-02 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * calendar/calendar.el (diary-face, calendar-today-face) | ||
| 4 | (holiday-face): Remove dependency on `window-system'. | ||
| 5 | |||
| 1 | 2000-11-02 Ken Raeburn <raeburn@gnu.org> | 6 | 2000-11-02 Ken Raeburn <raeburn@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in (emacs): Set EMACSLOADPATH always. | 8 | * Makefile.in (emacs): Set EMACSLOADPATH always. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 4eb08e16265..8773cc8746b 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -204,34 +204,33 @@ If nil, make an icon of the frame. If non-nil, delete the frame." | |||
| 204 | :type 'boolean | 204 | :type 'boolean |
| 205 | :group 'view) | 205 | :group 'view) |
| 206 | 206 | ||
| 207 | (when window-system | 207 | (add-to-list 'facemenu-unlisted-faces 'diary-face) |
| 208 | (add-to-list 'facemenu-unlisted-faces 'diary-face) | 208 | (defface diary-face |
| 209 | (defface diary-face | 209 | '((((class color) (background light)) |
| 210 | '((((class color) (background light)) | 210 | :foreground "red") |
| 211 | :foreground "red") | 211 | (((class color) (background dark)) |
| 212 | (((class color) (background dark)) | 212 | :foreground "yellow") |
| 213 | :foreground "yellow") | 213 | (t |
| 214 | (t | 214 | :bold t)) |
| 215 | :bold t)) | 215 | "Face for highlighting diary entries." |
| 216 | "Face for highlighting diary entries." | 216 | :group 'diary) |
| 217 | :group 'diary) | 217 | |
| 218 | 218 | (add-to-list 'facemenu-unlisted-faces 'calendar-today-face) | |
| 219 | (add-to-list 'facemenu-unlisted-faces 'calendar-today-face) | 219 | (defface calendar-today-face |
| 220 | (defface calendar-today-face | 220 | '((t (:underline t))) |
| 221 | '((t (:underline t))) | 221 | "Face for indicating today's date." |
| 222 | "Face for indicating today's date." | 222 | :group 'diary) |
| 223 | :group 'diary) | 223 | |
| 224 | 224 | (add-to-list 'facemenu-unlisted-faces 'holiday-face) | |
| 225 | (add-to-list 'facemenu-unlisted-faces 'holiday-face) | 225 | (defface holiday-face |
| 226 | (defface holiday-face | 226 | '((((class color) (background light)) |
| 227 | '((((class color) (background light)) | 227 | :background "pink") |
| 228 | :background "pink") | 228 | (((class color) (background dark)) |
| 229 | (((class color) (background dark)) | 229 | :background "chocolate4") |
| 230 | :background "chocolate4") | 230 | (t |
| 231 | (t | 231 | :inverse-video t)) |
| 232 | :inverse-video t)) | 232 | "Face for indicating dates that have holidays." |
| 233 | "Face for indicating dates that have holidays." | 233 | :group 'diary) |
| 234 | :group 'diary)) | ||
| 235 | 234 | ||
| 236 | (defcustom diary-entry-marker | 235 | (defcustom diary-entry-marker |
| 237 | (if (not window-system) | 236 | (if (not window-system) |