;;; Code:
(eval-when-compile
- (require 'cl))
+ (require 'cl)
+ ;; Warning suppression -- can't require x-win in batch:
+ (autoload 'xw-defined-colors "x-win"))
(require 'cus-face)
the name of a face attribute, and each ENTRY is a cons of the form
(RESOURCE . CLASS) with RESOURCE being the resource and CLASS being the
X resource class for the attribute."
- :type 'sexp
+ :type '(repeat (cons symbol (repeat (cons string string))))
:group 'faces)
FRAME is the frame whose frame-local face is set. FRAME nil means
do it on all frames. See `defface' for information about SPEC."
(let ((attrs (face-spec-choose spec frame)))
- (face-spec-reset-face face frame)
+ (when attrs
+ (face-spec-reset-face face frame))
(while attrs
(let ((attribute (car attrs))
(value (car (cdr attrs))))
:group 'faces
:set #'(lambda (var value)
(set-default var value)
- (mapcar 'frame-set-background-mode (frame-list)))
+ (mapc 'frame-set-background-mode (frame-list)))
:initialize 'custom-initialize-changed
:type '(choice (choice-item dark)
(choice-item light)
(put 'modeline 'face-alias 'mode-line)
(defface header-line
- '((((type x) (class color))
- (:box (:line-width 2 :style released-button)
- :background "grey75" :foreground "black"))
- (((type w32) (class color))
- (:box (:line-width 2 :style released-button)
- :background "grey75" :foreground "black"))
+ '((((type tty))
+ (:inverse-video t))
+ (((class color) (background light))
+ (:box (:line-width 1 :style released-button)
+ :background "grey90"
+ :inherit mode-line))
+ (((class color) (background dark))
+ (:box (:line-width 1 :style released-button)
+ :background "grey20"
+ :inherit mode-line))
+ (((class mono))
+ (:box (:line-width 1 :style released-button)
+ :background "grey"
+ :inherit mode-line))
(t
(:inverse-video t)))
"Basic header-line face."
(:background "light goldenrod yellow"))
(t (:background "gray")))
"Basic face for highlighting the region."
+ :version "21.1"
:group 'basic-faces)