all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* strange display of glyphs in a second window
@ 2014-06-25 17:26 François Patte
  2014-06-25 17:53 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: François Patte @ 2014-06-25 17:26 UTC (permalink / raw)
  To: help-gnu-emacs

Bonjour,


I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
displayed as if emacs could not read them (a square with the code of the
glyph).

For instance & is displayed as: 00 in a red square.
                                26

Also in the bottom bar, the name of the open file is displayed in the
same manner.

I don't understand why... The first frame is OK!

How to correct this?

thank you.
-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-25 17:26 strange display of glyphs in a second window François Patte
@ 2014-06-25 17:53 ` Eli Zaretskii
       [not found] ` <mailman.4291.1403718838.1147.help-gnu-emacs@gnu.org>
  2014-06-26 11:58 ` Rusi
  2 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2014-06-25 17:53 UTC (permalink / raw)
  To: help-gnu-emacs

> From: François Patte <francois.patte@mi.parisdescartes.fr>
> Date: Wed, 25 Jun 2014 19:26:24 +0200
> 
> I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
> displayed as if emacs could not read them (a square with the code of the
> glyph).
> 
> For instance & is displayed as: 00 in a red square.
>                                 26
> 
> Also in the bottom bar, the name of the open file is displayed in the
> same manner.
> 
> I don't understand why... The first frame is OK!

Check out your default-frame-alist and initial-frame-alist, if you
customized them.  Or maybe you are invoking Emacs with a command-line
switch that specifies a font.  Either way, somehow you are forcing on
all frames but the initial one a font that doesn't have glyphs for
some characters, so Emacs displays them as boxes with the character's
codepoint.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
       [not found] ` <mailman.4291.1403718838.1147.help-gnu-emacs@gnu.org>
@ 2014-06-25 21:12   ` François Patte
  2014-06-26  2:47     ` Eli Zaretskii
       [not found]     ` <mailman.4330.1403750872.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 12+ messages in thread
From: François Patte @ 2014-06-25 21:12 UTC (permalink / raw)
  To: help-gnu-emacs

Le 25/06/2014 19:53, Eli Zaretskii a écrit :
>> From: François Patte <francois.patte@mi.parisdescartes.fr>
>> Date: Wed, 25 Jun 2014 19:26:24 +0200
>>
>> I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
>> displayed as if emacs could not read them (a square with the code of the
>> glyph).
>>
>> For instance & is displayed as: 00 in a red square.
>>                                 26
>>
>> Also in the bottom bar, the name of the open file is displayed in the
>> same manner.
>>
>> I don't understand why... The first frame is OK!
> 
> Check out your default-frame-alist and initial-frame-alist, if you
> customized them.  Or maybe you are invoking Emacs with a command-line
> switch that specifies a font.  

I invoke emacs with command line: $ emacs

I have this in my .Xresources

Emacs*font: -adobe-courier-medium-r-normal--24-240-75-75-m-150-iso10646-1

But the problem remains if I delete it....

I did not custom any default-frame-alist or initial-frame-alist



< Either way, somehow you are forcing on
> all frames but the initial one a font that doesn't have glyphs for
> some characters,

Absolutely no problems for displaying glyphs in the initial frame.... I
also use indic unicode glyphs without any problems. Problems occur in
the second frame (invoked with C-x 5 2)



-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-25 21:12   ` François Patte
@ 2014-06-26  2:47     ` Eli Zaretskii
       [not found]     ` <mailman.4330.1403750872.1147.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2014-06-26  2:47 UTC (permalink / raw)
  To: help-gnu-emacs

> From: François Patte <francois.patte@mi.parisdescartes.fr>
> Date: Wed, 25 Jun 2014 23:12:33 +0200
> 
> < Either way, somehow you are forcing on
> > all frames but the initial one a font that doesn't have glyphs for
> > some characters,
> 
> Absolutely no problems for displaying glyphs in the initial
> frame....


Yes, that's what I said.

