aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-06-19 01:57:19 +0000
committerStefan Monnier2008-06-19 01:57:19 +0000
commit27129af9d775855efb529d63d2d5c62af2699afe (patch)
tree74e230d850decbf44a9c013e9d6fb30e45ff9b65 /src
parentd26424c5eb84c4bd153a375052fdc96223e0c46e (diff)
downloademacs-27129af9d775855efb529d63d2d5c62af2699afe.tar.gz
emacs-27129af9d775855efb529d63d2d5c62af2699afe.zip
* w32fns.c, xfns.c (Qfont_param): New var.
(syms_of_w32fns): Initialize it. (x_default_font_parameter): Record explicit `font' into `font-parameter'. * faces.el (face-set-after-frame-default): Re-apply explicit `font' frame parameters after setting up the `default' face.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/w32fns.c8
-rw-r--r--src/xfns.c9
3 files changed, 25 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 60cff399cd7..6a920f22f9a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * w32fns.c, xfns.c (Qfont_param): New var.
4 (syms_of_w32fns): Initialize it.
5 (x_default_font_parameter): Record explicit `font' into `font-parameter'.
6
12008-06-18 Kenichi Handa <handa@m17n.org> 72008-06-18 Kenichi Handa <handa@m17n.org>
2 8
3 * font.c (font_parse_xlfd): Fix previous change. 9 * font.c (font_parse_xlfd): Fix previous change.
@@ -24,9 +30,9 @@
24 30
252008-06-18 Jason Rumney <jasonr@gnu.org> 312008-06-18 Jason Rumney <jasonr@gnu.org>
26 32
27 * w32font.c (w32font_list, w32font_match): Add logging. 33 * w32font.c (w32font_list, w32font_match): Add logging.
28 34
29 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging. 35 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
30 36
312008-06-17 Chong Yidong <cyd@stupidchicken.com> 372008-06-17 Chong Yidong <cyd@stupidchicken.com>
32 38
diff --git a/src/w32fns.c b/src/w32fns.c
index c31ee5be04d..34897314567 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -206,6 +206,7 @@ Lisp_Object Qnone;
206Lisp_Object Qsuppress_icon; 206Lisp_Object Qsuppress_icon;
207Lisp_Object Qundefined_color; 207Lisp_Object Qundefined_color;
208Lisp_Object Qcancel_timer; 208Lisp_Object Qcancel_timer;
209Lisp_Object Qfont_param;
209Lisp_Object Qhyper; 210Lisp_Object Qhyper;
210Lisp_Object Qsuper; 211Lisp_Object Qsuper;
211Lisp_Object Qmeta; 212Lisp_Object Qmeta;
@@ -4295,6 +4296,12 @@ x_default_font_parameter (f, parms)
4295 if (NILP (font)) 4296 if (NILP (font))
4296 error ("No suitable font was found"); 4297 error ("No suitable font was found");
4297 } 4298 }
4299 else
4300 {
4301 /* Remember the explicit font parameter, so we can re-apply it after
4302 we've applied the `default' face settings. */
4303 x_set_frame_parameters (f, Fcons (Fcons (Qfont_param, font), Qnil));
4304 }
4298 x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); 4305 x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
4299} 4306}
4300 4307
@@ -8891,6 +8898,7 @@ syms_of_w32fns ()
8891 DEFSYM (Qctrl, "ctrl"); 8898 DEFSYM (Qctrl, "ctrl");
8892 DEFSYM (Qcontrol, "control"); 8899 DEFSYM (Qcontrol, "control");
8893 DEFSYM (Qshift, "shift"); 8900 DEFSYM (Qshift, "shift");
8901 DEFSYM (Qfont_param, "font-parameter");
8894 /* This is the end of symbol initialization. */ 8902 /* This is the end of symbol initialization. */
8895 8903
8896 /* Text property `display' should be nonsticky by default. */ 8904 /* Text property `display' should be nonsticky by default. */
diff --git a/src/xfns.c b/src/xfns.c
index 57b14d3f9d2..58b03691e2f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -204,6 +204,7 @@ Lisp_Object Qnone;
204Lisp_Object Qsuppress_icon; 204Lisp_Object Qsuppress_icon;
205Lisp_Object Qundefined_color; 205Lisp_Object Qundefined_color;
206Lisp_Object Qcompound_text, Qcancel_timer; 206Lisp_Object Qcompound_text, Qcancel_timer;
207static Lisp_Object Qfont_param;
207 208
208/* In dispnew.c */ 209/* In dispnew.c */
209 210
@@ -3087,6 +3088,12 @@ x_default_font_parameter (f, parms)
3087 if (NILP (font)) 3088 if (NILP (font))
3088 error ("No suitable font was found"); 3089 error ("No suitable font was found");
3089 } 3090 }
3091 else
3092 {
3093 /* Remember the explicit font parameter, so we can re-apply it after
3094 we've applied the `default' face settings. */
3095 x_set_frame_parameters (f, Fcons (Fcons (Qfont_param, font), Qnil));
3096 }
3090 x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); 3097 x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
3091} 3098}
3092 3099
@@ -5854,6 +5861,8 @@ syms_of_xfns ()
5854 staticpro (&Qcompound_text); 5861 staticpro (&Qcompound_text);
5855 Qcancel_timer = intern ("cancel-timer"); 5862 Qcancel_timer = intern ("cancel-timer");
5856 staticpro (&Qcancel_timer); 5863 staticpro (&Qcancel_timer);
5864 Qfont_param = intern ("font-parameter");
5865 staticpro (&Qfont_param);
5857 /* This is the end of symbol initialization. */ 5866 /* This is the end of symbol initialization. */
5858 5867
5859 /* Text property `display' should be nonsticky by default. */ 5868 /* Text property `display' should be nonsticky by default. */