GNU bug report logs - #24772
26.0.50; homoglyph face is used when Emacs is running as a daemon

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Sun, 23 Oct 2016 14:29:01 UTC

Severity: normal

Found in version 26.0.50

To reply to this bug, email your comments to 24772 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 14:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Óscar Fuentes <ofv <at> wanadoo.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 23 Oct 2016 14:29:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Óscar Fuentes <ofv <at> wanadoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 16:28:17 +0200
The new homoglyph face introduced in
c06a518b5b0706509252abb03875867b10a92fc7 is being used for displaying
characters in Gnu and eww buffers. Those characters look like sore
thumbs, very displeasing.

I have no idea why the curly things are being replaced. I'm using a
graphics terminal (X on GNU/Linux). This is describe-char from a eww
buffer:

             position: 426 of 6337 (7%), column: 143
            character: ‘ (displayed as ‘) (codepoint 8216, #o20030, #x2018)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x2018
               script: symbol
               syntax: . 	which means: punctuation
             category: .:Base, <:Not at eol, c:Chinese, h:Korean, j:Japanese
             to input: type "C-x 8 RET 2018" or "C-x 8 RET LEFT SINGLE QUOTATION MARK"
          buffer code: #xE2 #x80 #x98
            file code: #xE2 #x80 #x98 (encoded by coding system raw-text-unix)
              display: by display table entry [?`] (see below)

The display table entry is displayed by these fonts (glyph codes):
`: xft:-PfEd-DejaVu Sans-normal-normal-normal-*-19-*-*-*-*-0-iso10646-1 (#x43)
 face: ‘homoglyph’

Character code properties: customize what to show
  name: LEFT SINGLE QUOTATION MARK
  old-name: SINGLE TURNED COMMA QUOTATION MARK
  general-category: Pi (Punctuation, Initial quote)
  decomposition: (8216) ('‘')

There are text properties here:
  face                 variable-pitch


Another one, with a different font, from a Gnus Summary buffer:

             position: 1484 of 13282 (11%), column: 35
            character: “ (displayed as “) (codepoint 8220, #o20034, #x201c)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x201C
               script: symbol
               syntax: . 	which means: punctuation
             category: .:Base, <:Not at eol, c:Chinese, h:Korean, j:Japanese
             to input: type "C-x 8 RET 201c" or "C-x 8 RET LEFT DOUBLE QUOTATION MARK"
          buffer code: #xE2 #x80 #x9C
            file code: #xE2 #x80 #x9C (encoded by coding system nil)
              display: by display table entry [?"] (see below)

The display table entry is displayed by these fonts (glyph codes):
": xft:-MS  -Consolas-normal-normal-normal-*-19-*-*-*-m-0-iso10646-1 (#x251)
 face: ‘homoglyph’

Character code properties: customize what to show
  name: LEFT DOUBLE QUOTATION MARK
  old-name: DOUBLE TURNED COMMA QUOTATION MARK
  general-category: Pi (Punctuation, Initial quote)
  decomposition: (8220) ('“')

There are text properties here:
  face                 gnus-summary-normal-ancient
  gnus-number          14350


In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, X toolkit)
 of 2016-10-21 built on qcore
Repository revision: 0929e061fb544c0f4c10ff0412a41cf7e8148270
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.10

Configured using:
 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS LIBXML2
FREETYPE XFT ZLIB LUCID X11

Important settings:
  value of $LANG: C
  locale-coding-system: nil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 14:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 17:51:14 +0300
> From: Óscar Fuentes <ofv <at> wanadoo.es>
> Date: Sun, 23 Oct 2016 16:28:17 +0200
> 
> 
> The new homoglyph face introduced in
> c06a518b5b0706509252abb03875867b10a92fc7 is being used for displaying
> characters in Gnu and eww buffers. Those characters look like sore
> thumbs, very displeasing.

Could you please mention a couple of Web pages where you see this?

Also, do you see something different in 25.1.50?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 15:52:01 GMT) Full text and rfc822 format available.

Message #11 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Óscar Fuentes <ofv <at> wanadoo.es>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 24772 <at> debbugs.gnu.org
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 17:51:49 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Óscar Fuentes <ofv <at> wanadoo.es>
>> Date: Sun, 23 Oct 2016 16:28:17 +0200
>> 
>> 
>> The new homoglyph face introduced in
>> c06a518b5b0706509252abb03875867b10a92fc7 is being used for displaying
>> characters in Gnu and eww buffers. Those characters look like sore
>> thumbs, very displeasing.
>
> Could you please mention a couple of Web pages where you see this?

It happens with this, for instance:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24772

> Also, do you see something different in 25.1.50?

Right now emacs-25 fails to compile with

Processing OKURI-NASI entries ...
processed 10% ...
processed 20% ...
Args out of range: #("ね /黒" 0 4 (charset japanese-jisx0208)), -5, nil
Makefile:142: recipe for target '../../emacs/leim/../lisp/leim/ja-dic/ja-dic.el' failed
make[2]: *** [../../emacs/leim/../lisp/leim/ja-dic/ja-dic.el] Error 255
make[2]: Leaving directory '/home/oscar/dev/emacs/build/leim'
Makefile:320: recipe for target 'leim' failed
make[1]: *** [leim] Error 2
make[1]: Leaving directory '/home/oscar/dev/emacs/build/lisp'
Makefile:385: recipe for target 'lisp' failed
make: *** [lisp] Error 2


I can seek a good revision if that's important. But while trying to
reproduce the bug, I noticed that emacs -Q is not affected, nor a
regular emacs session (that loads my config) but the session I'm running
as a daemon does show the problem. I think that that is the real
trigger. Can you try visiting the web page above with a daemonized emacs
on GNU/Linux? Or can you tell me what data to inspect to know if Emacs
decided to show those chars on a translated form when the daemon
started?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 16:39:02 GMT) Full text and rfc822 format available.

Message #14 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Óscar Fuentes <ofv <at> wanadoo.es>
To: Eli Zaretskii <eliz <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 24772 <at> debbugs.gnu.org
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 18:38:37 +0200
Óscar Fuentes <ofv <at> wanadoo.es> writes:

> I can seek a good revision if that's important. But while trying to
> reproduce the bug, I noticed that emacs -Q is not affected, nor a
> regular emacs session (that loads my config) but the session I'm running
> as a daemon does show the problem. I think that that is the real
> trigger. Can you try visiting the web page above with a daemonized emacs
> on GNU/Linux? Or can you tell me what data to inspect to know if Emacs
> decided to show those chars on a translated form when the daemon
> started?

Indeed, the problem is that standard-display-table is set by
startup--setup-quote-display when the daemon starts and it is used for
all terminals.

This model seems wrong. An Emacs server can have several terminals. We
need a substitution table (an standard-display-table) for each terminal,
don't we?

BTW, as a quick workaround, setting standard-display-table to nil solves
the problem.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 16:43:02 GMT) Full text and rfc822 format available.

Message #17 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 19:41:54 +0300
> From: Óscar Fuentes <ofv <at> wanadoo.es>
> Cc: 24772 <at> debbugs.gnu.org
> Date: Sun, 23 Oct 2016 17:51:49 +0200
> 
> I can seek a good revision if that's important. But while trying to
> reproduce the bug, I noticed that emacs -Q is not affected, nor a
> regular emacs session (that loads my config) but the session I'm running
> as a daemon does show the problem. I think that that is the real
> trigger.

Most probably because when the daemon starts, it has no window system,
so the test for these characters being displayable fails.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 16:48:02 GMT) Full text and rfc822 format available.