What does "C-u C-x =" say in the second frame about the font used to
display the characters that are displayed correctly?




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
       [not found]     ` <mailman.4330.1403750872.1147.help-gnu-emacs@gnu.org>
@ 2014-06-26  8:25       ` François Patte
  2014-06-26 15:23         ` Eli Zaretskii
                           ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: François Patte @ 2014-06-26  8:25 UTC (permalink / raw)
  To: help-gnu-emacs

Le 26/06/2014 04:47, Eli Zaretskii a écrit :
>> From: François Patte <francois.patte@mi.parisdescartes.fr>
>> Date: Wed, 25 Jun 2014 23:12:33 +0200
>>
>> < Either way, somehow you are forcing on
>>> all frames but the initial one a font that doesn't have glyphs for
>>> some characters,
>>
>> Absolutely no problems for displaying glyphs in the initial
>> frame....
> 
> 
> Yes, that's what I said.
> 
> What does "C-u C-x =" say in the second frame about the font used to
> display the characters that are displayed correctly?
> 
> 

If I open the new frame with the same text in both frames, I get for the
same letter:

in the first frame
x:-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1 (#x64)

in the second frame:
xft:-unknown-FreeMono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x45)


More strange: there is an interaction with latex commands; for instance,
{\bfseries some text} is "normal" in the first frame, while it is
displayed as a code point for each character (including spaces and line
feed (C-j)) in the second frame...

Italicized text {\itshape some text} is italicized in yellow color in
the first frame  (which the normal behaviour) while it is in upright
character underlined and yellow in the second frame...

I use Auctex; there might be some interaction between Auctex and Emacs....



-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-25 17:26 strange display of glyphs in a second window François Patte
  2014-06-25 17:53 ` Eli Zaretskii
       [not found] ` <mailman.4291.1403718838.1147.help-gnu-emacs@gnu.org>
@ 2014-06-26 11:58 ` Rusi
  2014-06-26 13:16   ` François Patte
  2 siblings, 1 reply; 12+ messages in thread
From: Rusi @ 2014-06-26 11:58 UTC (permalink / raw)
  To: help-gnu-emacs

On Wednesday, June 25, 2014 10:56:24 PM UTC+5:30, François Patte wrote:
> Bonjour,

> I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
> displayed as if emacs could not read them (a square with the code of the
> glyph).

> For instance & is displayed as: 00 in a red square.
>                                 26

> Also in the bottom bar, the name of the open file is displayed in the
> same manner.

> I don't understand why... The first frame is OK!

> How to correct this?

> thank you.
> -- 
> Fran�ois Patte
> Universit� Paris Descartes

Perhaps not related to your issue but if you see above what I am seeing:

I dont see

François Patte
Université Paris Descartes

but 

Fran�ois Patte
Universit� Paris Descartes

This may not be an emacs issue at all – just set your thunderbird to
use UTF-8 instead of latin-1.

However it may be an indication that your locale settings are not utf-8.
What does the following (at the shell) give? I get for example

$ echo $LANG
en_US.UTF-8


रुसि [Just in case: forcing UTF-8 on this post!]


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-26 11:58 ` Rusi
@ 2014-06-26 13:16   ` François Patte
  2014-06-26 13:43     ` Rusi
  0 siblings, 1 reply; 12+ messages in thread
From: François Patte @ 2014-06-26 13:16 UTC (permalink / raw)
  To: help-gnu-emacs

Le 26/06/2014 13:58, Rusi a écrit :
> On Wednesday, June 25, 2014 10:56:24 PM UTC+5:30, François Patte wrote:
>> Bonjour,
> 
>> I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
>> displayed as if emacs could not read them (a square with the code of the
>> glyph).
> 
>> For instance & is displayed as: 00 in a red square.
>>                                 26
> 
>> Also in the bottom bar, the name of the open file is displayed in the
>> same manner.
> 
>> I don't understand why... The first frame is OK!
> 
>> How to correct this?
> 
>> thank you.
>> -- 
>> Fran�ois Patte
>> Universit� Paris Descartes
> 
> Perhaps not related to your issue but if you see above what I am seeing:
> 
> I dont see
> 
> François Patte
> Université Paris Descartes
> 
> but 
> 
> Fran�ois Patte
> Universit� Paris Descartes
> 
> This may not be an emacs issue at all – just set your thunderbird to
> use UTF-8 instead of latin-1.
> 
> However it may be an indication that your locale settings are not utf-8.
> What does the following (at the shell) give? I get for example
> 
> $ echo $LANG
> en_US.UTF-8

