From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader 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: Mon, 30 Mar 2009 21:48:57 +0900 Message-ID: <87eiwftbuu.fsf@catnip.gol.com> Reply-To: Miles Bader , 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 1238418312 18881 80.91.229.12 (30 Mar 2009 13:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 13:05:12 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 30 15:06:25 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 1LoHB5-0006nx-U4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 15:05:57 +0200 Original-Received: from localhost ([127.0.0.1]:39570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoH9i-0005Xg-GV for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 09:03:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoH9e-0005Xb-8h for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:03:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoH9Z-0005XD-8Y for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:03:53 -0400 Original-Received: from [199.232.76.173] (port=47637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoH9Z-0005XA-0e for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:03:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49094) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoH9Y-0008HO-3m for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:03:48 -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 n2UD3kVF013572; Mon, 30 Mar 2009 06:03:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2UCt4uR011246; Mon, 30 Mar 2009 05:55:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Miles Bader Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 30 Mar 2009 12:55:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2824 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12384173519983 (code B ref -1); Mon, 30 Mar 2009 12:55:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Mar 2009 12:49:11 +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 n2UCn4gP009977 for ; Mon, 30 Mar 2009 05:49:05 -0700 Original-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 Original-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 Original-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 Original-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 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 3F8ACDFA9; Mon, 30 Mar 2009 21:48:57 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Original-Lines: 95 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 30 Mar 2009 09:03: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:26752 gmane.emacs.pretest.bugs:24199 Archived-At: 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.