Message #20 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 19:47:29 +0300
> From: Óscar Fuentes <ofv <at> wanadoo.es>
> Cc: 24772 <at> debbugs.gnu.org
> Date: Sun, 23 Oct 2016 18:38:37 +0200
> 
> Indeed, the problem is that standard-display-table is set by
> startup--setup-quote-display when the daemon starts and it is used for
> all terminals.
> 
> This model seems wrong. An Emacs server can have several terminals. We
> need a substitution table (an standard-display-table) for each terminal,
> don't we?

Each window can have its own display table.  I suggested to use this
back when Paul implemented this feature.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 18:49:02 GMT) Full text and rfc822 format available.

Message #23 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>, Óscar Fuentes
 <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 11:48:47 -0700
Eli Zaretskii wrote:
> Each window can have its own display table.

Yes, that sounds like the right fix, though it'll take some work.

Alternatively, Óscar, perhaps you could give me hints about how to change 
startup--setup-quote-display so that it guesses the right way for your setup. I 
expect this will be simpler.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Sun, 23 Oct 2016 19:14:01 GMT) Full text and rfc822 format available.

Message #26 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: ofv <at> wanadoo.es (Óscar Fuentes)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 24772 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Sun, 23 Oct 2016 21:13:25 +0200
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> Eli Zaretskii wrote:
>> Each window can have its own display table.
>
> Yes, that sounds like the right fix, though it'll take some work.
>
> Alternatively, Óscar, perhaps you could give me hints about how to
> change startup--setup-quote-display so that it guesses the right way
> for your setup. I expect this will be simpler.