$ echo $LANG
fr_FR.utf8

> 
> 
> रुसि [Just in case: forcing UTF-8 on this post!]

फ्रंस


-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-26 13:16   ` François Patte
@ 2014-06-26 13:43     ` Rusi
  0 siblings, 0 replies; 12+ messages in thread
From: Rusi @ 2014-06-26 13:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Thursday, June 26, 2014 6:46:47 PM UTC+5:30, François Patte wrote:
> Le 26/06/2014 13:58, Rusi a écrit :
> > On Wednesday, June 25, 2014 10:56:24 PM UTC+5:30, François Patte wrote:
> >> Bonjour,
> >> I am facing a problem if I open a new frame (C-x 5 2): some glyphs are
> >> displayed as if emacs could not read them (a square with the code of the
> >> glyph).
> >> For instance & is displayed as: 00 in a red square.
> >>                                 26
> >> Also in the bottom bar, the name of the open file is displayed in the
> >> same manner.
> >> I don't understand why... The first frame is OK!
> >> How to correct this?
> >> thank you.
> >> -- 
> >> Fran�ois Patte
> >> Universit� Paris Descartes
> > Perhaps not related to your issue but if you see above what I am seeing:
> > I dont see
> > François Patte
> > Université Paris Descartes
> > but 
> > Fran�ois Patte
> > Universit� Paris Descartes
> > This may not be an emacs issue at all – just set your thunderbird to
> > use UTF-8 instead of latin-1.
> > However it may be an indication that your locale settings are not utf-8.
> > What does the following (at the shell) give? I get for example
> > $ echo $LANG
> > en_US.UTF-8

> $ echo $LANG
> fr_FR.utf8

Ok so thats not the issue then. And I dont know what is.

In any case it might be worthwhile making sure of UTF-8 in thunderbird:

http://kb.mozillazine.org/Font_settings_in_Thunderbird#Character_encoding

> > रुसि [Just in case: forcing UTF-8 on this post!]

> फ्रंस

:-)

> -- 
> François Patte
> Université Paris Descartes

Seems to be working now (the ç and the é)


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-26  8:25       ` François Patte
@ 2014-06-26 15:23         ` Eli Zaretskii
  2014-06-26 15:32         ` Damien Wyart
       [not found]         ` <mailman.4353.1403796223.1147.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2014-06-26 15:23 UTC (permalink / raw)
  To: help-gnu-emacs

> From: François Patte <francois.patte@mi.parisdescartes.fr>
> Date: Thu, 26 Jun 2014 10:25:45 +0200
> 
> > What does "C-u C-x =" say in the second frame about the font used to
> > display the characters that are displayed correctly?
> > 
> > 
> 
> If I open the new frame with the same text in both frames, I get for the
> same letter:
> 
> in the first frame
> x:-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1 (#x64)
> 
> in the second frame:
> xft:-unknown-FreeMono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x45)

That's your problem: you need to find out why does Emacs try to use
that bad font for your frames.  It's some configuration issue on your
system.

> I use Auctex; there might be some interaction between Auctex and Emacs....

If the problem happens in "emacs -Q", then it probably isn't related
to AUCTeX.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-26  8:25       ` François Patte
  2014-06-26 15:23         ` Eli Zaretskii
