From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: How to opt out of curly-quote spamming altogether? Date: Mon, 24 Aug 2015 08:26:00 -0700 Organization: UCLA Computer Science Department Message-ID: <55DB3788.5060505@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090209050808010509070202" X-Trace: ger.gmane.org 1440433371 18334 80.91.229.3 (24 Aug 2015 16:22:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Aug 2015 16:22:51 +0000 (UTC) To: Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 24 18:22:44 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZTuWA-0003Wd-RE for ged-emacs-devel@m.gmane.org; Mon, 24 Aug 2015 18:22:42 +0200 Original-Received: from localhost ([::1]:54991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTuWA-0007w5-67 for ged-emacs-devel@m.gmane.org; Mon, 24 Aug 2015 12:22:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTtdR-00055r-7b for emacs-devel@gnu.org; Mon, 24 Aug 2015 11:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTtdL-0001NS-Df for emacs-devel@gnu.org; Mon, 24 Aug 2015 11:26:08 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTtdL-0001NJ-5M for emacs-devel@gnu.org; Mon, 24 Aug 2015 11:26:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A2333160ED6; Mon, 24 Aug 2015 08:26:01 -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 SXemm_HppeDu; Mon, 24 Aug 2015 08:26:00 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CA864160ED7; Mon, 24 Aug 2015 08:26:00 -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 4_PFzKi079AT; Mon, 24 Aug 2015 08:26:00 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id ABFC2160ED6; Mon, 24 Aug 2015 08:26:00 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189107 Archived-At: This is a multi-part message in MIME format. --------------090209050808010509070202 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Drew Adams wrote: > Presumably the final wording will make clear that, per the doc > string, this mode is only about "replacing [classic quoting] > with [curly-quoting] _as you type_". Thanks, done in master with the attached patch. > (This should not be only under a `substitute-command-keys' entry.) Also done with the attached patch. > that option has no effect on the quotation style used in the manuals. Correct. Display of info files is unaffected by the changes in Emacs master over the past month or two. Info files use curved quotes as of Emacs 24.5, due to a 2013 change in Texinfo, not in Emacs. --------------090209050808010509070202 Content-Type: text/x-diff; name="0001-etc-NEWS-Clarify-text-quoting-style-and-electric-quo.patch" Content-Disposition: attachment; filename*0="0001-etc-NEWS-Clarify-text-quoting-style-and-electric-quo.pa"; filename*1="tch" Content-Transfer-Encoding: quoted-printable >From 726bf1239d9fadf9e808394831e9a5059f8460fd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 24 Aug 2015 08:19:41 -0700 Subject: [PATCH] * etc/NEWS: Clarify text-quoting-style and electric-quote-mode. --- etc/NEWS | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 90a13b7..fd2ed4d 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -271,7 +271,8 @@ successive char insertions. ** C-x 8 now has shorthands for these chars: =E2=80=90 =E2=80=91 =E2=80=92= =E2=80=93 =E2=80=94 =E2=80=95 =E2=80=98 =E2=80=99 =E2=80=9C =E2=80=9D =E2= =80=A0 =E2=80=A1 =E2=80=A2 =E2=80=B2 =E2=80=B3 =E2=82=AC =E2=84=96 =E2=86=90 =E2=86=92 =E2=86=94 =E2=88=92 =E2=89=88 =E2= =89=A0 =E2=89=A4 =E2=89=A5. As before, you can type C-x 8 C-h to list sh= orthands. =20 -** New minor mode electric-quote-mode for quoting =E2=80=98like this=E2=80= =99 and =E2=80=9Clike this=E2=80=9D. +** New minor mode electric-quote-mode for quoting =E2=80=98like this=E2=80= =99 and =E2=80=9Clike this=E2=80=9D +as you type. =20 ** New minor mode global-eldoc-mode is enabled by default. =20 @@ -910,8 +911,16 @@ denied" instead of "permission denied". The old beh= avior was problematic in languages like German where downcasing rules depend on grammar. =20 +++ +** New variable =E2=80=98text-quoting-style=E2=80=99 to control how Emac= s translates quotes. +Set it to =E2=80=98curve=E2=80=99 for curved single quotes =E2=80=98like= this=E2=80=99, to =E2=80=98straight=E2=80=99 +for straight apostrophes 'like this', and to =E2=80=98grave=E2=80=99 for= grave accent +and apostrophe `like this'. The default value nil acts like =E2=80=98cu= rve=E2=80=99 +if curved single quotes are displayable, and like =E2=80=98grave=E2=80=99= otherwise. +Quotes in info files are not translated. + ++++ ** substitute-command-keys now replaces quotes. -That is, it converts documentation strings' quoting style as per the +That is, it converts documentation strings=E2=80=99 quoting style as per= the value of =E2=80=98text-quoting-style=E2=80=99. Doc strings in source co= de can use either curved quotes or grave accent and apostrophe. As before, isolated apostrophes and characters preceded by \=3D are output as-is. --=20 2.1.0 --------------090209050808010509070202--