From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#21588: 25.0.50: Single quotes becoming curvy quotes in message function Date: Tue, 29 Sep 2015 17:17:08 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e014954ac8117a10520e95843 X-Trace: ger.gmane.org 1443647291 5423 80.91.229.3 (30 Sep 2015 21:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2015 21:08:11 +0000 (UTC) To: 21588@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 23:08:03 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZhObZ-0004cE-A8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2015 23:08:01 +0200 Original-Received: from localhost ([::1]:33210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhObY-0005ps-NO for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2015 17:08:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh2Hk-00082b-DQ for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zh2Hj-0007Eh-3K for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:18:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh2Hi-0007EZ-Vk for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zh2Hi-0002Oy-HV for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2015 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21588 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.14435614749217 (code B ref -1); Tue, 29 Sep 2015 21:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2015 21:17:54 +0000 Original-Received: from localhost ([127.0.0.1]:48240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zh2Ha-0002Oa-1C for submit@debbugs.gnu.org; Tue, 29 Sep 2015 17:17:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33570) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zh2HY-0002OQ-Do for submit@debbugs.gnu.org; Tue, 29 Sep 2015 17:17:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zh2HX-00079K-30 for submit@debbugs.gnu.org; Tue, 29 Sep 2015 17:17:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh2HX-00079G-0D for submit@debbugs.gnu.org; Tue, 29 Sep 2015 17:17:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh2HV-0007vv-TV for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:17:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zh2HU-00078u-MN for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:17:49 -0400 Original-Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:33989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh2HU-00078p-GS for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 17:17:48 -0400 Original-Received: by obbda8 with SMTP id da8so16372351obb.1 for ; Tue, 29 Sep 2015 14:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=/WJJl1aWNj807jbsIzpSa3c4o9FdudpBT8f3NeykXR0=; b=CEHzKVqzZa+q2f85redHkrucHOqvCosWrQe5OH77fcCBfRj5GSI+2D+PTcSjQbSZkq +j8agJJjhMPNVjkXIKXx8QinYyC4nYfH5B4tcEWxvmhvf28FCXmogd9jx1BvcvpMZtCd ILrlxsV/93Ljjlv40CDgoDiNqv0eXtaka7YbRBeNh5omu8c+/8if42mAgwP2Cue9ue0N tHlOA6kZn6Ha6M1/fMOWOBo0gIzLoV+k3DfOZGKTChJsIAfk9rEeJtr6YyD2FhVcV/OD ezFCChVw+2MzTOuBNIOMpFhoxIlDOXIA8udZL0aRNt1WJV9hzbBUErufYTab4uBtJyhx bjBw== X-Received: by 10.182.105.231 with SMTP id gp7mr75754obb.81.1443561467875; Tue, 29 Sep 2015 14:17:47 -0700 (PDT) Original-Received: by 10.202.172.205 with HTTP; Tue, 29 Sep 2015 14:17:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107064 Archived-At: --089e014954ac8117a10520e95843 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In an emacs -Q session, when you eval the below, (message "'Hey'") you get =E2=80=99Hey=E2=80=99 "=E2=80=99Hey=E2=80=99" Note the difference here: This is what I get when I do "C-u C-x =3D" 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 =3D" on the first single quote in the *Messages* buffer (C-h e): position: 67 of 338 (20%), column: 0 character: =E2=80=99 (displayed as =E2=80=99) (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) ('=E2=80=99') 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? =E2=80=8BQuestion: Why is emacs converting all single =E2=80=8B -- Kaushal Modi --089e014954ac8117a10520e95843 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In an emacs -Q session, when you= eval the below,=C2=A0

(message "'Hey'")

you get

=E2=80=99Hey=E2=80=99
"= ;=E2=80=99Hey=E2=80=99"

Note the difference here:

This is what I get when I do "C= -u C-x =3D" on the first single quote in the message form:

= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0position: 206 of 208 (99%),= column: 14
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cha= racter: ' (displayed as ') (codepoint 39, #o47, #x27)
<= div class=3D"gmail_default" style=3D"">=C2=A0 =C2=A0 preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x27
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0script: latin
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0syntax: ' which means: prefix
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0category: .:Base, a:ASCII, l:L= atin, r:Roman
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0to input: type "C-x 8 RET 27" or "C-x 8 RET APOSTROPHE= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 buffer code: #x2= 7
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 file code: #x2= 7 (encoded by coding system utf-8-unix)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 display: by this font (glyph code)
=C2=A0 =C2=A0 xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*= -13-*-*-*-m-0-iso10646-1 (#x0A)

Char= acter code properties: customize what to show
=C2=A0 name:= APOSTROPHE
=C2=A0 old-name: APOSTROPHE-QUOTE
=C2=A0 general-category: Po (Punctuation, Other)
=C2= =A0 decomposition: (39) (''')

There are text properties here:
=C2=A0 face =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 font-lock-string-face
=C2=A0 fontified =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil<= /font>


This is what I get when I do "C-= u C-x =3D" on the first single quote in the *Messages* buffer (C-h e):=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0position: 67= of 338 (20%), column: 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 character: =E2= =80=99 (displayed as =E2=80=99) (codepoint 8217, #o20031, #x2019)
=C2=A0 =C2=A0 pr= eferred charset: unicode (Unicode (ISO10646))
<= font face=3D"trebuchet ms, sans-serif">code point in charset: 0x2019=
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0script: symbol
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0syntax: . which means: punctuation
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0category: .:Base, c:Chinese, h:Korean, j:Japanese
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0to input: type "C-x 8 RET 2019" or &qu= ot;C-x 8 RET RIGHT SINGLE QUOTATION MARK"
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = buffer code: #xE2 #x80 #x99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 file code: #= xE2 #x80 #x99 (encoded by coding system utf-8-unix)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 display: by this font (glyph code)
=C2=A0 =C2=A0 xft:-unknown= -DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x6C1)

Character c= ode properties: customize what to show
=C2=A0 name: RIGHT SINGLE QUOTATION MARK
=C2=A0 ol= d-name: SINGLE COMMA QUOTATION MARK
=C2=A0 general-category: Pf (Punctuation, Fin= al quote)
=C2=A0 decomposition: (8217) ('=E2=80=99')

I believe emacs should not be converting all APOSTROPHE characters to = RIGHT SINGLE QUOTATION MARK characters. The displayed messages look just pl= ain weird. To fix that, I would then need to replace all 'MSG' (apo= strophe MSG apostrophe) type message displays to `MSG' (back quote MSG = apostrophe), which is not practical.

Or, is there a defc= ustom I need to set to prevent this character translation to curvy quotes?<= /div>


=E2=80=8BQuestion:

Why is emacs converting all single
=

=E2=80=8B

--
Ka= ushal Modi
--089e014954ac8117a10520e95843--