changeset 33160:8006eaf2db42

(diary-face, calendar-today-face, holiday-face): Remove dependency on `window-system'.
author Miles Bader <miles@gnu.org>
date Fri, 03 Nov 2000 03:29:28 +0000
parents 1e1abe8ec96a
children ed9bab286892
files lisp/calendar/calendar.el
diffstat 1 files changed, 25 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/calendar.el	Thu Nov 02 18:50:21 2000 +0000
+++ b/lisp/calendar/calendar.el	Fri Nov 03 03:29:28 2000 +0000
@@ -204,34 +204,33 @@
   :type 'boolean
   :group 'view)
 
-(when window-system
-  (add-to-list 'facemenu-unlisted-faces 'diary-face)
-  (defface diary-face
-    '((((class color) (background light))
-       :foreground "red")
-      (((class color) (background dark))
-       :foreground "yellow")
-      (t
-       :bold t))
-    "Face for highlighting diary entries."
-    :group 'diary)
+(add-to-list 'facemenu-unlisted-faces 'diary-face)
+(defface diary-face
+  '((((class color) (background light))
+     :foreground "red")
+    (((class color) (background dark))
+     :foreground "yellow")
+    (t
+     :bold t))
+  "Face for highlighting diary entries."
+  :group 'diary)
 
-  (add-to-list 'facemenu-unlisted-faces 'calendar-today-face)
-  (defface calendar-today-face
-    '((t (:underline t)))
-    "Face for indicating today's date."
-    :group 'diary)
+(add-to-list 'facemenu-unlisted-faces 'calendar-today-face)
+(defface calendar-today-face
+  '((t (:underline t)))
+  "Face for indicating today's date."
+  :group 'diary)
 
-  (add-to-list 'facemenu-unlisted-faces 'holiday-face)
-  (defface holiday-face
-    '((((class color) (background light))
-       :background "pink")
-      (((class color) (background dark))
-       :background "chocolate4")
-      (t
-       :inverse-video t))
-    "Face for indicating dates that have holidays."
-    :group 'diary))
+(add-to-list 'facemenu-unlisted-faces 'holiday-face)
+(defface holiday-face
+  '((((class color) (background light))
+     :background "pink")
+    (((class color) (background dark))
+     :background "chocolate4")
+    (t
+     :inverse-video t))
+  "Face for indicating dates that have holidays."
+  :group 'diary)
 
 (defcustom diary-entry-marker
   (if (not window-system)