From: Paul Eggert <eggert@cs.ucla.edu>
To: Kaushal Modi <kaushal.modi@gmail.com>, Glenn Morris <rgm@gnu.org>,
21588-done@debbugs.gnu.org
Cc: Alan Mackenzie <acm@muc.de>, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function
Date: Wed, 30 Sep 2015 15:40:53 -0700 [thread overview]
Message-ID: <560C64F5.3060007@cs.ucla.edu> (raw)
In-Reply-To: <CAFyQvY0oRvSan66GXtVDneTAhrZmGutDysprjAYfrTF_fDt7Ow@mail.gmail.com>
Kaushal Modi wrote:
> It doesn't feel right that (message "'Hey'") gets displayed as ’Hey’.
This shouldn't happen if your ~/.emacs has (setq text-quoting-style
'grave) or (setq text-quoting-style 'straight), so I assume the issue
came up because your text-quoting-style is ‘curve’ or defaults to ‘curve’.
The initial version of the ‘curve’ code behaved as you suggested, and
left isolated apostrophes alone. But as Dmitry pointed out, apostrophe
in English is represented by right single quotation mark as standard
typographic practice in fonts with directed quotes. In traditional
Emacs usage most isolated apostrophes in docstrings and diagnostics are
English apostrophes, so it seemed appropriate to default to
transliterating them as in English, of course with an escape hatch for
the exceptions intended to be straight apostrophes. So I changed the
code to translate all non-escaped apostrophes. This simplified the
transformation rules, which was also a win.
Although there were a few diagnostics in Elisp that quoted English
phrases 'like this', as I recall RMS said that directed quotes were
preferred, so I fixed the instances I found to quote `like this' in
message format strings. Undoubtedly I missed some instances and so some
minor display glitches remain, but they can be fixed as they turn up.
To get typewriter-style straight quoting in your own code, independent
of text-quoting-style, you can write (message "%s" "'Hey'").
next prev parent reply other threads:[~2015-09-30 22:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 21:17 bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function Kaushal Modi
2015-09-29 21:32 ` Glenn Morris
2015-09-29 22:54 ` Kaushal Modi
2015-09-30 1:05 ` Kaushal Modi
2015-09-30 22:40 ` Paul Eggert [this message]
2015-10-01 3:54 ` Kaushal Modi
2015-10-02 6:51 ` Paul Eggert
2015-10-02 16:50 ` Kaushal Modi
2015-09-30 21:10 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=560C64F5.3060007@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=21588-done@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=kaushal.modi@gmail.com \
--cc=monnier@iro.umontreal.ca \
--cc=rgm@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 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.