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#21588: 25.0.50: Single quotes becoming curvy quotes in message function Date: Wed, 30 Sep 2015 15:40:53 -0700 Organization: UCLA Computer Science Department Message-ID: <560C64F5.3060007@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443698433 14231 80.91.229.3 (1 Oct 2015 11:20:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 11:20:33 +0000 (UTC) Cc: Alan Mackenzie , Stefan Monnier To: Kaushal Modi , Glenn Morris , 21588-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 13:20:19 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 1ZhbuM-0003Jy-UZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 13:20:19 +0200 Original-Received: from localhost ([::1]:48348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhbuM-0000L8-AW for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 07:20:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhQ3b-0007uD-SW for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 18:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhQ3a-00051S-R0 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 18:41:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhQ3a-00051L-MB for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 18:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZhQ3Z-0000xq-Jd for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 18:41: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: Wed, 30 Sep 2015 22:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21588 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21588-done@debbugs.gnu.org id=D21588.14436528593691 (code D ref 21588); Wed, 30 Sep 2015 22:41:01 +0000 Original-Received: (at 21588-done) by debbugs.gnu.org; 30 Sep 2015 22:40:59 +0000 Original-Received: from localhost ([127.0.0.1]:49654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhQ3W-0000xS-MX for submit@debbugs.gnu.org; Wed, 30 Sep 2015 18:40:59 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57174) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhQ3U-0000xK-62 for 21588-done@debbugs.gnu.org; Wed, 30 Sep 2015 18:40:57 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 17DBA160EA8; Wed, 30 Sep 2015 15:40:55 -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 cqYjl3Tq7efu; Wed, 30 Sep 2015 15:40:54 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 57A50160EAF; Wed, 30 Sep 2015 15:40:54 -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 KFE22JdH5y36; Wed, 30 Sep 2015 15:40:54 -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 3A4F4160EA8; Wed, 30 Sep 2015 15:40:54 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: 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:107120 Archived-At: Kaushal Modi wrote: > It doesn't feel right that (message "'Hey'") gets displayed as =E2=80=99= Hey=E2=80=99. This shouldn't happen if your ~/.emacs has (setq text-quoting-style=20 'grave) or (setq text-quoting-style 'straight), so I assume the issue=20 came up because your text-quoting-style is =E2=80=98curve=E2=80=99 or def= aults to =E2=80=98curve=E2=80=99. The initial version of the =E2=80=98curve=E2=80=99 code behaved as you su= ggested, and=20 left isolated apostrophes alone. But as Dmitry pointed out, apostrophe=20 in English is represented by right single quotation mark as standard=20 typographic practice in fonts with directed quotes. In traditional=20 Emacs usage most isolated apostrophes in docstrings and diagnostics are=20 English apostrophes, so it seemed appropriate to default to=20 transliterating them as in English, of course with an escape hatch for=20 the exceptions intended to be straight apostrophes. So I changed the=20 code to translate all non-escaped apostrophes. This simplified the=20 transformation rules, which was also a win. Although there were a few diagnostics in Elisp that quoted English=20 phrases 'like this', as I recall RMS said that directed quotes were=20 preferred, so I fixed the instances I found to quote `like this' in=20 message format strings. Undoubtedly I missed some instances and so some=20 minor display glitches remain, but they can be fixed as they turn up. To get typewriter-style straight quoting in your own code, independent=20 of text-quoting-style, you can write (message "%s" "'Hey'").