1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

173 Commits

Author SHA1 Message Date
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
Richard M. Stallman
6fe3eb772f (list-faces-display): Improve the formatting
by computing the maximum length required for any face-name.
1999-01-11 13:32:11 +00:00
Andrew Innes
8cd2ac8d1a (set-face-font): Call resolve-fontset-name on w32.
(set-face-font-auto): Ditto.
1998-11-03 22:26:56 +00:00
Eli Zaretskii
fabe60871a (frame-set-background-mode): Enable the function for MSDOS frames. 1998-10-20 16:34:29 +00:00
Richard M. Stallman
077fcb28fa (modify-face-read-string): Return (nil) for "none".
(modify-face): Don't get error if (nil) is the argument.
(face-try-color-list): Don't check whether nil is a valid color.
1998-10-19 18:25:59 +00:00
Richard M. Stallman
49cd149a22 (frame-set-background-mode): Don't do anythung for text-only or MSDOS frame. 1998-10-10 12:10:30 +00:00
Richard M. Stallman
b7ad053cb4 (list-faces-display): Call print-help-return-message.
(describe-face): Likewise.
1998-08-11 11:15:58 +00:00
Kenichi Handa
53caf287d1 (x-create-frame-with-faces): If an ASCII font is
specified in PARAMETERS, create a fontset from the font and use it
for the new frame.
1998-07-03 04:39:22 +00:00
Richard M. Stallman
d25f052025 (set-face-font): For now, don't call
resolve-fontset-name on Windows.
(set-face-font-auto): Likewise.
1998-06-27 04:42:03 +00:00
Kenichi Handa
70ccc86659 (set-face-font): Pay attention to fontset.
(set-face-font-auto): Call resolve-fontset-name.
1998-06-12 07:10:59 +00:00
Richard M. Stallman
0bea75b9d4 (frame-update-face-colors): Call frame-set-background-mode. 1998-05-25 18:37:10 +00:00
Richard M. Stallman
ba7eaddad2 (frame-background-mode): Define a :set function
to update the background mode of existing frames.
1998-05-20 00:40:19 +00:00
Karl Heuer
113ab303b8 (basic-faces): New group. Put the standard faces in it. 1997-10-23 06:36:33 +00:00
Richard M. Stallman
2743019037 (set-face-font-auto): instanciate-fontset renamed to instantiate-fontset. 1997-09-05 23:39:21 +00:00