From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2824: 23.0.91; font-selection weirdness with `set-frame-attribute' of default face Date: Tue, 31 Mar 2009 09:58:53 +0900 Message-ID: References: <87eiwftbuu.fsf@catnip.gol.com> Reply-To: Kenichi Handa , 2824@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238462647 9951 80.91.229.12 (31 Mar 2009 01:24:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2009 01:24:07 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Miles Bader , 2824@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 03:25:24 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LoSjE-0006r6-EZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 03:25:24 +0200 Original-Received: from localhost ([127.0.0.1]:41138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoShq-0000SY-No for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 21:23:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoShl-0000Oz-FI for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 21:23:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoShh-0000LF-Pa for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 21:23:53 -0400 Original-Received: from [199.232.76.173] (port=43857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoShh-0000Kv-EJ for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 21:23:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57209) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoShg-0003TW-Uu for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 21:23:49 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2V1NkkT012700; Mon, 30 Mar 2009 18:23:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2V1562h007758; Mon, 30 Mar 2009 18:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 31 Mar 2009 01:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2824 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12384611055520 (code B ref -1); Tue, 31 Mar 2009 01:05:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Mar 2009 00:58:25 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-Received: by smtp4.aist.go.jp with ESMTP id n2V0w5Gu029101; Tue, 31 Mar 2009 09:58:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LoSJZ-0002P5-40; Tue, 31 Mar 2009 09:58:53 +0900 In-reply-to: <87eiwftbuu.fsf@catnip.gol.com> (message from Miles Bader on Mon, 30 Mar 2009 21:48:57 +0900) 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 30 Mar 2009 21:23:53 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26763 gmane.emacs.pretest.bugs:24201 Archived-At: 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.