summaryrefslogtreecommitdiff
path: root/lisp/faces.el
Commit message (Collapse)AuthorAgeFilesLines
* (face-read-integer, read-face-attribute)Eli Zaretskii2000-01-031-11/+14
| | | | | (color-defined-p, color-values): unspecified-{f,b}g are now strings.
* (read-face-attribute, defined-colors, color-defined-p):Eli Zaretskii2000-01-021-5/+5
| | | | | | Pass the frame to tty-color-* functions. (display-color-p, frame-set-background-mode): Pass the frame to tty-display-color-p.
* (set-face-attribute): Purecopy the attributes set.Dave Love1999-12-161-2/+3
|
* Changes for separate unspecified foreground and background colorsEli Zaretskii1999-12-151-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on character terminals: * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) (FACE_TTY_DEFAULT_BG_COLOR): New macros. * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. (syms_of_xfaces): Initialize and staticpro them. (tty_defined_color): If the color name is unspecified-fg or unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. (tty_color_name): If the color pixel value is either FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg or Qunspecified_bg, respectively. (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg and Qunspecified_bg for foreground and background colors. (realize_default_face): If the foreground and background colors are not specified, default to Qunspecified_fg and Qunspecified_bg. (realize_tty_face): By default, set the face colors to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. Reverse the colors if the default colors were reversed. * dispnew.c (init_display): Initialize the frame pixels of the initial frame to FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. * term.c (turn_on_face): If the default fore- and background colors are reversed, enter inverse video mode. Don't send color escape sequences for unspecified foreground and background colors. (turn_off_face): Handle unspecified-fg and unspecified-bg colors. * dosfns.c (unspecified_colors): New variable. (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg color names, return FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, respectively. (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and Qunspecified_bg, respectively. * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR as pixel values. * faces.el (face-read-integer, read-face-attribute) (color-defined-p, color-values): Allow color values unspecified-fg and unspecified-bg, handle them as unspecified.
* Changes for automatic remapping of X colors on terminal frames:Eli Zaretskii1999-12-061-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * term/pc-win.el (msdos-setup-initial-frame): New function, run by term-setup-hook. Call msdos-remember-default-colors and msdos-handle-reverse-video. (msdos-face-setup): Parts of code moved to msdos-setup-initial-frame. (msdos-handle-reverse-video): New function, modeled after x-handle-reverse-video. (make-msdos-frame): Don't use initial-frame-alist and default-frame-alist. Call msdos-handle-reverse-video. (msdos-color-aliases): Remove. (msdos-color-translate, msdos-approximate-color): Remove. (msdos-color-values): Use 16-bit RGB values. RGB values updated for better approximation of X colors. (msdos-face-setup): Call tty-color-clear. Remove code that sets up tty-color-alist (it is now on startup.el). (x-display-color-p, x-color-defined-p, x-color-values, x-defined-colors, face-color-supported-p, face-color-gray-p): Remove. * facemenu.el (facemenu-read-color, list-colors-display): Use defined-colors for all frame types. (facemenu-color-equal): Use color-values for all frame types. * faces.el (read-face-attribute): For :foreground and :background attributes and frames on character terminals, translate the color to the closest supported one before looking it up in the list of valid values. (face-valid-attribute-values): Call defined-colors for all types of frames. (defined-colors, color-defined-p, color-values, display-color-p): New finctions. (x-defined-colors, x-color-defined-p, x-color-values, x-display-color-p): Aliases for the above. * startup.el (command-line): Register terminal colors for frame types other than x and w32, but only if the terminal supports colors. Call tty-color-define instead of face-register-tty-color. * term/x-win.el (xw-defined-colors): Renamed from x-defined-colors. * term/w32-win.el (xw-defined-colors): Likewise. * term/tty-colors.el: New file. * loadup.el: Load term/tty-colors.
* (set-face-documentation): Purecopy STRING.Dave Love1999-11-301-1/+2
|
* (secondary-selection): Fix wrong color name.Gerd Moellmann1999-11-041-1/+1
|
* * faces.el (secondary-selection): Change background to yellow.Gerd Moellmann1999-11-041-2/+2
|
* (make-face-bold, make-face-unbold, make-face-italic)Gerd Moellmann1999-11-031-6/+10
| | | | | (make-face-unitalic, make-face-bold-italic): Add NOERROR argument for compatibility with old face implementation.
* (region): Doc fix.Phillip Rulon1999-10-091-1/+1
|
* (face-spec-set-match-display): Recognize `type' ofGerd Moellmann1999-10-061-1/+16
| | | | | `motif', `lucid', `x-toolkit'. (menu): New face.
* (face-differs-from-default-p): Compare faceGerd Moellmann1999-09-251-2/+13
| | | | attributes individually.
* Copyright up-date.Dave Love1999-09-131-1/+1
|
* (mode-line, header-line, tool-bar, ): Add :version.Dave Love1999-09-131-3/+10
| | | | | (highlight, secondary-selection): Add :group. (trailing-whitespace): Add :group, :version.
* (mode-line): Replaces `modeline'.Gerd Moellmann1999-09-121-1/+3
| | | | (toplevel): Make `modeline' an alias for `mode-line'.
* (face-italic-p): Return t only for values `italic'Gerd Moellmann1999-09-091-1/+1
| | | | and `oblique'.
* (face-set-after-frame-default): Initialize someGerd Moellmann1999-09-071-9/+46
| | | | | | attributes of some faces from frame parameters. (scroll-bar, border, cursor, mouse): New faces. (fringe): Replaces face `margin'.
* (face-bold-p): Don't return t if face has lighterGerd Moellmann1999-09-061-1/+1
| | | | weight than normal.
* (header-line): Renamed from `top-line'.Gerd Moellmann1999-09-051-2/+2
|
* (tool-bar): Change face `toolbar' to `tool-bar'.Gerd Moellmann1999-09-051-3/+3
|
* (margin): Change background to "gray" for mono (this isGerd Moellmann1999-09-021-2/+0
| | | | drawn with a stipple pattern).
* (margin): Renamed from bitmap-area.Gerd Moellmann1999-08-241-2/+2
|
* (face-valid-attribute-values): Look inEli Zaretskii1999-08-151-1/+1
| | | | x-bitmap-file-path only for x and w32 window systems.
* (face-valid-attribute-values): Return an alist forGerd Moellmann1999-08-121-45/+52
| | | | | | | | | | families on ttys. (face-read-integer): Handle unspecified face attributes. Add completion for `unspecified'. (read-face-attribute): Handle unspecified font attributes. (face-valid-attribute-values): Add `unspecified' to lists so that it can be chosen via completion. (face-read-string): Don't recognize "none" as input.
* (face-set-after-frame-default): Don't callEli Zaretskii1999-08-101-1/+1
| | | | make-face-x-resource-internal for the pc window-system.
* (bitmap-area): Add :version.Dave Love1999-07-301-0/+1
|
* (toolbar): Add face definition for mono displays.Gerd Moellmann1999-07-271-0/+2
|
* (bitmap-area): Change background to white for mono displays.Gerd Moellmann1999-07-261-1/+4
|
* Complete rewrite.Gerd Moellmann1999-07-211-1411/+1347
|
* (face-set-after-frame-default): Obey theRichard M. Stallman1999-04-061-1/+2
| | | | `customized-face' for new faces.
* (list-faces-display): Multiline case of previous fix.Karl Heuer1999-01-251-1/+1
|
* (list-faces-display): Improve the formattingRichard M. Stallman1999-01-111-2/+9
| | | | by computing the maximum length required for any face-name.
* (set-face-font): Call resolve-fontset-name on w32.Andrew Innes1998-11-031-4/+2
| | | | (set-face-font-auto): Ditto.
* (frame-set-background-mode): Enable the function for MSDOS frames.Eli Zaretskii1998-10-201-1/+1
|
* (modify-face-read-string): Return (nil) for "none".Richard M. Stallman1998-10-191-5/+12
| | | | | (modify-face): Don't get error if (nil) is the argument. (face-try-color-list): Don't check whether nil is a valid color.
* (frame-set-background-mode): Don't do anythung for text-only or MSDOS frame.Richard M. Stallman1998-10-101-24/+25
|
* (list-faces-display): Call print-help-return-message.Richard M. Stallman1998-08-111-2/+4
| | | | (describe-face): Likewise.
* (x-create-frame-with-faces): If an ASCII font isKenichi Handa1998-07-031-0/+13
| | | | | specified in PARAMETERS, create a fontset from the font and use it for the new frame.
* (set-face-font): For now, don't callRichard M. Stallman1998-06-271-2/+4
| | | | | resolve-fontset-name on Windows. (set-face-font-auto): Likewise.
* (set-face-font): Pay attention to fontset.Kenichi Handa1998-06-121-4/+2
| | | | (set-face-font-auto): Call resolve-fontset-name.
* (frame-update-face-colors): Call frame-set-background-mode.Richard M. Stallman1998-05-251-0/+1
|
* (frame-background-mode): Define a :set functionRichard M. Stallman1998-05-201-0/+4
| | | | to update the background mode of existing frames.
* (basic-faces): New group. Put the standard faces in it.Karl Heuer1997-10-231-0/+6
|
* (set-face-font-auto): instanciate-fontset renamed to instantiate-fontset.Richard M. Stallman1997-09-051-1/+1
|
* (modify-face): Fix previous change.Richard M. Stallman1997-08-241-1/+1
|
* (modify-face): New arg INVERSE-P.Richard M. Stallman1997-08-231-7/+21
| | | | | | Clear the inverse-video flag before installing new colors. (face-spec-set): Pass INVERSE-P arg, and use (nil) for colors when calling modify-face.
* Faces now have 2 more elements, bold-p and italic-p.Richard M. Stallman1997-08-181-19/+22
| | | | | | | | | (internal-facep, make-face, x-create-frame-with-faces): Create frames with those elements. (face-bold-p, face-italic-p): Just fetch those elements. (set-face-italic-p, set-face-bold-p): Doc fixes. (make-face-bold, make-face-italic, make-face-bold-italic) (make-face-unbold, make-face-unitalic): Set those new elements.
* (set-face-doc-string): Define once again, as alias.Richard M. Stallman1997-08-091-0/+1
|
* (internal-face-interactive): Handle default in usual way,Richard M. Stallman1997-08-041-7/+16
| | | | | | Provide completion for color reading. (set-face-foreground, set-face-background): Specify `color' when reading the color name interactively.
* Alternative colors for standard faces if dark background.Richard M. Stallman1997-08-041-3/+11
|