From: Paul Eggert <eggert@cs.ucla.edu>
To: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: How to opt out of curly-quote spamming altogether?
Date: Mon, 24 Aug 2015 08:26:00 -0700 [thread overview]
Message-ID: <55DB3788.5060505@cs.ucla.edu> (raw)
In-Reply-To: <a4c77735-a9de-400e-88f2-243c66e24836@default>
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-etc-NEWS-Clarify-text-quoting-style-and-electric-quo.patch --]
[-- Type: text/x-diff; name="0001-etc-NEWS-Clarify-text-quoting-style-and-electric-quo.patch", Size: 1976 bytes --]
From 726bf1239d9fadf9e808394831e9a5059f8460fd Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
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: ‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″
€ № ← → ↔ − ≈ ≠ ≤ ≥. As before, you can type C-x 8 C-h to list shorthands.
-** New minor mode electric-quote-mode for quoting ‘like this’ and “like this”.
+** New minor mode electric-quote-mode for quoting ‘like this’ and “like this”
+as you type.
** New minor mode global-eldoc-mode is enabled by default.
@@ -910,8 +911,16 @@ denied" instead of "permission denied". The old behavior was problematic
in languages like German where downcasing rules depend on grammar.
+++
+** New variable ‘text-quoting-style’ to control how Emacs translates quotes.
+Set it to ‘curve’ for curved single quotes ‘like this’, to ‘straight’
+for straight apostrophes 'like this', and to ‘grave’ for grave accent
+and apostrophe `like this'. The default value nil acts like ‘curve’
+if curved single quotes are displayable, and like ‘grave’ 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’ quoting style as per the
value of ‘text-quoting-style’. Doc strings in source code can use
either curved quotes or grave accent and apostrophe. As before,
isolated apostrophes and characters preceded by \= are output as-is.
--
2.1.0
next prev parent reply other threads:[~2015-08-24 15:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 4:16 How to opt out of curly-quote spamming altogether? Drew Adams
2015-08-24 15:22 ` Eli Zaretskii
2015-08-24 15:26 ` Paul Eggert [this message]
2015-08-24 17:06 ` Drew Adams
[not found] <<a4c77735-a9de-400e-88f2-243c66e24836@default>
[not found] ` <<83fv38hfsx.fsf@gnu.org>
2015-08-24 16:34 ` Drew Adams
2015-08-24 16:45 ` Eli Zaretskii
2015-08-24 17:09 ` Paul Eggert
2015-08-24 17:29 ` Drew Adams
2015-08-24 18:44 ` Paul Eggert
[not found] ` <<c8408881-dddb-4661-9e7f-6ec42d9bf5fa@default>
[not found] ` <<837fokhby1.fsf@gnu.org>
2015-08-24 17:06 ` Drew Adams
2015-08-24 17:25 ` Eli Zaretskii
[not found] <<c1f42565-e538-49e6-b246-07e43dab673a@default>
[not found] ` <<834mjoha4r.fsf@gnu.org>
2015-08-24 17:57 ` Drew Adams
2015-08-24 18:05 ` Eli Zaretskii
2015-08-24 18:36 ` David Kastrup
2015-08-24 21:44 ` Drew Adams
2015-08-25 4:25 ` David Kastrup
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=55DB3788.5060505@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@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.