unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 20926@debbugs.gnu.org, bruce.connor.am@gmail.com
Subject: bug#20926: 25.0.50; Quotation marks always display as hard quotes
Date: Thu, 02 Jul 2015 17:46:53 +0300	[thread overview]
Message-ID: <83fv561usi.fsf@gnu.org> (raw)
In-Reply-To: <5594CF60.5040703@cs.ucla.edu>

> Date: Wed, 01 Jul 2015 22:42:56 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: Eli Zaretskii <eliz@gnu.org>, 20926@debbugs.gnu.org
> 
> I reproduced the originally-reported bug and installed a patch as master commit 
> bb35a21c0e8a4b82ac04fa26a53f6ca394afbb24.

Thanks.

But what will that change do to "emacs -batch", where you earlier
arranged for use of the display table?  AFAIU, the new code will not
set up the display table in batch mode, is that correct?  If so,
messages and documentation displayed in batch mode might be illegible
on some text terminals.

> I'm not quite following the "hole in our machinery" a.k.a. "bug within the bug" 
> issue.  Perhaps a separate bug report should be filed for the other bug? 

No, it's the same issue.  The problem is that, although both
char-displayable-p and describe-char-padded-string (called by
"C-u C-x =" to display a character without risking its composition
with the neighboring ones) call the same primitive to find out whether
the character can be displayed, the latter does that dynamically at
run time, whereas the code which runs during startup and determines
whether to set up the display table does that only once.  So, for
example, if the user changes her font configuration without restarting
the session, and the quote characters change their display-ability,
"C-u C-x =" will pick that up, but the display table will not be
recomputed.

That's the "hole" I alluded to.  We need somehow to make sure that
whenever fonts are changed or the encoding of a TTY frame changes, the
display table is recomputed accordingly.

> Anyway, I think the original bug is fixed now; please give it a try.
> 
> By the way, after giving the fix a try I suggest changing your locale from 
> 'en_GB' to 'en_GB.utf8', most likely by setting the LC_ALL or LANG environment 
> variables.  I don't know why utf8 is not the default encoding, but these days 
> it's probably what you want.

How is the locale's codeset relevant here?  The issue was encountered
in a GUI session, where that should be unimportant.  Only the fonts
that are available should be important.





  parent reply	other threads:[~2015-07-02 14:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 12:42 bug#20926: 25.0.50; Quotation marks always display as hard quotes Artur Malabarba
2015-06-29 12:48 ` bruce.connor.am
2015-06-29 13:14   ` Artur Malabarba
2015-06-29 15:02     ` Eli Zaretskii
2015-06-29 15:10       ` Artur Malabarba
2015-06-29 15:22         ` Artur Malabarba
2015-06-29 15:32           ` Eli Zaretskii
2015-06-29 15:38             ` Artur Malabarba
2015-06-29 16:18               ` Artur Malabarba
2015-06-29 16:57                 ` Eli Zaretskii
2015-06-29 19:23         ` Artur Malabarba
2015-06-29 14:56 ` Eli Zaretskii
2015-06-29 15:08   ` Artur Malabarba
2015-07-02  5:42 ` Paul Eggert
2015-07-02 10:12   ` Artur Malabarba
2015-07-02 14:11     ` Paul Eggert
2015-07-02 14:46   ` Eli Zaretskii [this message]
2015-07-02 16:34     ` Paul Eggert
2015-07-02 16:41       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fv561usi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=20926@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    --cc=eggert@cs.ucla.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).