From: Kenichi Handa Date: Wed, 11 Mar 2009 07:53:37 +0000 (+0000) Subject: (x_set_font): When ARG is a font-object, don't alter the X-Git-Tag: emacs-pretest-23.0.92~275 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b17ae93a91ca4fc4fca4803d4ea5f649156674d4;p=emacs.git (x_set_font): When ARG is a font-object, don't alter the fontset of the frame. --- 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) else if (FONT_OBJECT_P (arg)) { font_object = arg; - /* This is store the XLFD font name in the frame parameter for + /* This is to store the XLFD font name in the frame parameter for backward compatiblity. We should store the font-object itself in the future. */ arg = AREF (font_object, FONT_NAME_INDEX); + fontset = FRAME_FONTSET (f); } else signal_error ("Invalid font", arg);