1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
Commit Graph

186 Commits

Author SHA1 Message Date
Miles Bader
a9de7d29be (face-attr-match-p):
Don't return true if ATTRS are merely a subset of FACE's attributes.
2000-08-20 12:02:24 +00:00
Gerd Moellmann
94354bddf1 (face-font-selection-order)
(face-font-family-alternatives): Add custom type.
2000-07-18 19:07:15 +00:00
Gerd Moellmann
01eac4fdef (frame-background-mode): Doc fix. 2000-07-13 17:43:58 +00:00
Gerd Moellmann
c96308624c (face-spec-set): Ignore invalid attributes like 20.x.
(face-x-resources): Remove duplicate entry for :font.
2000-07-03 13:47:23 +00:00
Gerd Moellmann
0a9c90a068 (region): Change background color for light background. 2000-06-28 20:19:02 +00:00
Gerd Moellmann
d6d5905738 (fringe): Change face for different backgrounds. 2000-06-26 15:05:34 +00:00
Gerd Moellmann
f6478c6609 (tool-bar, mode-line, header-line): Specify foreground
color.
2000-06-23 05:57:18 +00:00
Dave Love
c20d507351 (frame-background-mode): Use set-default, not set, in setter.
(frame-update-faces, frame-update-face-colors): Define with defalias.
2000-06-20 11:33:24 +00:00
Stefan Monnier
2598a293ae Update calls to make-obsolete with a WHEN argument. 2000-06-01 05:07:32 +00:00
Dave Love
07f2794710 Declare more functions obsolete. 2000-05-14 15:30:59 +00:00
Dave Love
ac4c2e6b4d Fix make-obsolete for internal-get-face. 2000-05-10 09:35:14 +00:00
Dave Love
70d0c3b063 Some doc fixes.
(describe-face): Add customize button.  Return the help
text.  Fix prompt.
2000-05-09 15:45:57 +00:00
Kenichi Handa
b32631c868 (read-face-font): Fix TABLE arg to completing-read.
(describe-face): Include `font' attribute in the description.
2000-03-21 00:31:38 +00:00
Dave Love
eab5a18b56 (list-faces-display): Supply help-echo with
help-make-xrefs.
2000-03-01 19:05:05 +00:00
Jason Rumney
3855860a6f (face-font-family-alternatives): Add arial to helv.
(mode-line, header-line, tool-bar): Same default as x for w32.
(fixed-pitch, variable-pitch): Remove wildcard as it prevents
face-font-family-alternatives from working.
2000-02-27 21:13:00 +00:00
Dave Love
32e33f6050 (list-faces-display): Fix header typo. 2000-02-23 20:39:38 +00:00
Eli Zaretskii
53c80cf65e (list-faces-display): Use display-mouse-p, not window-system. 2000-02-17 14:01:20 +00:00
Dave Love
84fe35f0e4 Don't require custom. Add more specific :groups to various deffaces.
(set-face-attribute): Purecopy args.
(read-face-name): Default to name at point and use it in prompt.
Remove colon from arg in all callers.
(list-faces-display): Hyperlink to face descriptions and customize
buffers.
2000-02-16 22:58:42 +00:00
Eli Zaretskii
d5179a0172 (display-color-p): Use framep-on-display.
(display-grayscale-p): New function.
2000-02-02 11:38:16 +00:00
Eli Zaretskii
293b481487 (face-read-integer, read-face-attribute)
(color-defined-p, color-values): unspecified-{f,b}g are now
strings.
2000-01-03 16:58:20 +00:00
Eli Zaretskii
37462f4c7c (read-face-attribute, defined-colors, color-defined-p):
Pass the frame to tty-color-* functions.
(display-color-p, frame-set-background-mode): Pass the frame to
tty-display-color-p.
2000-01-02 14:12:09 +00:00
Dave Love
291cfb968c (set-face-attribute): Purecopy the attributes set. 1999-12-16 19:41:04 +00:00
Eli Zaretskii
f9d2fdc464 Changes for separate unspecified foreground and background colors
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.
1999-12-15 13:14:38 +00:00
Eli Zaretskii
f795f63364 Changes for automatic remapping of X colors on terminal frames:
* 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.
1999-12-06 17:55:00 +00:00
Dave Love
4943580109 (set-face-documentation): Purecopy STRING. 1999-11-30 13:55:34 +00:00
Gerd Moellmann
230e947bea (secondary-selection): Fix wrong color name. 1999-11-04 21:06:33 +00:00
Gerd Moellmann
b261ffa484 * faces.el (secondary-selection): Change background to yellow. 1999-11-04 00:25:55 +00:00
Gerd Moellmann
39cac3e78f (make-face-bold, make-face-unbold, make-face-italic)
(make-face-unitalic, make-face-bold-italic): Add NOERROR argument
for compatibility with old face implementation.
1999-11-03 17:17:28 +00:00
Phillip Rulon
62f1e1cd59 (region): Doc fix. 1999-10-09 00:56:34 +00:00
Gerd Moellmann
ee716db5e0 (face-spec-set-match-display): Recognize `type' of
`motif', `lucid', `x-toolkit'.
(menu): New face.
1999-10-06 23:32:26 +00:00
Gerd Moellmann
6904df7a9c (face-differs-from-default-p): Compare face
attributes individually.
1999-09-25 19:57:48 +00:00
Dave Love
16b34e086d Copyright up-date. 1999-09-13 14:02:54 +00:00
Dave Love
a4391cf101 (mode-line, header-line, tool-bar, ): Add :version.
(highlight, secondary-selection): Add :group.
(trailing-whitespace): Add :group, :version.
1999-09-13 13:59:58 +00:00
Gerd Moellmann
3759f14b25 (mode-line): Replaces `modeline'.
(toplevel): Make `modeline' an alias for `mode-line'.
1999-09-12 20:21:44 +00:00
Gerd Moellmann
a48f602010 (face-italic-p): Return t only for values `italic'
and `oblique'.
1999-09-09 14:54:23 +00:00
Gerd Moellmann
f1cae29e01 (face-set-after-frame-default): Initialize some
attributes of some faces from frame parameters.
(scroll-bar, border, cursor, mouse): New faces.
(fringe): Replaces face `margin'.
1999-09-07 14:48:52 +00:00
Gerd Moellmann
da2c7b8cd5 (face-bold-p): Don't return t if face has lighter
weight than normal.
1999-09-06 15:57:48 +00:00
Gerd Moellmann
e5e7779fb4 (header-line): Renamed from `top-line'. 1999-09-05 16:38:56 +00:00
Gerd Moellmann
533322cdbc (tool-bar): Change face toolbar' to tool-bar'. 1999-09-05 15:48:38 +00:00
Gerd Moellmann
84c499c560 (margin): Change background to "gray" for mono (this is
drawn with a stipple pattern).
1999-09-02 20:52:48 +00:00
Gerd Moellmann
2452e0ae97 (margin): Renamed from bitmap-area. 1999-08-24 19:24:28 +00:00
Eli Zaretskii
f3625fc034 (face-valid-attribute-values): Look in
x-bitmap-file-path only for x and w32 window systems.
1999-08-15 11:52:16 +00:00
Gerd Moellmann
fbd5f1cc27 (face-valid-attribute-values): Return an alist for
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.
1999-08-12 14:35:33 +00:00
Eli Zaretskii
7501463105 (face-set-after-frame-default): Don't call
make-face-x-resource-internal for the pc window-system.
1999-08-10 10:17:47 +00:00
Dave Love
e59176e264 (bitmap-area): Add :version. 1999-07-30 18:03:23 +00:00
Gerd Moellmann
9668a74626 (toolbar): Add face definition for mono displays. 1999-07-27 23:52:50 +00:00
Gerd Moellmann
3d08948993 (bitmap-area): Change background to white for mono displays. 1999-07-26 13:03:06 +00:00
Gerd Moellmann
5f5c8ee54a Complete rewrite. 1999-07-21 21:43:52 +00:00
Richard M. Stallman
acc9e99d87 (face-set-after-frame-default): Obey the
`customized-face' for new faces.
1999-04-06 20:04:27 +00:00
Karl Heuer
ed584298df (list-faces-display): Multiline case of previous fix. 1999-01-25 16:41:04 +00:00