GNU bug report logs -
#2824
23.0.91; font-selection weirdness with `set-frame-attribute' of default face
Previous Next
Reported by: Miles Bader <miles <at> gnu.org>
Date: Mon, 30 Mar 2009 12:55:03 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2824 in the body.
You can then email your comments to 2824 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2824
; Package
emacs
.
(Mon, 30 Mar 2009 12:55:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Miles Bader <miles <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 30 Mar 2009 12:55:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
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=/tmp emacs -no-splash -eval '(insert "café")'&
(2) Position the cursor over the "c" in "café", and use C-u C-x =
Notice it says that the font used is "Liberation Mono", which is
the correct default font.
(3) Position the cursor over the "é" in "café", and use C-u C-x =
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 "é" 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:
<help-echo> C-x g C-x C-v . e m a c s <return> <escape>
> C-x C-v . e m a SPC ? . SPC C-g C-x b a s d f <return>
c a f e <backspace> C-x 8 ' e C-b C-u C-x = C-b C-u
C-x = = <backspace> C-f C-n <return> <C-down-mouse-3>
<options> <menu-set-font> C-p C-x = C-u C-x = <escape>
x r e p o r SPC <return>
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: é (233, #o351, #xe9, file ...) point=4 of 4 (75%) column=3
Char: f (102, #o146, #x66) point=3 of 4 (50%) column=2
xding
Char: c (99, #o143, #x63) point=1 of 5 (0%) column=0 [2 times]
--
Brain, n. An apparatus with which we think we think.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2824
; Package
emacs
.
(Tue, 31 Mar 2009 01:05:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kenichi Handa <handa <at> m17n.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 31 Mar 2009 01:05:06 GMT)
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
In article <87eiwftbuu.fsf <at> catnip.gol.com>, Miles Bader <miles <at> gnu.org> writes:
> 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 <handa <at> m17n.org>
* 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 <at> 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 Mono")' > /tmp/.emacs
> HOME=/tmp emacs -no-splash -eval '(insert "café")'&
> (2) Position the cursor over the "c" in "café", and use C-u C-x =
> Notice it says that the font used is "Liberation Mono", which is
> the correct default font.
> (3) Position the cursor over the "é" in "café", and use C-u C-x =
> 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 "é" 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:
> <help-echo> C-x g C-x C-v . e m a c s <return> <escape>
> > C-x C-v . e m a SPC ? . SPC C-g C-x b a s d f <return>
> c a f e <backspace> C-x 8 ' e C-b C-u C-x = C-b C-u
> C-x = = <backspace> C-f C-n <return> <C-down-mouse-3>
> <options> <menu-set-font> C-p C-x = C-u C-x = <escape>
> x r e p o r SPC <return>
> 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: é (233, #o351, #xe9, file ...) point=4 of 4 (75%) column=3
> Char: f (102, #o146, #x66) point=3 of 4 (50%) column=2
> xding
> Char: c (99, #o143, #x63) point=1 of 5 (0%) column=0 [2 times]
> --
> Brain, n. An apparatus with which we think we think.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2824
; Package
emacs
.
(Tue, 31 Mar 2009 01:05:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kenichi Handa <handa <at> m17n.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 31 Mar 2009 01:05:08 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2824
; Package
emacs
.
(Tue, 31 Mar 2009 03:45:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Miles Bader <miles <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 31 Mar 2009 03:45:04 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
2009/3/31 Kenichi Handa <handa <at> m17n.org>:
>> 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?
I tried with the latest emacs, and you're right, it's fixed now!
I should have waited another day.... :-)
Thanks,
-Miles
--
Do not taunt Happy Fun Ball.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2824
; Package
emacs
.
(Tue, 31 Mar 2009 03:45:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Miles Bader <miles <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 31 Mar 2009 03:45:06 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to Miles Bader <miles <at> gnu.org>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Fri, 10 Apr 2009 02:30:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Fri, 08 May 2009 14:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.