aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-27 04:44:01 +0000
committerRichard M. Stallman1998-06-27 04:44:01 +0000
commit4b817373b7f24ac8384a6cf748e3bf0c5e667247 (patch)
tree413372d6a9f8cd4c024799698b8ca8f382ab7a41 /src
parentd25f052025b2fcf767443b78dbca00ccbc36ce6c (diff)
downloademacs-4b817373b7f24ac8384a6cf748e3bf0c5e667247.tar.gz
emacs-4b817373b7f24ac8384a6cf748e3bf0c5e667247.zip
(Fx_list_fonts): Bring arglist into sync with xfns.c.
(x_set_font): Call face-set-after-frame-default. (Qface_set_after_frame_default): New variable. (syms_of_w32fns): Initialize it.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 7850e20eba1..b08ac3f86f2 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -189,6 +189,8 @@ extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle;
189 189
190extern Lisp_Object Vwindow_system_version; 190extern Lisp_Object Vwindow_system_version;
191 191
192Lisp_Object Qface_set_after_frame_default;
193
192extern Lisp_Object last_mouse_scroll_bar; 194extern Lisp_Object last_mouse_scroll_bar;
193extern int last_mouse_scroll_bar_pos; 195extern int last_mouse_scroll_bar_pos;
194 196
@@ -2046,6 +2048,7 @@ x_set_font (f, arg, oldval)
2046 Lisp_Object arg, oldval; 2048 Lisp_Object arg, oldval;
2047{ 2049{
2048 Lisp_Object result; 2050 Lisp_Object result;
2051 Lisp_Object frame;
2049 2052
2050 CHECK_STRING (arg, 1); 2053 CHECK_STRING (arg, 1);
2051 2054
@@ -2064,6 +2067,9 @@ x_set_font (f, arg, oldval)
2064 } 2067 }
2065 else 2068 else
2066 abort (); 2069 abort ();
2070
2071 XSETFRAME (frame, f);
2072 call1 (Qface_set_after_frame_default, frame);
2067} 2073}
2068 2074
2069void 2075void
@@ -4844,7 +4850,7 @@ enum_font_cb1 (lplf, lptm, FontType, lpef)
4844} 4850}
4845 4851
4846 4852
4847DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 3, 0, 4853DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 4, 0,
4848 "Return a list of the names of available fonts matching PATTERN.\n\ 4854 "Return a list of the names of available fonts matching PATTERN.\n\
4849If optional arguments FACE and FRAME are specified, return only fonts\n\ 4855If optional arguments FACE and FRAME are specified, return only fonts\n\
4850the same size as FACE on FRAME.\n\ 4856the same size as FACE on FRAME.\n\
@@ -4859,9 +4865,12 @@ The return value is a list of strings, suitable as arguments to\n\
4859set-face-font.\n\ 4865set-face-font.\n\
4860\n\ 4866\n\
4861Fonts Emacs can't use (i.e. proportional fonts) may or may not be excluded\n\ 4867Fonts Emacs can't use (i.e. proportional fonts) may or may not be excluded\n\
4862even if they match PATTERN and FACE.") 4868even if they match PATTERN and FACE.\n\
4863 (pattern, face, frame) 4869\n\
4864 Lisp_Object pattern, face, frame; 4870The optional fourth argument MAXIMUM sets a limit on how many\n\
4871fonts to match. The first MAXIMUM fonts are reported.")
4872 (pattern, face, frame, maximum)
4873 Lisp_Object pattern, face, frame, maximum;
4865{ 4874{
4866 int num_fonts; 4875 int num_fonts;
4867 char **names; 4876 char **names;
@@ -5646,6 +5655,9 @@ syms_of_w32fns ()
5646 staticpro (&Qdisplay); 5655 staticpro (&Qdisplay);
5647 /* This is the end of symbol initialization. */ 5656 /* This is the end of symbol initialization. */
5648 5657
5658 Qface_set_after_frame_default = intern ("face-set-after-frame-default");
5659 staticpro (&Qface_set_after_frame_default);
5660
5649 Fput (Qundefined_color, Qerror_conditions, 5661 Fput (Qundefined_color, Qerror_conditions,
5650 Fcons (Qundefined_color, Fcons (Qerror, Qnil))); 5662 Fcons (Qundefined_color, Fcons (Qerror, Qnil)));
5651 Fput (Qundefined_color, Qerror_message, 5663 Fput (Qundefined_color, Qerror_message,