From unknown Sun Aug 17 22:08:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2824: 23.0.91; font-selection weirdness with `set-frame-attribute' of default face Reply-To: Miles Bader , 2824@debbugs.gnu.org Resent-From: Miles Bader Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 30 Mar 2009 12:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2824 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12384173519983 (code B ref -1); Mon, 30 Mar 2009 12:55:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Mar 2009 12:49:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2UCn4gP009977 for ; Mon, 30 Mar 2009 05:49:05 -0700 Received: from mx10.gnu.org ([199.232.76.166]:46187) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LoGvH-0006Dg-EW for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 08:49:03 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LoGvF-0005vi-9G for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 08:49:03 -0400 Received: from smtp11.dentaku.gol.com ([203.216.5.73]:35618) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoGvE-0005vM-M1; Mon, 30 Mar 2009 08:49:01 -0400 Received: from 218.231.175.8.eo.eaccess.ne.jp ([218.231.175.8] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1LoGvB-0008R0-Va; Mon, 30 Mar 2009 21:48:58 +0900 Received: by catnip.gol.com (Postfix, from userid 1000) id 3F8ACDFA9; Mon, 30 Mar 2009 21:48:57 +0900 (JST) From: Miles Bader To: emacs-pretest-bug@gnu.org System-Type: x86_64-unknown-linux-gnu Date: Mon, 30 Mar 2009 21:48:57 +0900 Message-ID: <87eiwftbuu.fsf@catnip.gol.com> Lines: 95 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Emacs seems to use different fonts to display ascii vs. non-ascii characters when one uses `set-frame-attribute' to set the default font. To reproduce (using X): (1) In a shell, evaluate the following commands: xrdb -remove echo '*Font: Dejavu Sans Mono-11' > /tmp/.Xdefaults echo '(set-face-attribute '\''default nil :family "Liberation Mono")= ' > /tmp/.emacs HOME=3D/tmp emacs -no-splash -eval '(insert "caf=C3=A9")'& (2) Position the cursor over the "c" in "caf=C3=A9", and use C-u C-x =3D Notice it says that the font used is "Liberation Mono", which is the correct default font. (3) Position the cursor over the "=C3=A9" in "caf=C3=A9", and use C-u C-x = =3D Notice that it says the font used is "Dejavu Sans Mono", which is _not_ the correct default font, but rather was the startup font. This problem only seems to occur if one uses `set-face-attribute' to set the default font. If one uses `set-frame-font' (etc), it seems to work correctly; e.g., try using the shell command: echo '(set-frame-font "Liberation Mono")' > /tmp/.emacs and then start emacs as in the original recipe; the "=C3=A9" should correctly be displayed using the current default font. Thanks, -Miles In GNU Emacs 23.0.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.0) of 2009-03-30 on catnip Windowing system distributor `The X.Org Foundation', version 11.0.10599902 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: rcirc-track-minor-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x g C-x C-v . e m a c s =20 > C-x C-v . e m a SPC ? . SPC C-g C-x b a s d f =20 c a f e C-x 8 ' e C-b C-u C-x =3D C-b C-u=20 C-x =3D =3D C-f C-n =20 C-p C-x =3D C-u C-x =3D =20 x r e p o r SPC Recent messages: Checking new news...done Mark set Making completion list... [2 times] xding Quit Type C-x 1 to delete the help window. Char: =C3=A9 (233, #o351, #xe9, file ...) point=3D4 of 4 (75%) column=3D3 Char: f (102, #o146, #x66) point=3D3 of 4 (50%) column=3D2 xding Char: c (99, #o143, #x63) point=3D1 of 5 (0%) column=3D0 [2 times] --=20 Brain, n. An apparatus with which we think we think. From unknown Sun Aug 17 22:08:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2824: 23.0.91; font-selection weirdness with `set-frame-attribute' of default face Reply-To: Kenichi Handa , 2824@debbugs.gnu.org Resent-From: Kenichi Handa Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 31 Mar 2009 01:05:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2824 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12384611055520 (code B ref -1); Tue, 31 Mar 2009 01:05:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 31 Mar 2009 00:58:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,HAS_BUG_NUMBER, REMOVEDOT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2V0wMaE005512 for ; Mon, 30 Mar 2009 17:58:23 -0700 Received: from mx10.gnu.org ([199.232.76.166]:56141) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LoSJ3-0003Np-D3 for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 20:58:21 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LoSJ0-0001Q8-Lw for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 20:58:19 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]:65185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoSIu-0001PP-JY; Mon, 30 Mar 2009 20:58:13 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n2V0w5cX021036; Tue, 31 Mar 2009 09:58:06 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n2V0w52u023037; Tue, 31 Mar 2009 09:58:05 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id n2V0w5Gu029101; Tue, 31 Mar 2009 09:58:05 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LoSJZ-0002P5-40; Tue, 31 Mar 2009 09:58:53 +0900 From: Kenichi Handa To: Miles Bader , 2824@debbugs.gnu.org CC: emacs-pretest-bug@gnu.org In-reply-to: <87eiwftbuu.fsf@catnip.gol.com> (message from Miles Bader on Mon, 30 Mar 2009 21:48:57 +0900) References: <87eiwftbuu.fsf@catnip.gol.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Message-Id: Date: Tue, 31 Mar 2009 09:58:53 +0900 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id n2V0w5cX021036 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 In article <87eiwftbuu.fsf@catnip.gol.com>, Miles Bader w= rites: > Emacs seems to use different fonts to display ascii vs. non-ascii > characters when one uses `set-frame-attribute' to set the default font. I can't reproduce the problem with the latest code. It may be because of the fix I installed last night. Does your Emacs have this change? 2009-03-30 Kenichi Handa * fontset.c (fontset_from_font): Specify only registry in a font-spec for all characters supported by that registry. If not yet, could you please try again with the latest code? --- Kenichi Handa handa@m17n.org > To reproduce (using X): > (1) In a shell, evaluate the following commands: > xrdb -remove > echo '*Font: Dejavu Sans Mono-11' > /tmp/.Xdefaults > echo '(set-face-attribute '\''default nil :family "Liberation Mo= no")' > /tmp/.emacs > HOME=3D/tmp emacs -no-splash -eval '(insert "caf=C3=A9")'& > (2) Position the cursor over the "c" in "caf=C3=A9", and use C-u C-x =3D > Notice it says that the font used is "Liberation Mono", which is > the correct default font. > (3) Position the cursor over the "=C3=A9" in "caf=C3=A9", and use C-u = C-x =3D > Notice that it says the font used is "Dejavu Sans Mono", which is > _not_ the correct default font, but rather was the startup font. > This problem only seems to occur if one uses `set-face-attribute' to se= t > the default font. If one uses `set-frame-font' (etc), it seems to work > correctly; e.g., try using the shell command: > echo '(set-frame-font "Liberation Mono")' > /tmp/.emacs > and then start emacs as in the original recipe; the "=C3=A9" should > correctly be displayed using the current default font. > Thanks, > -Miles > In GNU Emacs 23.0.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.0) > of 2009-03-30 on catnip > Windowing system distributor `The X.Org Foundation', version 11.0.10599= 902 > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > Major mode: Text > Minor modes in effect: > rcirc-track-minor-mode: t > tooltip-mode: t > mouse-wheel-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > Recent input: > C-x g C-x C-v . e m a c s =20 > > C-x C-v . e m a SPC ? . SPC C-g C-x b a s d f =20 > c a f e C-x 8 ' e C-b C-u C-x =3D C-b C-u=20 > C-x =3D =3D C-f C-n =20 > C-p C-x =3D C-u C-x =3D =20 > x r e p o r SPC > Recent messages: > Checking new news...done > Mark set > Making completion list... [2 times] > xding > Quit > Type C-x 1 to delete the help window. > Char: =C3=A9 (233, #o351, #xe9, file ...) point=3D4 of 4 (75%) column=3D= 3 > Char: f (102, #o146, #x66) point=3D3 of 4 (50%) column=3D2 > xding > Char: c (99, #o143, #x63) point=3D1 of 5 (0%) column=3D0 [2 times] > --=20 > Brain, n. An apparatus with which we think we think. From unknown Sun Aug 17 22:08:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2824: 23.0.91; font-selection weirdness with `set-frame-attribute' of default face Reply-To: Miles Bader , 2824@debbugs.gnu.org Resent-From: Miles Bader Original-Sender: snogglethorpe@gmail.com Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 31 Mar 2009 03:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2824 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123847058916536 (code B ref -1); Tue, 31 Mar 2009 03:45:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 31 Mar 2009 03:36:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2V3aQ8B016521 for ; Mon, 30 Mar 2009 20:36:27 -0700 Received: from mx10.gnu.org ([199.232.76.166]:59679) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LoUm2-0008BF-4d for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 23:36:26 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LoUm0-0005jd-Vq for emacs-pretest-bug@gnu.org; Mon, 30 Mar 2009 23:36:25 -0400 Received: from yw-out-1718.google.com ([74.125.46.154]:63934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoUlz-0005jK-Dl; Mon, 30 Mar 2009 23:36:23 -0400 Received: by yw-out-1718.google.com with SMTP id 9so1595511ywk.66 for ; Mon, 30 Mar 2009 20:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=Sjrzo6Ac63bF0uTfZ3xjMXs7nepDmj4yn+XJBTVRbhU=; b=oJNjmzgXKMZnxZKR4L3lq+0BMdSQPph+CqUJNTRm/GUuLyjjVDIYNzZuGHjbKC1PVW jG7MnDTa5PNB90Y5mwGunCL8aXw2Fnjvev9dSOGZlH9CRk+7tCeNB26mraKSKPXMR8Zo OyxCGpUokYG05+xRZucJSaFgZUj9MlWiIKpkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=eBpzPMvQmAP6UmG/+yFXrgENZbVLsBpJhQGXoj3Ctnwr8bIhChhoFDJZB26+doL/20 idh03cxWzkZtW4aU3QgnZmGtkDN14ycNzIl7cM/VGirLHCfPQIAXWV+7Gs2YW5M/8+Fl 84rGycuEtz/FhgR9TGj+NhItIGyarYChkfyDI= MIME-Version: 1.0 Sender: snogglethorpe@gmail.com Received: by 10.151.112.10 with SMTP id p10mr11722026ybm.32.1238470582742; Mon, 30 Mar 2009 20:36:22 -0700 (PDT) In-Reply-To: References: <87eiwftbuu.fsf@catnip.gol.com> Date: Tue, 31 Mar 2009 12:36:22 +0900 X-Google-Sender-Auth: 55314c68a2c9568c Message-ID: From: Miles Bader To: Kenichi Handa Cc: 2824@debbugs.gnu.org, emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 2009/3/31 Kenichi Handa : >> Emacs seems to use different fonts to display ascii vs. non-ascii >> characters when one uses `set-frame-attribute' to set the default font. > > I can't reproduce the problem with the latest code. =A0It may > be because of the fix I installed last night. =A0Does your > Emacs have this change? I tried with the latest emacs, and you're right, it's fixed now! I should have waited another day.... :-) Thanks, -Miles --=20 Do not taunt Happy Fun Ball. From cyd@stupidchicken.com Thu Apr 9 19:24:52 2009 Received: (at control) by emacsbugs.donarmstrong.com; 10 Apr 2009 02:24:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3A2Oo8C001852 for ; Thu, 9 Apr 2009 19:24:51 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id F0BEC57E251; Thu, 9 Apr 2009 22:26:32 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 2824 Date: Thu, 09 Apr 2009 22:26:32 -0400 Message-ID: <87ljq9meg7.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 2824 thanks