1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

356 Commits

Author SHA1 Message Date
Juanma Barranquero
46057f5f8f (list-faces-display): Fix typo. 2002-02-26 12:13:35 +00:00
Eli Zaretskii
9ef4c8ea41 (mode-line-inactive, header-line): Add the :inherit
attribute for the tty case.
2002-02-17 18:21:59 +00:00
Miles Bader
53a2f6e139 (mode-line-inactive): Add dark-background variant. 2002-02-12 02:59:39 +00:00
Kim F. Storm
c5752dcb2f (mode-line-inactive): New face for mode-line for
non-selected windows.
(mode-line): Doc fix: Only used for selected window.
2002-02-08 23:51:56 +00:00
Jason Rumney
990d68dde9 (face-font-registry-alternatives) [windows-nt]: Add
ms-oemlatin as an alternative for iso8859-1.
2002-01-26 00:03:28 +00:00
Pavel Janík
86886bce27 Fix typos. 2002-01-13 09:56:13 +00:00
Eli Zaretskii
95014d6265 (minibuffer-prompt): A better face definition for MS-DOS. 2002-01-12 12:18:11 +00:00
Eli Zaretskii
0e9f0c4419 (minibuffer-prompt): Special face definition for MS-DOS. 2002-01-10 09:40:57 +00:00
Richard M. Stallman
d352297c8e (face-set-after-frame-default): Don't change `default' face.
(minibuffer-prompt): Adopt some default colors.
2001-12-30 19:39:15 +00:00
Richard M. Stallman
31cf46d33d (minibuffer-prompt): New face.
(minibuffer-prompt-properties): Add `face' property.
2001-12-24 16:39:31 +00:00
Eli Zaretskii
95125512c2 (read-face-name): Doc fix.
(make-face-bold, make-face-unbold, make-face-italic)
(make-face-unitalic, make-face-bold-italic, invert-face): Remove
trailing blank from the prompt passed to read-face-name.
2001-10-29 18:40:23 +00:00
Eli Zaretskii
e458cb4997 (invert-face): Check for 'unspecified, not for nil,
when testing whether face colors are not specified.  From
David.Kastrup@t-online.de (David Kastrup).
2001-10-29 18:06:50 +00:00
Miles Bader
c7f814cb6d (face-attribute): Add INHERIT argument, consider face inheritance if non-nil.
(face-attribute-merged-with): New function.
(face-attribute-specified-or): New macro.
(face-foreground, face-background, face-stipple): Add INHERIT argument.
Use `face-attribute-specified-or'.
2001-10-28 10:19:33 +00:00
Eli Zaretskii
3fc67165a0 (internal-get-face): Use facep instead of the obsolete
internal-find-face.
(internal-frob-font-weight, internal-frob-font-slant): New
defailiases for obsolete functions.
(x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
(x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
(x-make-font-bold-italic): Use internal-frob-font-weight and
internal-frob-font-slant aliases instead of the obsolete
x-frob-... functions.
2001-10-26 21:16:09 +00:00
Stefan Monnier
2cb95d1b7b (describe-face): Call help-setup-xref earlier. 2001-10-12 16:38:32 +00:00
Miles Bader
8940232b59 (list-faces-display, describe-face): Fix args to `help-xref-button'.
(describe-face): Don't switch to help-buffer around call to `help-setup-xref'.
Use `help-buffer' instead of hard-wired "*Help*".
Require `help-mode'.
2001-10-12 01:53:58 +00:00
Andrew Innes
c97db4e4de (face-font-registry-alternatives) [windows-nt]: Make
gb2312 an alias for gb2312.1980.
2001-10-04 17:14:53 +00:00
Pavel Janík
6228c05b99 Keyword added and FSF specified as Maintainer. 2001-08-06 10:12:17 +00:00
Eli Zaretskii
442ebe9842 (region): Change the background color for the
light-background color display to lightgoldenrod2, to make it
visible on some laptops.
2001-06-29 17:40:38 +00:00
Sam Steingold
00f5189042 minor optimization 2001-05-29 16:12:03 +00:00
Gerd Moellmann
75fe153b0c (tty-handle-reverse-video): Don't set inverse-video. 2001-04-25 18:16:30 +00:00
Stefan Monnier
7cd512f22f (modify-face): Add compatibility for non-interactive use. 2001-04-25 15:22:53 +00:00
Gerd Moellmann
bbf63a7b75 (menu): Doc fix. 2001-04-10 13:37:13 +00:00
Gerd Moellmann
0e4892e24d (defface menu): Doc fix. 2001-04-05 16:16:28 +00:00
Miles Bader
78ad1cd532 (set-face-background, set-face-foreground)
(set-face-stipple): Treat a value of nil as being `unspecified'.
2001-02-13 02:03:58 +00:00
Kenichi Handa
a63bcdb884 (mode-line): Set :line-width property to -1. 2001-02-11 06:47:20 +00:00
Kenichi Handa
0f937ebd99 (set-face-attribute): Describe the case of a negative
value specified for :line-width.
2001-02-09 12:35:36 +00:00
Gerd Moellmann
c242484757 (face-spec-set): Interpret a nil in specs for
foreground and background colors as `unspecified', for
compatibility with 20.x.
2000-12-18 15:05:02 +00:00
Miles Bader
4385f1b08d WS 2000-12-15 03:18:26 +00:00
Miles Bader
f9056dd941 (read-face-attribute): If there's no entry for the user's input in
VALID, just use it as-is (this will often result in an error, but it may
be OK for e.g. colors using hexadecimal notation, and at least will
yield a better error message).
2000-12-15 03:12:09 +00:00
Miles Bader
6e4240195f (frame-set-background-mode): Avoid stomping on locally modified faces. 2000-12-06 05:11:20 +00:00
Kenichi Handa
8ac2d32f18 (face-font-registry-alternatives): Add entries for CJK
fonts.  Doc-string adjusted for the actual usage of this data.
2000-12-04 06:27:16 +00:00
Gerd Moellmann
e3fa42c299 (face-foreground, face-background, face-stipple):
Return nil if attribute is unspecified, for backward
compatibility.
2000-11-29 19:21:17 +00:00
Gerd Moellmann
bdc03dd96f (face-set-after-frame-default): Let face attributes
specified for new frames override frame parameters.
2000-11-24 13:16:13 +00:00
Miles Bader
ebd040584d (menu): Make inverse-video on ttys too. 2000-11-22 15:32:13 +00:00
Gerd Moellmann
2392ccb758 (face-set-after-frame-default): If
`inhibit-default-face-x-resources' is bound, don't intiialize the
default face from X resources.
2000-11-15 19:22:06 +00:00
Miles Bader
bdab1d433f (header-line): Use `:box nil' for color/gs displays too. 2000-11-14 09:02:02 +00:00
Eli Zaretskii
1695ca2b15 (face-spec-set-match-display): Revert the change from
2000-10-24.  Add a FIXME for after v21.1.
2000-11-13 15:03:35 +00:00
Dave Love
f676894c4e (face-font-registry-alternatives): Add :version. 2000-11-12 00:38:44 +00:00
Gerd Moellmann
18f1dcb449 (face-font-registry-alternatives): New user-option. 2000-11-10 14:34:23 +00:00
Eli Zaretskii
53990c845c (tty-handle-reverse-video): New function.
(tty-create-frame-with-faces): Call it.
2000-10-28 17:17:42 +00:00
Miles Bader
073f69e6f7 (face-spec-choose): Change syntax so that the list of attribute-value
pairs is now the cdr of each clause, not the cadr.  Detect old-style
entries, and handle them.  Use pop.
2000-10-27 01:46:13 +00:00
Miles Bader
c698842f20 (face-spec-set-match-display):
Add `graphic' display type (the inverse of `tty').
  Use `display-graphic-p' instead of the window-system variable.
2000-10-24 06:16:20 +00:00
Miles Bader
94fe8a31c7 (face-default-spec, face-user-default-spec): Make defsubsts. 2000-10-24 01:17:23 +00:00
Miles Bader
96c2938fc9 (face-user-default-spec, face-default-spec): New functions.
(face-spec-choose, face-spec-set): Document nil-SPEC behavior.
(frame-set-background-mode, face-set-after-frame-default):
  Use `face-user-default-spec'.  Simplify code slightly.
2000-10-23 05:32:59 +00:00
Miles Bader
984905989e (header-line): Make more reasonable on mono/grayscale displays. 2000-10-23 04:50:20 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Miles Bader
1e221c163c (color-values, color-defined-p): Use `member', not
`memq', because it works correctly for strings.
(frame-set-background-mode): Actually, "unspecified-fg" and
"unspecified-bg" *are* strings.  Use `member', not `memq', and
`equal', not `eq', when a string value is possible.
2000-10-21 22:29:38 +00:00
Miles Bader
d8abcd91a3 (frame-set-background-mode): `unspecified' &c are symbols, not strings. 2000-10-19 08:37:11 +00:00
Eli Zaretskii
772139c0a6 (frame-set-background-mode): If a tty frame defines a
background color, use that to compute the background mode, instead
of always defaulting to "dark".
2000-10-19 06:56:50 +00:00
Miles Bader
1cb4393ea7 (header-line): Change tty-variant to use underlining. 2000-10-12 07:52:42 +00:00
Miles Bader
2af966f9ad (region): Make dark-background `region' face less in-your-face. 2000-10-11 10:39:08 +00:00
Miles Bader
f161d53913 (frame-set-background-mode):
Only do anything if the bg-mode or display-type has actually changed.
  Use `dolist'.
2000-10-11 10:02:10 +00:00
Miles Bader
4b33f2900f (frame-set-background-mode):
Pay attention to saved face specs as well as default ones.
2000-10-11 07:43:17 +00:00
Miles Bader
445a653e23 (secondary-selection): Make foreground visible on tty. 2000-10-08 04:28:35 +00:00
Miles Bader
55a3d2a170 (mode-line, tool-bar): Merge entries for x' and w32'. 2000-09-20 08:46:32 +00:00
Miles Bader
37a9982199 (face-valid-attribute-values): Make sure directories we search for
stipples both exist and are readable before trying to search them.
2000-09-20 07:42:51 +00:00
Miles Bader
690d30e676 (secondary-selection): Make dark-background variant sane. 2000-09-18 05:48:14 +00:00
Miles Bader
53c9ab4f44 (header-line): Tweak face. 2000-09-17 17:05:15 +00:00
Miles Bader
a114b1ca6e (header-line): Change defaults to be less confusing when mixed with mode-lines. 2000-09-17 16:42:09 +00:00
Dave Love
b5325e7880 (face-x-resources): Make custom type more specific.
(frame-background-mode): Use mapc.
(region) <defcustom>: Add :version.
2000-09-10 21:55:22 +00:00
Gerd Moellmann
10ab7a5122 (face-spec-set): Only face-spec-reset-face when
ATTRS is non-nil.
2000-09-08 13:51:08 +00:00
Gerd Moellmann
b0285112e8 (color-values): Doc fix. 2000-09-07 14:10:09 +00:00
Gerd Moellmann
7542976865 (frame-set-background-mode): Use frame-parameter
instead of frame-parameters.
2000-09-07 11:39:31 +00:00
Gerd Moellmann
70a267c9b5 (set-face-attribute): Simplify by calling
internal-set-lisp-face-attribute with FRAME being 0.
2000-09-07 09:50:30 +00:00
Gerd Moellmann
bfe27647ad (set-face-attribute, face-spec-reset-face)
(face-spec-set): Avoid consing by removing calls to `apply'.
2000-09-05 15:54:58 +00:00
Miles Bader
48ec993922 (read-face-font, read-face-and-attribute): Tweak prompts. 2000-08-27 02:04:26 +00:00
Miles Bader
a0e5a5a49c (face-x-resources): Add entry for :inherit. 2000-08-26 11:50:06 +00:00
Miles Bader
19feb949ce (set-face-attribute):
Update doc string.
(face-attribute-name-alist):
  Add :inherit.
(face-valid-attribute-values):
  Handle :inherit.
(face-read-string):
  Rephrase prompt to be less confusing.
  Assume that DEFAULT is a string, since we must return a string.
(face-read-integer):
  Use `format' to turn DEFAULT into an acceptable default for face-read-string.
  Match NEW-VALUE against the string "unspecified", not the symbol
    `unspecified', since that's what face-read-string returns.
(read-face-attribute):
  Lookup a name for old-value in valid, and use it as a default if we find one.
  Treat all values from face-read-string as strings.
  If the default is used, don't do any more processing on the value,
    just use the old value directly.
(read-face-and-attribute, modify-face):
  Tweak prompt.
(read-face-name):
  Don't assume prompt ends with a space.
2000-08-26 10:59:51 +00:00
Miles Bader
25ac7b52b0 (describe-face): Add support for :inherit attribute. 2000-08-26 05:51:52 +00:00
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
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
Richard M. Stallman
573d18cb3d (modify-face): Fix previous change. 1997-08-24 20:40:48 +00:00
Richard M. Stallman
d343b6f10a (modify-face): New arg INVERSE-P.
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.
1997-08-23 02:01:34 +00:00
Richard M. Stallman
1bcb155cb1 Faces now have 2 more elements, bold-p and italic-p.
(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.
1997-08-18 02:32:18 +00:00
Richard M. Stallman
e42537fec7 (set-face-doc-string): Define once again, as alias. 1997-08-09 03:34:34 +00:00
Richard M. Stallman
f60a629a96 (internal-face-interactive): Handle default in usual way,
Provide completion for color reading.
(set-face-foreground, set-face-background): Specify `color'
when reading the color name interactively.
1997-08-04 04:23:51 +00:00
Richard M. Stallman
1c1e0fe5df Alternative colors for standard faces if dark background. 1997-08-04 02:57:47 +00:00
Richard M. Stallman
95c7d3d317 (face-attr-match-p): New function.
(face-attr-match-1, face-spec-match-p, face-attr-construct): Likewise.
(face-spec-choose): New function.
(face-spec-set): Use face-spec-choose.
1997-08-03 04:10:36 +00:00
Kenichi Handa
b9f33f3602 (set-face-font-auto): Create a fontset if FONT is a
fontset not instanciated fontset.
1997-07-31 05:54:08 +00:00
Richard M. Stallman
02e0989b51 (face-documentation): Renamed from face-doc-string.
(set-face-documentation): Renamed from set-face-doc-string.
(face-doc-string): Make this an alias.
1997-07-24 06:04:06 +00:00
Richard M. Stallman
e9e594568d (set-face-font-explicit): Call internal-set-face-1 properly. 1997-07-23 04:22:58 +00:00
Richard M. Stallman
87b6ab4c4a (internal-facep): Length is now 10.
(make-face, x-create-frame-with-faces): Make a face 10 elements long.
(internal-set-face-1): Don't call set-face-attribute-internal
if NAME is nil.
(set-face-font): Set the auto-flag to t or nil.
(face-spec-set): Clear out the font at the start,
if it was set automatically before.
(face-font-explicit): New function.
(set-face-font-auto): New function.
(set-face-font-explicit): New function.
(copy-face): Copy the face-font-external flag.
(internal-try-face-font): Use set-face-font-auto.
1997-07-21 05:16:37 +00:00
Richard M. Stallman
b1eb5e6abd (face-set-after-frame-default): New ubroutine,
taken from x-create-frame-with-faces.
(x-create-frame-with-faces): Call it.
(face-italic-p, face-bold-p): Use equal to compare fonts.
(frame-update-faces): Function now a no-op.
1997-07-05 19:28:02 +00:00
Richard M. Stallman
60a719b0b1 (make-face): Call make-face-internal only if defined.
(internal-set-face-1): Call set-face-attribute-internal
only if it is defined.
1997-05-31 05:37:34 +00:00
Richard M. Stallman
f020126027 (x-create-frame-with-faces): Don't call frame-set-background-mode
until after handling the reverse-video parameter.
1997-05-26 01:30:07 +00:00
Richard M. Stallman
55893d25c0 Unconditionally create the standard faces at load time.
Move face setup here from cus-start.el, and add attribute info.
1997-05-25 21:52:33 +00:00
Richard M. Stallman
e8e4cda0ac (modify-face): Don't call make-face-unbold
if face has no font; likewise for make-face-unitalic.
(x-create-frame-with-faces): Use nil for SET-ANYWAY
when calling make-face-x-resource-internal.
(face-initialize): Don't initialize any face attributes here.
(face-fill-in): Don't call set-face-underline-p if underlining off.

(face-inverse-video-p): New function.
(set-face-inverse-video-p): New function.
(internal-set-face-1): Handle the inverse-video attribute.
(face-spec-set): Handle :inverse-video.
(make-face, x-create-frame-with-faces): Make vectors length 9.
(internal-facep): Expect length 9.
(face-try-color-list): Use set-face-inverse-video-p.
1997-05-25 21:39:38 +00:00
Kenichi Handa
b7d7285cd6 (x-make-font-bold-italic): New function. 1997-05-12 05:26:35 +00:00