1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

290 Commits

Author SHA1 Message Date
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
Richard M. Stallman
64b26d5cb5 (describe-face): Add documentation. 1997-04-25 18:11:33 +00:00
Richard M. Stallman
d11fba257e (frame-set-background-mode): New function.
(frame-background-mode): New variable.
(x-create-frame-with-faces): Rearrangement of order of font processing.
Handle custom-faces here.
(face-doc-string, set-face-doc-string): New functions.
(set-face-bold-p, set-face-italic-p): New functions.
(face-bold-p, face-italic-p): New function.
(face-spec-set, face-spec-set-1, face-spec-set-match-display): New functions.
1997-04-21 03:56:57 +00:00
Richard M. Stallman
17b3a11bfc (make-face): New arg no-resources.
(make-empty-face): New function.
1997-04-11 05:59:37 +00:00
Kenichi Handa
3aa3a18c9c (set-face-font): Allow specifing fontset for the arg FONT. 1997-03-18 23:16:27 +00:00
Simon Marshall
28ceec49f1 clean code. 1997-03-15 13:22:49 +00:00
Simon Marshall
fbd4411672 When testing FACE's non-nil face-font with the default face font, use the frame's font parameter if the default face's face-font is nil. 1997-03-15 13:14:24 +00:00
Richard M. Stallman
c5f0b2d42d (invert-face): Handle inverting the default face better. 1997-01-07 09:05:31 +00:00
Richard M. Stallman
d7fa5aa239 Change defconsts to defvars. 1996-12-16 01:33:02 +00:00
Geoff Voelker
b86b9918dd Use w32 instead of ms-windows for window-system symbol 1996-11-19 06:59:17 +00:00
Richard M. Stallman
7e45a1ec94 (make-face, make-face-x-resource-internal):
Test for ms-windows instead of win32.  Use memq.
(initialization at end of file): Likewise.
1996-09-15 02:15:42 +00:00
Richard M. Stallman
abd89b8031 (internal-set-face-1): When calling x-list-fonts, ask for just one match. 1996-08-31 22:03:30 +00:00
Richard M. Stallman
3c5ddb48c4 (modify-face): Handle nil as stipple value.
(internal-face-interactive-stipple): New function.
(set-face-stipple): Use internal-face-interactive-stipple.
1996-08-19 16:31:27 +00:00
Richard M. Stallman
e5de02385e (modify-face): Handle stipple values
of the form (WIDTH HEIGHT DATA).
1996-08-16 05:09:09 +00:00
Richard M. Stallman
b8c631a53b (x-create-frame-with-faces): Set threshold for "light color"
at .6 of the total for white.
1996-06-25 18:19:09 +00:00
Richard M. Stallman
528fbf5126 (x-frob-font-slant): Properly handle a match against
x-font-regexp-head.
(x-frob-font-weight): Separate two cond cases by analogy with
x-frob-font-slant.
1996-03-25 15:09:27 +00:00
Richard M. Stallman
25ae394e86 (face-color-gray-p): Return nil if x-color-values does. 1996-01-29 07:27:04 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Simon Marshall
905cf8f284 Take optional arg FRAME.
If flag not nil or t, don't change the attribute.
1995-12-13 15:31:07 +00:00
Simon Marshall
b7ffee5fb7 Wrap case-fold-search for x-frob-font-weight and x-frob-font-slant. 1995-12-12 08:20:37 +00:00
Richard M. Stallman
055ff5a6af (face-color-supported-p): Return nil if no window system. 1995-11-20 23:15:55 +00:00
Geoff Voelker
7b10bca5f7 [win32] (make-face, make-face-x-resource-internal):
Test for 'win32 window system as well as 'x.
1995-11-07 07:48:12 +00:00
Richard M. Stallman
f1d71b2f75 (set-face-background): When using face-color-supported-p,
specify foreground, not background.
1995-08-05 06:33:01 +00:00
Richard M. Stallman
21ef90eecf (set-face-background): Don't treat nil as a color. 1995-07-30 10:10:35 +00:00
Karl Heuer
c8787b81ef (x-font-regexp): Add \\(\\) for substring extraction. 1995-07-27 19:10:36 +00:00
Karl Heuer
021ca12920 (x-font-regexp-weight-subnum, x-font-regexp-slant-subnum)
(x-font-regexp-swidth-subnum, x-font-regexp-adstyle-subnum): Defconst.
1995-07-25 22:06:08 +00:00
Richard M. Stallman
488bedffb5 (make-face-bold, make-face-italic, make-face-bold-italic)
(make-face-unbold, make-face-unitalic):
No error if font is already bold, italic, or whatever.
1995-07-25 04:50:43 +00:00
Richard M. Stallman
82c028e0bc (x-create-frame-with-faces):
Specify frame arg to x-color-values and frame-parameters.
(set-face-background): Pass background-p arg to face-color-supported-p.
1995-07-18 13:27:49 +00:00
Karl Heuer
ef43639253 (x-create-frame-with-faces): Set background-mode
and display-type frame parameters.
(x-frob-font-slant, x-frob-font-weight):
Replace the adstyle field with *, if we can find it.
(set-face-background): Use face-color-supported-p.
(face-color-gray-p): New function.
(face-default-stipple): New variable.
(set-face-background): Use face-default-stipple for all grays.
(set-face-stipple): Change arg name.
(face-color-supported-p): Use face-color-gray-p.
1995-07-17 22:57:32 +00:00
Richard M. Stallman
e20d641f61 (x-font-regexp): Include the avgwidth. 1995-07-02 08:34:02 +00:00
Richard M. Stallman
19deb21efe (describe-face): New function.
(make-face-x-resource-internal): Give special meanings
to font "names" `italic', `bold', and `bold-italic'.
1995-07-01 19:21:49 +00:00
Karl Heuer
313b841c1e (x-create-frame-with-faces): Don't use initial-frame-alist
when looking for the X resource name.
Copy parameters from default-frame-alist, before the geometry
specs from the X resource database.
1995-06-09 15:42:08 +00:00
Karl Heuer
c05533274c (x-create-frame-with-faces): Don't look for geometry
resource if name is nil.
1995-06-09 15:24:50 +00:00
Karl Heuer
6e4aafdc8a (x-create-frame-with-faces): Read geometry resource
and use that while creating the frame.
1995-05-26 03:54:38 +00:00
Karl Heuer
ca58b3ecc6 Put property on set-face-stipple, not set-stipple.
(face-fill-in): Handle stipple.
1995-05-18 22:22:33 +00:00
Richard M. Stallman
d0672e0d73 (set-face-background): Handle FRAME = nil directly
so stipple colors work in that case.
1995-04-16 04:09:48 +00:00
Karl Heuer
732be46569 Update copyright. 1995-04-07 01:20:53 +00:00
Richard M. Stallman
2b979e14a3 Fix previous change. 1995-03-30 07:17:46 +00:00
Richard M. Stallman
6ffb01c433 (modify-face): Handle stipple. Handle defaulting properly.
Speed up making completion alists.
(modify-face-read-string): New subroutine.
1995-03-30 07:15:37 +00:00
Karl Heuer
66cf1bd7bc (x-create-frame-with-faces): Assume cursor-color, mouse-color, and
border-color are okay as specified unless they are the same as the new
background color.
1995-01-30 22:39:20 +00:00
Richard M. Stallman
962a60aa70 (facep): New function.
(internal-check-face): Don't make a loop, since signal can't return.
1995-01-28 08:27:31 +00:00
Richard M. Stallman
93d6fcef18 (face-nontrivial-p): New function. 1995-01-10 17:43:59 +00:00
Richard M. Stallman
de52827f3f (face-try-color-list): Treat `underline' as valid. 1995-01-10 06:52:53 +00:00
Richard M. Stallman
f16c38ae77 (frame-update-face-colors): New function. 1994-12-20 20:42:57 +00:00
Richard M. Stallman
e17dbede1b (face-initialize): Test for framep not t or nil.
(set-face-font): Pass `default' as face to x-resolve-font-name.
(x-resolve-font-name): Better error message when FACE doesn't specify the font.
1994-12-15 13:49:51 +00:00
Richard M. Stallman
39b3b754b5 At compile time, discard any defsubr definitions
in the Emacs doing the compilation.
1994-12-04 16:51:38 +00:00
Richard M. Stallman
feaad827a6 (face-name, face-id, face-foreground, face-background)
(face-font, face-stipple, face-underline-p): Change defsubst to defun.
(set-face-font, set-face-foreground, set-face-background)
(set-face-stipple, set-face-underline-p): Change defsubst to defun.
1994-12-04 14:18:45 +00:00
Richard M. Stallman
4099a32dc9 (face-color-supported-p): New function.
(face-try-color-list): Use that.
1994-11-19 11:12:16 +00:00
Richard M. Stallman
ee09252aa0 (set-face-background): Set either stipple or color,
never both.  Do this only for a specific frame, not for t.
1994-10-23 06:05:12 +00:00
Richard M. Stallman
0fd8a324e2 (set-face-background): If color is gray, and frame
can't display that directly, use corresponding stipple.
(face-try-color-list): Assume gray colors are valid on any display.
1994-10-23 01:05:26 +00:00
Boris Goldowsky
33af44e844 (make-face): Add new face to Face menu on creation. -- Bng 1994-10-20 18:11:27 +00:00
Morten Welinder
87485d6fc9 *** empty log message *** 1994-10-17 08:42:36 +00:00
Richard M. Stallman
72418504bf (set-face-stipple): New function.
(set-face-background-pixmap): An alias for that.
(face-stipple): New function.
(face-background-pixmap): An alias for that.
(copy-face, face-equal, face-differs-from-default-p)
(make-face-x-resource-internal): Handle stipple bitmaps.
1994-10-17 07:31:52 +00:00
Richard M. Stallman
1c0a871059 (modify-face): New function. 1994-09-30 21:01:13 +00:00
Richard M. Stallman
e7cc6aa5c6 (x-create-frame-with-faces): Delete the frame if get error. 1994-09-22 07:26:46 +00:00
Karl Heuer
96616c048a (make-face-unbold, make-face-unitalic, make-face-bold, make-face-italic,
make-face-bold-italic): Don't try to frob font if it's nil.
1994-09-14 03:22:57 +00:00
Richard M. Stallman
52267b568d (copy-face): Ignore errors in set-face-font. 1994-08-11 07:11:51 +00:00
Richard M. Stallman
566b0ad252 (face-initialize): Use underlining for region face
if there's no gray.
(face-try-color-list): Support `underline' in color list.
1994-07-29 21:03:37 +00:00
Richard M. Stallman
a48e03c326 (x-create-frame-with-faces): Don't downcase nil. 1994-07-09 19:25:06 +00:00
Richard M. Stallman
69718e9d7c (x-create-frame-with-faces): Ignore case in X resource.
(make-face-x-resource-internal): Test underline attribute as boolean.
1994-07-05 20:28:33 +00:00
Richard M. Stallman
4b3203d970 (make-face-italic, make-face-bold): Don't bind f2 here.
(make-face-bold-internal, make-face-italic-internal): Bind f2 here.
(make-face-bold-italic-internal, make-face-italic-internal)
(make-face-bold-internal): New arg `font'.  Callers changed.
1994-07-01 17:31:42 +00:00
Richard M. Stallman
23b04eac8c (list-faces-display): Line up multiple lines in sample. 1994-07-01 17:06:34 +00:00
Richard M. Stallman
7ee29ed8e1 (make-face): Return the face name, not the vector. 1994-06-22 21:28:17 +00:00
Richard M. Stallman
ae0249dfd8 (face-equal): Do check the underline attribute. 1994-06-21 20:22:56 +00:00
Richard M. Stallman
2dd60dfd18 (x-create-frame-with-faces): Set the cursor color last. 1994-06-17 13:39:14 +00:00
Karl Heuer
99fb9482a8 (frame-update-faces): Unset old font. 1994-04-27 00:30:55 +00:00