From: Kaushal Modi <kaushal.modi@gmail.com>
To: 21588@debbugs.gnu.org
Subject: bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function
Date: Tue, 29 Sep 2015 17:17:08 -0400 [thread overview]
Message-ID: <CAFyQvY1XJyozupjfMLirPqOjEDgh_XnaEN2vq9ZcMRx+Sv-KvA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2701 bytes --]
In an emacs -Q session, when you eval the below,
(message "'Hey'")
you get
’Hey’
"’Hey’"
Note the difference here:
This is what I get when I do "C-u C-x =" on the first single quote in the
message form:
position: 206 of 208 (99%), column: 14
character: ' (displayed as ') (codepoint 39, #o47, #x27)
preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x27
script: latin
syntax: ' which means: prefix
category: .:Base, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 27" or "C-x 8 RET APOSTROPHE"
buffer code: #x27
file code: #x27 (encoded by coding system utf-8-unix)
display: by this font (glyph code)
xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x0A)
Character code properties: customize what to show
name: APOSTROPHE
old-name: APOSTROPHE-QUOTE
general-category: Po (Punctuation, Other)
decomposition: (39) (''')
There are text properties here:
face font-lock-string-face
fontified nil
This is what I get when I do "C-u C-x =" on the first single quote in the
*Messages* buffer (C-h e):
position: 67 of 338 (20%), column: 0
character: ’ (displayed as ’) (codepoint 8217, #o20031, #x2019)
preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x2019
script: symbol
syntax: . which means: punctuation
category: .:Base, c:Chinese, h:Korean, j:Japanese
to input: type "C-x 8 RET 2019" or "C-x 8 RET RIGHT SINGLE
QUOTATION MARK"
buffer code: #xE2 #x80 #x99
file code: #xE2 #x80 #x99 (encoded by coding system utf-8-unix)
display: by this font (glyph code)
xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x6C1)
Character code properties: customize what to show
name: RIGHT SINGLE QUOTATION MARK
old-name: SINGLE COMMA QUOTATION MARK
general-category: Pf (Punctuation, Final quote)
decomposition: (8217) ('’')
I believe emacs should not be converting all APOSTROPHE characters to RIGHT
SINGLE QUOTATION MARK characters. The displayed messages look just plain
weird. To fix that, I would then need to replace all 'MSG' (apostrophe MSG
apostrophe) type message displays to `MSG' (back quote MSG apostrophe),
which is not practical.
Or, is there a defcustom I need to set to prevent this character
translation to curvy quotes?
Question:
Why is emacs converting all single
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 9432 bytes --]
next reply other threads:[~2015-09-29 21:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 21:17 Kaushal Modi [this message]
2015-09-29 21:32 ` bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function Glenn Morris
2015-09-29 22:54 ` Kaushal Modi
2015-09-30 1:05 ` Kaushal Modi
2015-09-30 22:40 ` Paul Eggert
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=CAFyQvY1XJyozupjfMLirPqOjEDgh_XnaEN2vq9ZcMRx+Sv-KvA@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=21588@debbugs.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.