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
Richard M. Stallman
9d52c8d369
(frame-update-faces): New function.
1994-04-22 08:47:42 +00:00
Richard M. Stallman
586ab698cf
(make-face-x-resource-internal): Don't mess with terminal frames.
1994-04-14 09:31:18 +00:00
Richard M. Stallman
e69e8fad9b
(x-create-frame-with-faces): Create frame invisible,
...
set up the faces, then make it visible.
1994-04-14 07:38:15 +00:00
Karl Heuer
da41135a67
(copy-face): Don't change old-face and new-face before the frame loop.
1994-03-02 06:45:38 +00:00
Richard M. Stallman
6a588f9a70
(face-try-color-list): Don't rely on errors from using
...
a color that the server can't really support.
1994-02-15 22:38:00 +00:00
Richard M. Stallman
19ae9866c9
(face-initialize): Specify default characteristics
...
for the standard faces. Use face-fill-in to set up existing frames.
(face-fill-in, face-try-color-list): New subroutines.
Handle underline, foreground and background in the
frame-independent info of a face.
(x-create-frame-with-faces): Use face-fill-in.
(x-initialize-frame-faces): Function deleted.
1994-02-12 06:25:56 +00:00
Richard M. Stallman
2f2ddd1e4a
(copy-face): Doc fix.
1994-02-08 18:22:09 +00:00
Richard M. Stallman
534dbc9764
(make-face-unitalic, make-face-unbold, make-face-bold)
...
(make-face-bold-italic, make-face-italic): If frame is t,
do the special handling only if face-font is a list.
1993-11-27 07:52:47 +00:00
Richard M. Stallman
8db93e456a
(x-resolve-font-name): Undo previous change.
1993-11-21 07:23:17 +00:00
Richard M. Stallman
4901eb1b09
(x-resolve-font-name): Don't pass FACE to x-list-fonts
...
if FACE has nil as its font.
1993-11-20 08:42:47 +00:00
Richard M. Stallman
ec3b1a9bf9
(x-create-frame-with-faces): Check for on' or
true'
...
as reverseVideo resource value.
1993-08-14 09:23:24 +00:00
Richard M. Stallman
f3f31ccf98
Make boldness and italicness affect subsequently created frames.
...
(make-face-bold, make-face-italic, make-face-bold-italic)
(make-face-unbold, make-face-unitalic): Update global-face-data.
Ignore a list found in the font slot.
(make-face-bold-internal, make-face-italic-internal):
(make-face-bold-italic-internal): New subroutines.
(x-create-frame-with-faces): If global-face-data's font slot
indicates bold and/or italic, make it so.
1993-08-03 07:12:34 +00:00
Richard M. Stallman
11872f7e1e
(face-equal): Don't mess with face-background-pixmap.
1993-07-18 04:44:27 +00:00
Richard M. Stallman
710e70052b
(copy-face): New arg NEW-FRAME.
...
(list-faces-display): New command.
1993-07-13 22:05:13 +00:00
Jim Blandy
eacaa9905a
* faces.el (make-face-bold, make-face-italic,
...
make-face-bold-italic, make-face-unbold, make-face-unitalic):
Properly pass noerror argument to recursive calls.
1993-07-04 01:46:30 +00:00
Jim Blandy
31beb30ec1
Fix typo in last change.
1993-06-30 04:14:08 +00:00
Jim Blandy
66a5c2c6e4
* faces.el (global-face-data): Doc fix.
1993-06-29 23:33:00 +00:00
Richard M. Stallman
f4b9e76b49
(face-initialize): Create `underline' face.
...
(x-initialize-frame-faces): Set up `underline' face.
(x-initialize-frame-faces): Check x-display-color-p
and x-display-planes to decide whether to try using colors or gray.
1993-06-28 20:38:49 +00:00
Jim Blandy
8220dfd066
Doc fix.
1993-06-28 19:56:00 +00:00
Jim Blandy
586388410a
* faces.el (make-face-bold, make-face-italic,
...
make-face-bold-italic, make-face-unbold, make-face-unitalic):
Always pass the frame parameter to internal-try-face-font; we only
want to set the face for this frame.
* faces.el (make-face-bold, make-face-italic,
make-face-bold-italic, make-face-unbold, make-face-unitalic):
Fix error messages.
1993-06-17 22:59:49 +00:00
Richard M. Stallman
f0b9055ffa
(set-face-background-pixmap, face-background-pixmap): Functions commented out.
1993-06-17 22:07:26 +00:00
Richard M. Stallman
0f1dc98e7a
(x-create-frame-with-faces): Reversevideo -> ReverseVideo.
1993-06-07 23:23:42 +00:00
Richard M. Stallman
7cf6fac180
(x-resolve-font-name): Clean up error messages.
1993-05-31 18:02:03 +00:00
Jim Blandy
25c08a32ed
* faces.el (x-resolve-font-name): Give correct error message
...
depending on whether or not FACE was non-nil.
1993-05-30 17:28:33 +00:00
Jim Blandy
d9d5950f41
* faces.el (x-resolve-font-name): Fix args to error; the format
...
string was changed, but not the arguments to be substituted.
1993-05-30 17:21:36 +00:00
Richard M. Stallman
14e6867cdf
(x-resolve-font-name): Allow symbol as FACE arg.
...
Allow t as FRAME arg.
1993-05-29 04:36:40 +00:00
Richard M. Stallman
1b691d5c6c
(x-create-frame-with-faces): Handle reverseVideo resource.
1993-05-27 23:50:21 +00:00
Jim Blandy
10d8967392
* faces.el (x-resolve-font-name): If PATTERN is nil, return the
...
frame's face.
(set-face-font): Only use x-resolve-font-name if FONT is a string.
Copying a faces shouldn't resolve the font.
1993-05-26 19:42:36 +00:00
Jim Blandy
281dc1c259
* faces.el (set-face-font): Call x-resolve-font-name on the font
...
before including it in the face.
(x-resolve-font-name): New function.
1993-05-25 13:19:28 +00:00
Richard M. Stallman
1dd6d2a2dd
(x-create-frame-with-faces): Handle `reverse' as parameter.
1993-05-25 02:28:03 +00:00
Jim Blandy
19fac29988
* faces.el (make-face): Change interactive spec to 'S'.
1993-05-24 01:58:58 +00:00
Jim Blandy
ade516a1a7
* xfaces.el (face-equal): Doc fix.
1993-05-19 19:48:38 +00:00
Richard M. Stallman
ebea97d856
(face-initialize): Do make the modeline face.
...
(x-initialize-frame-faces): Explicitly invert `modeline' face.
(x-create-frame-with-faces): Simplify; do nothing special
with `default' or `modeline' face.
1993-05-16 15:41:50 +00:00
Richard M. Stallman
578d09a642
Rename primary-selection' to
region'.
1993-05-15 21:17:55 +00:00
Richard M. Stallman
8494bbf1a7
(face-initialize): Don't create the `modeline' face.
...
Set region-face.
(invert-face): Really do use the default colors.
(x-initialize-frame-faces): Always try "gray" color for
primary-selection; always invert if that fails.
Similar changes for highlight, secondary-selection.
(make-face): Add interactive spec.
(set-default-font): Deleted.
1993-05-15 19:53:44 +00:00
Richard M. Stallman
e09c52a8a0
(face-initialize): New function.
...
All initialization code moved into it.
Call at end of file, if using X frames already.
(x-create-frame-with-faces): Don't use faces if not initialized.
1993-05-13 03:24:09 +00:00
Jim Blandy
bdda375433
Re-arranged stuff to put defsubst accessors at the top
1993-05-11 19:14:34 +00:00
Jim Blandy
f0138172cd
* faces.el: Call internal-set-face-1, not internat-set-face-1.
...
* faces.el: Don't set frame-creation-function here; x-win.el is
the appropriate place to set it.
* faces.el: Only apply x-initialize-frame-faces to X frames; pass
over terminal frames.
* faces.el: Provide 'faces.
1993-05-09 23:48:41 +00:00
Jim Blandy
bb9a81fcda
* faces.el (read-face-name): Call face-list, not list-faces.
...
Fail more gracefully if we can't build bold, italic, etc,
versions of the default font.
* faces.el (make-face-bold, make-face-italic,
make-face-bold-italic, make-face-unbold, make-face-unitalic):
Implement NOERROR argument.
(x-initialize-frame-faces): Use the NOERROR argument to the
font manipulation functions to avoid errors while starting up.
Remove initialization of isearch font.
* xfaces.c (internal-x-complain-about-font): Add new frame
argument, so we can check the frame parameters to find the
default font. Callers changed.
* faces.el (x-create-frame-with-faces): Fix typo. Dyke out
code to fully qualify the modeline font; we may not be able to
do that correctly.
1993-05-09 23:38:29 +00:00
Eric S. Raymond
465fceed88
Initial revision
1993-04-03 23:28:03 +00:00