aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2009-03-11 07:53:37 +0000
committerKenichi Handa2009-03-11 07:53:37 +0000
commitb17ae93a91ca4fc4fca4803d4ea5f649156674d4 (patch)
tree71a8a15f7df47c855de9d05fc1139fd16c8974dd /src
parentd64905422625b01c4f6ffcb4276c6021070d6899 (diff)
downloademacs-b17ae93a91ca4fc4fca4803d4ea5f649156674d4.tar.gz
emacs-b17ae93a91ca4fc4fca4803d4ea5f649156674d4.zip
(x_set_font): When ARG is a font-object, don't alter the
fontset of the frame.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index 7074e14077e..52733044f7a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3399,10 +3399,11 @@ x_set_font (f, arg, oldval)
3399 else if (FONT_OBJECT_P (arg)) 3399 else if (FONT_OBJECT_P (arg))
3400 { 3400 {
3401 font_object = arg; 3401 font_object = arg;
3402 /* This is store the XLFD font name in the frame parameter for 3402 /* This is to store the XLFD font name in the frame parameter for
3403 backward compatiblity. We should store the font-object 3403 backward compatiblity. We should store the font-object
3404 itself in the future. */ 3404 itself in the future. */
3405 arg = AREF (font_object, FONT_NAME_INDEX); 3405 arg = AREF (font_object, FONT_NAME_INDEX);
3406 fontset = FRAME_FONTSET (f);
3406 } 3407 }
3407 else 3408 else
3408 signal_error ("Invalid font", arg); 3409 signal_error ("Invalid font", arg);