unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim
Date: Fri, 4 Sep 2015 13:22:28 +0000	[thread overview]
Message-ID: <20150904132228.GA2991@acm.fritz.box> (raw)
In-Reply-To: <55E85F85.1060701@cs.ucla.edu>

Hello, Paul.

On Thu, Sep 03, 2015 at 07:56:05AM -0700, Paul Eggert wrote:
> Alan Mackenzie wrote:
> > the original scenario had nothing to do with
> > `text-quoting-style'.

> There seemed little point to having two variables to control text quoting 
> behavior, one for initial inference of display quoting and one for translation 
> of help strings and diagnostics.  So I used the same variable for all three.

At the initial setup, there aren't yet configuration variables, are
there?  .emacs hasn't yet been read.

> > You've cut so much context

> To help move things forward, here's a complete copy of the message I replied to, 
> along with a copy of my reply inserted at the appropriate spot, so that you can 
> see the complete context.

Thanks for that.  Yesterday wasn't a good day.

> > Alan Mackenzie wrote:

> >> On Wed, Sep 02, 2015 at 09:32:42AM -0700, Paul Eggert wrote:
> >>> Alan Mackenzie wrote:
> >>>> Using my  standard font, lat1-16, the curly quotes use the same glyphs as
> >>>> ` and ', hence are visibly indistinguishable from them.

> >>> That's no longer true as of yesterday's master commit
> >>> 1a3518e7c361a9ceaa017c1334a83d14e0651a4e.

> >> I'm afraid it is still true.  After doing a C-h f c-mode, apparent
> >> quotes were in the buffer.  Checking them with C-u C-x =, they were
> >> indeed curly quotes, but were displayed the same as ASCII quotes.

I've just updated my git-master Emacs again, and the situation still
holds: With emacs -Q, C-h f c-mode displays a buffer containing curly
quotes, these curly quotes being visibly indistinguishable from ASCII
quotes.

In particular, I've not seen any shadowed quotes on my screen no matter
what I've done.

