From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Tue, 3 May 2016 13:49:26 -0700 Organization: UCLA Computer Science Department Message-ID: <141897a1-c2c0-0143-515b-29f12f0160e7@cs.ucla.edu> References: <7e599cf6-18c3-1633-33d5-e9f4eaa8fe6a@cs.ucla.edu> <20160502191031.GB2048@acm.fritz.box> <83a8k7kv87.fsf@gnu.org> <20160503162716.GB11330@acm.fritz.box> <831t5jkrn2.fsf@gnu.org> <20160503200330.GC11330@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------49A9375CA2B397BBA0817732" X-Trace: ger.gmane.org 1462308654 24894 80.91.229.3 (3 May 2016 20:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 20:50:54 +0000 (UTC) Cc: 23425@debbugs.gnu.org To: Alan Mackenzie , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 22:50:41 2016 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 1axhHC-00039f-LF for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 22:50:38 +0200 Original-Received: from localhost ([::1]:43348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhH9-0000ke-1M for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 16:50:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhGr-0000Kl-47 for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:50:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axhGf-0008Sx-9J for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:50:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhGf-0008Qq-63 for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:50:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axhGb-0003Hm-P0 for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2016 20:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23425-submit@debbugs.gnu.org id=B23425.146230857512588 (code B ref 23425); Tue, 03 May 2016 20:50:01 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 3 May 2016 20:49:35 +0000 Original-Received: from localhost ([127.0.0.1]:35846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axhGA-0003Gy-Vl for submit@debbugs.gnu.org; Tue, 03 May 2016 16:49:35 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axhG9-0003Gk-39 for 23425@debbugs.gnu.org; Tue, 03 May 2016 16:49:33 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 436E71609A8; Tue, 3 May 2016 13:49:27 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yg157JqdKJkp; Tue, 3 May 2016 13:49:26 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6AD4F16120A; Tue, 3 May 2016 13:49:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dDoLGCv4Hj42; Tue, 3 May 2016 13:49:26 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 44DF91609A8; Tue, 3 May 2016 13:49:26 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <20160503200330.GC11330@acm.fritz.box> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:117691 Archived-At: This is a multi-part message in MIME format. --------------49A9375CA2B397BBA0817732 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 05/03/2016 01:03 PM, Alan Mackenzie wrote: > On Tue, May 03, 2016 at 07:55:45PM +0300, Eli Zaretskii wrote: >> No, I have nothing against that. > OK, I'll do that later. I gave this a shot by installing the attached; please feel free to=20 improve it. > I'm still a > little confused over whether a left ASCII quote (`) might get converted > into a right ASCII or curly quote. Grave accent (`) might be left alone or converted to apostrophe (') or=20 converted to left single quotation mark (=E2=80=98), depending on whether= =20 text-quoting-style is =E2=80=98grave=E2=80=99, =E2=80=98straight=E2=80=99= , or =E2=80=98curve=E2=80=99, respectively.=20 Grave accent is never converted to right single quotation mark (=E2=80=99= ). > I mean make this conversion optional and configurable, as in the > patch in my last post. This conversion already configurable, in the sense that one can use=20 either (setq text-quoting-style 'grave) or (setq text-quoting-style=20 'straight) to get behavior that would have worked for the use case that=20 prompted this bug report. I haven't seen a realistic use case to=20 motivate the proposed extra complexity of another configuration option he= re. > I don't think that is clearly documented anywhere. The current version of the documentation says the following. If this is=20 not clear enough, we should improve it so that it is clear. @item =E2=80=98 @itemx ` (left single quotation mark and grave accent) both stand for a left quote= . This generates a left single quotation mark, an apostrophe, or a grave accent depending on the value of @code{text-quoting-style}. @item =E2=80=99 @itemx ' (right single quotation mark and apostrophe) both stand for a right quote= . This generates a right single quotation mark or an apostrophe depending on the value of @code{text-quoting-style}. ... @defvar text-quoting-style @cindex curved quotes @cindex curly quotes The value of this variable is a symbol that specifies the style Emacs should use for single quotes in the wording of help and messages. If the variable's value is @code{curve}, the style is @t{=E2=80=98like this=E2=80=99} with curved single quotes. If the value = is @code{straight}, the style is @t{'like this'} with straight apostrophes. If the value is @code{grave}, the style is @t{`like this'} with grave accent and apostrophe, the standard style before Emacs version 25. The default value @code{nil} acts like @code{curve} if curved single quotes are displayable, and like @code{grave} otherwise. --------------49A9375CA2B397BBA0817732 Content-Type: application/x-patch; name="0001-etc-NEWS-Mention-message-s-format.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-etc-NEWS-Mention-message-s-format.patch" RnJvbSA1MmY4NmE3NTViMGJlZmI2YWQyYTI2YmRiNGVkYzQ2ZTIxNTJiNTkzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUdWUsIDMgTWF5IDIwMTYgMTM6Mz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