# HG changeset patch # User Juanma Barranquero # Date 1042903862 0 # Node ID a9d24051c8033039d8b91d2def8810617658a483 # Parent 87cedc1fb60b2ec192cf663e6a0268333d7ab522 Don't make faces depend on window-system. diff -r 87cedc1fb60b -r a9d24051c803 lisp/progmodes/cperl-mode.el --- a/lisp/progmodes/cperl-mode.el Sat Jan 18 09:55:37 2003 +0000 +++ b/lisp/progmodes/cperl-mode.el Sat Jan 18 15:31:02 2003 +0000 @@ -544,51 +544,49 @@ (repeat symbol))))) :group 'cperl-faces) -(if window-system - (progn - (defvar cperl-dark-background - (cperl-choose-color "navy" "os2blue" "darkgreen")) - (defvar cperl-dark-foreground - (cperl-choose-color "orchid1" "orange")) - - (defface cperl-nonoverridable-face - `((((class grayscale) (background light)) - (:background "Gray90" :slant italic :underline t)) - (((class grayscale) (background dark)) - (:foreground "Gray80" :slant italic :underline t :weight bold)) - (((class color) (background light)) - (:foreground "chartreuse3")) - (((class color) (background dark)) - (:foreground ,cperl-dark-foreground)) - (t (:weight bold :underline t))) - "Font Lock mode face used to highlight array names." - :group 'cperl-faces) - - (defface cperl-array-face - `((((class grayscale) (background light)) - (:background "Gray90" :weight bold)) - (((class grayscale) (background dark)) - (:foreground "Gray80" :weight bold)) - (((class color) (background light)) - (:foreground "Blue" :background "lightyellow2" :weight bold)) - (((class color) (background dark)) - (:foreground "yellow" :background ,cperl-dark-background :weight bold)) - (t (:weight bold))) - "Font Lock mode face used to highlight array names." - :group 'cperl-faces) - - (defface cperl-hash-face - `((((class grayscale) (background light)) - (:background "Gray90" :weight bold :slant italic)) - (((class grayscale) (background dark)) - (:foreground "Gray80" :weight bold :slant italic)) - (((class color) (background light)) - (:foreground "Red" :background "lightyellow2" :weight bold :slant italic)) - (((class color) (background dark)) - (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic)) - (t (:weight bold :slant italic))) - "Font Lock mode face used to highlight hash names." - :group 'cperl-faces))) +(defvar cperl-dark-background + (cperl-choose-color "navy" "os2blue" "darkgreen")) +(defvar cperl-dark-foreground + (cperl-choose-color "orchid1" "orange")) + +(defface cperl-nonoverridable-face + `((((class grayscale) (background light)) + (:background "Gray90" :slant italic :underline t)) + (((class grayscale) (background dark)) + (:foreground "Gray80" :slant italic :underline t :weight bold)) + (((class color) (background light)) + (:foreground "chartreuse3")) + (((class color) (background dark)) + (:foreground ,cperl-dark-foreground)) + (t (:weight bold :underline t))) + "Font Lock mode face used to highlight array names." + :group 'cperl-faces) + +(defface cperl-array-face + `((((class grayscale) (background light)) + (:background "Gray90" :weight bold)) + (((class grayscale) (background dark)) + (:foreground "Gray80" :weight bold)) + (((class color) (background light)) + (:foreground "Blue" :background "lightyellow2" :weight bold)) + (((class color) (background dark)) + (:foreground "yellow" :background ,cperl-dark-background :weight bold)) + (t (:weight bold))) + "Font Lock mode face used to highlight array names." + :group 'cperl-faces) + +(defface cperl-hash-face + `((((class grayscale) (background light)) + (:background "Gray90" :weight bold :slant italic)) + (((class grayscale) (background dark)) + (:foreground "Gray80" :weight bold :slant italic)) + (((class color) (background light)) + (:foreground "Red" :background "lightyellow2" :weight bold :slant italic)) + (((class color) (background dark)) + (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic)) + (t (:weight bold :slant italic))) + "Font Lock mode face used to highlight hash names." + :group 'cperl-faces)