> > After fooling around with it on my Linux console, I came up with a
> > scenario that had the behavior you describe.  In this scenario I set
> > the LC_ALL environment variable to en_US.UTF-8 even though the Linux
> > console could display only a few non-ASCII characters (so in some
> > sense this is a misconfiguration).  And I put (setq
> > text-quoting-style 'grave) into my ~/.emacs file, indicating that I
> > wanted traditional ASCII quoting.

After I execute M-: (setq text-quoting-style 'grave), my next C-h f does
indeed use ASCII quotes.

> > Emacs didn't look at the text-quoting-style setting when configuring
> > the display table at startup, which seems wrong, so I patched master
> > to fix that.  Please do a git pull and give it a try.

Done.  See above.  But isn't startup done before processing .emacs?

> > If it still doesn't work for you, please send the output of the shell
> > command ‘locale’ just before invoking Emacs, and the output of the
> > command ‘echo $TERM’, and a copy of the Lisp code that sets
> > text-quoting-style in your ~/.emacs file.  Thanks.

Just for completeness's sake, I have $TERM=linux, no LC_.. variable is
set, and I don't yet have `text-quoting-style' in my .emacs, but will
probably write (setq text-quoting-style 'grave) into it at some stage.

> >>> On a terminal that cannot display curved quotes, ...

Incidentally, I just tried running Emacs under X Windows, and there I
found the two curly quotes visibly indistinguishable from each other,
except with a lot of effort, and they were both indistinguishable from
the ASCII apostrophe, unless there was one nearby on the screen to
compare with.

> >> Currently, my terminal is not such a one.  It _can_ display curly
> >> quotes, but only identically to ASCII quotes.  `char-displayable-p'
> >> returns 'unicode for them.

`char-displayable-p' isn't very useful here.  It does not check whether a
glyph is assigned to a character code, and I don't even think Linux
offers a suitable interface for this.

> >> The issue is not so much whether a terminal can display curly quotes,
> >> rather it's whether a user wants them to be used or not.

> >>> .... Emacs master now uses different glyphs for the quotes’ ASCII
> >>> replacements, because the replacements are shadowed.  The shadowed
> >>> glyphs are easily distinguishable on my Linux console.  Users
> >>> shouldn’t need to configure Emacs specially, or their Linux console
> >>> specially, to get this behavior.  So this objection no longer applies.

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2015-09-04 13:22 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150831061236.27796.57762@vcs.savannah.gnu.org>
     [not found] ` <E1ZWIKb-0007FR-Kk@vcs.savannah.gnu.org>
2015-08-31  6:26   ` [Emacs-diffs] master b533552 2/5: Documentation fixes re quotes Dmitry Gutov
2015-08-31  6:39     ` Paul Eggert
2015-08-31  6:47       ` Dmitry Gutov
2015-08-31  6:53         ` Paul Eggert
2015-08-31  7:00           ` Dmitry Gutov
2015-08-31  7:13             ` Paul Eggert
2015-09-01  0:03           ` Richard Stallman
2015-09-02  1:05             ` Paul Eggert
2015-09-02  1:27               ` David Kastrup
2015-09-02  1:30                 ` Paul Eggert
2015-09-02  5:19                   ` David Kastrup
2015-09-02  5:30                     ` Paul Eggert
2015-09-02 15:40                     ` Richard Stallman
2015-09-02 16:32                       ` David Kastrup
2015-09-03 15:38               ` Dmitry Gutov
2015-09-03 17:42                 ` Paul Eggert
2015-09-03 18:49                   ` Dmitry Gutov
2015-09-03 21:50                     ` Paul Eggert
2015-09-03 22:08                       ` Dmitry Gutov
2015-09-03 22:47                         ` Paul Eggert
2015-09-03 22:59                           ` Dmitry Gutov
2015-09-07  1:28               ` Richard Stallman
     [not found] ` <E1ZWIKd-0007Fs-15@vcs.savannah.gnu.org>
2015-08-31  6:29   ` [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim Dmitry Gutov
2015-08-31  6:38     ` Paul Eggert
2015-08-31 17:34     ` Stefan Monnier
2015-08-31 18:40       ` Dmitry Gutov
2015-08-31 18:48       ` Paul Eggert
2015-09-01  7:35         ` David Kastrup
2015-08-31 17:40     ` Stefan Monnier
2015-08-31 18:03       ` Paul Eggert
2015-09-01  1:55         ` Stephen J. Turnbull
2015-09-01  3:40         ` Stefan Monnier
2015-09-01  6:29           ` Paul Eggert
2015-09-01 10:45           ` Oleh Krehel
2015-09-01 10:53             ` Andreas Schwab
2015-09-01 11:22             ` David Kastrup
2015-09-01 11:40               ` Oleh Krehel
2015-09-01 11:42               ` Dmitry Gutov
2015-09-01 12:06                 ` David Kastrup
2015-09-01 14:20                   ` Dmitry Gutov
2015-09-03 10:16                     ` Oleh Krehel
2015-09-03 11:22                       ` Dmitry Gutov
2015-09-03 14:50                         ` Stefan Monnier
2015-09-03 15:04                           ` Dmitry Gutov
2015-09-01 13:31               ` Paul Eggert
2015-09-01 14:15                 ` David Kastrup
2015-09-01 15:39             ` Stefan Monnier
2015-09-01 19:00               ` Alan Mackenzie
2015-09-02  4:07                 ` Stefan Monnier
2015-09-02  5:28                   ` David Kastrup
2015-09-02 10:02                   ` Alan Mackenzie
2015-09-02 11:22                     ` Dmitry Gutov
2015-09-02 15:41                       ` Richard Stallman
2015-09-02 15:53                         ` Dmitry Gutov
2015-09-02 16:38                         ` Paul Eggert
2015-09-03 15:37                           ` Richard Stallman
2015-09-03 17:26                             ` Paul Eggert
2015-09-02 16:32                     ` Paul Eggert
2015-09-02 17:23                       ` Alan Mackenzie
2015-09-02 17:43                         ` David Kastrup
2015-09-02 22:25                           ` Paul Eggert
2015-09-03 10:48                             ` David Kastrup
2015-09-03 12:45                               ` Andreas Schwab
2015-09-03 14:46                               ` Eli Zaretskii
2015-09-02 22:13                         ` Paul Eggert
2015-09-03 12:22                           ` Alan Mackenzie
2015-09-03 14:56                             ` Paul Eggert
2015-09-04 13:22                               ` Alan Mackenzie [this message]
2015-09-02 20:14                     ` Stefan Monnier
2015-09-01 19:25               ` Paul Eggert
2015-09-07  1:28                 ` Richard Stallman
2015-09-01 19:33               ` Dmitry Gutov
2015-09-02  2:34                 ` Stefan Monnier
2015-09-02  5:23                   ` David Kastrup
2015-09-02 11:16                   ` Dmitry Gutov
2015-09-02 11:52                     ` Quoting yank/diff prefixes (was: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim) David Kastrup
2015-09-03 14:34                     ` [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim Stefan Monnier
2015-09-01 22:57             ` Richard Stallman
2015-09-01  0:03     ` Richard Stallman
2015-09-01  1:20       ` Paul Eggert

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=20150904132228.GA2991@acm.fritz.box \
    --to=acm@muc.de \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /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).