There is nothing special about my setup. `emacs --daemon' is executed
when my destkop environment (KDE) starts, and that's it.

I guess the problem is reproducible simply with:

$ emacs --daemon -Q
$ emacsclient -c -n
M-x eww http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24772

I could hack startup--setup-quote-display to detect that there is a
graphical environment present, but then the substitution would fail when
a frame is created from a text terminal (while remotely accessing the
server from ssh or from a Linux virtual terminal on the same machine.)

We all agree that the correct way is to use an specific display table
for the characteristics of each terminal. Until the proper fix is
implemented, it is up to you to decide if the feature deserves to be
disabled (I can put the workaround on my config file, so no hurry here.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Tue, 24 Jan 2017 21:02:02 GMT) Full text and rfc822 format available.

Message #29 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Tue, 24 Jan 2017 22:00:54 +0100
Óscar Fuentes <ofv <at> wanadoo.es> writes:

>>> The new homoglyph face introduced in
>>> c06a518b5b0706509252abb03875867b10a92fc7 is being used for displaying
>>> characters in Gnu and eww buffers. Those characters look like sore
>>> thumbs, very displeasing.
>>
>> Could you please mention a couple of Web pages where you see this?
>
> It happens with this, for instance:
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24772

Is this still a problem for you?  The page displays well for me on the
Emacs trunk with eww.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Tue, 24 Jan 2017 23:45:01 GMT) Full text and rfc822 format available.

Message #32 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Óscar Fuentes <ofv <at> wanadoo.es>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 24772 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Wed, 25 Jan 2017 00:43:57 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> It happens with this, for instance:
>>
>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24772
>
> Is this still a problem for you?

Yes.

> The page displays well for me on the Emacs trunk with eww.

Are you executing Emacs as a daemon?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24772; Package emacs. (Tue, 24 Jan 2017 23:54:01 GMT) Full text and rfc822 format available.

Message #35 received at 24772 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 24772 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#24772: 26.0.50; homoglyph face is used in Gnus, eww
Date: Wed, 25 Jan 2017 00:53:28 +0100
Óscar Fuentes <ofv <at> wanadoo.es> writes:

>> The page displays well for me on the Emacs trunk with eww.
>
> Are you executing Emacs as a daemon?

No, I'm not.  I didn't read the rest of the thread closely; sorry.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Changed bug title to '26.0.50; homoglyph face is used when Emacs is running as a daemon' from '26.0.50; homoglyph face is used in Gnus, eww' Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2018 22:49:02 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.