@ 2014-06-26 15:32         ` Damien Wyart
  2014-06-27 10:15           ` François Patte
       [not found]         ` <mailman.4353.1403796223.1147.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 12+ messages in thread
From: Damien Wyart @ 2014-06-26 15:32 UTC (permalink / raw)
  To: help-gnu-emacs

* François Patte <francois.patte@mi.parisdescartes.fr> in gnu.emacs.help:
> in the first frame
> x:-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1 (#x64)

> in the second frame:
> xft:-unknown-FreeMono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x45)

Could you try something like this in your .emacs:

(add-to-list 'default-frame-alist '(font . "-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1"))

?

Trying to search for "FreeMono" in your Emacs config files (and
additional packages) might also give a hint.

-- 
DW


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
       [not found]         ` <mailman.4353.1403796223.1147.help-gnu-emacs@gnu.org>
@ 2014-06-27 10:12           ` François Patte
  0 siblings, 0 replies; 12+ messages in thread
From: François Patte @ 2014-06-27 10:12 UTC (permalink / raw)
  To: help-gnu-emacs

Le 26/06/2014 17:23, Eli Zaretskii a écrit :
>> From: François Patte <francois.patte@mi.parisdescartes.fr> Date:
>> Thu, 26 Jun 2014 10:25:45 +0200
>> 
>>> What does "C-u C-x =" say in the second frame about the font used
>>> to display the characters that are displayed correctly?
>>> 
>>> 
>> 
>> If I open the new frame with the same text in both frames, I get
>> for the same letter:
>> 
>> in the first frame 
>> x:-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1
>> (#x64)
>> 
>> in the second frame: 
>> xft:-unknown-FreeMono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1
>> (#x45)
> 
> That's your problem: you need to find out why does Emacs try to use 
> that bad font for your frames.  It's some configuration issue on
> your system.
> 
>> I use Auctex; there might be some interaction between Auctex and
>> Emacs....
> 
> If the problem happens in "emacs -Q", then it probably isn't related 
> to AUCTeX.

Problem does not happen with -Q option.... So, I understand what you, it
is related to Auctex...


-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: strange display of glyphs in a second window
  2014-06-26 15:32         ` Damien Wyart
@ 2014-06-27 10:15           ` François Patte
  0 siblings, 0 replies; 12+ messages in thread
From: François Patte @ 2014-06-27 10:15 UTC (permalink / raw)
  To: help-gnu-emacs

Le 26/06/2014 17:32, Damien Wyart a écrit :
> * François Patte <francois.patte@mi.parisdescartes.fr> in
> gnu.emacs.help:
>> in the first frame 
>> x:-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1
>> (#x64)
> 
>> in the second frame: 
>> xft:-unknown-FreeMono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1
>> (#x45)
> 
> Could you try something like this in your .emacs:
> 
> (add-to-list 'default-frame-alist '(font .
> "-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1"))
> 
> ?

Thanks, this partially fix the problem: code points disappear, but some
differences remain in the second frame: text in command \textit{some
text} is underlined and not italicized (in emacs, TeX compilation is not
affected!)

> 
> Trying to search for "FreeMono" in your Emacs config files (and 
> additional packages) might also give a hint.

I tried many grep commands and did not find any FreeMono....



-- 
François Patte
Université Paris Descartes


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-06-27 10:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 17:26 strange display of glyphs in a second window François Patte
2014-06-25 17:53 ` Eli Zaretskii
     [not found] ` <mailman.4291.1403718838.1147.help-gnu-emacs@gnu.org>
2014-06-25 21:12   ` François Patte
2014-06-26  2:47     ` Eli Zaretskii
     [not found]     ` <mailman.4330.1403750872.1147.help-gnu-emacs@gnu.org>
2014-06-26  8:25       ` François Patte
2014-06-26 15:23         ` Eli Zaretskii
2014-06-26 15:32         ` Damien Wyart
2014-06-27 10:15           ` François Patte
     [not found]         ` <mailman.4353.1403796223.1147.help-gnu-emacs@gnu.org>
2014-06-27 10:12           ` François Patte
2014-06-26 11:58 ` Rusi
2014-06-26 13:16   ` François Patte
2014-06-26 13:43     ` Rusi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.