aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAlan Mackenzie2017-09-21 20:31:06 +0000
committerAlan Mackenzie2017-10-01 11:27:15 +0000
commitd5e4e004fa134cb81989bcf40c5d6c79b837301f (patch)
tree7588a351b8bd89612cdb457979f84b5f9f90c826 /etc
parent1ba3471b9b443f0617662f4a50439bec211162ba (diff)
downloademacs-d5e4e004fa134cb81989bcf40c5d6c79b837301f.tar.gz
emacs-d5e4e004fa134cb81989bcf40c5d6c79b837301f.zip
Make text-quoting-style customizable. Introduce t and new meaning for nil.
A value of nil for text-quoting-style now means "no translation". t means "Use curved quotes if displayable". * src/doc.c (text-quoting-style (function)): modify for new semantics. (text-quoting-style (variable)): Amend the doc string, set the default value to t. * lisp/cus-start.el: (top level): Create a customize entry for text-quoting-style in group display. * etc/NEWS: Amend the entry for text-quoting-style. * doc/emacs/display.texi (Text Display): Describe the translation of ASCII quotes to curved quotes, and how to influence or inhibit it. * doc/lispref/control.texi (Signalling Errors) * doc/lispref/display.texi (Displaying Messages) * doc/lispref/strings.texi (Formatting Strings): Describe binding text-quoting-style to nil to inhibit unwanted quote translation. * doc/lispref/help.texi (Keys in Documentation): Change text-quoting-style from a variable to a user option. Describe its changed set of values. State that it can be customized freely.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS13
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2216cfc18ee..d518d5e277e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1244,10 +1244,15 @@ change FOO, respectively. The exhaustive list of removed variables is:
1244*** Many variables obsoleted in 22.1 referring to face symbols 1244*** Many variables obsoleted in 22.1 referring to face symbols
1245 1245
1246+++ 1246+++
1247** The variable 'text-quoting-style' no longer affects the treatment 1247** The variable `text-quoting-style' is now a customizable option. It
1248of curved quotes in format arguments to functions like 'message' and 1248controls whether to and how to translate ASCII quotes in messages and
1249'format-message'. In particular, when this variable's value is 1249help output. The value nil now means "no translation", and the value
1250'grave', all quotes in formats are output as-is. 1250t, the default, means "use curved quotes if displayable" (as nil did
1251in Emacs 25). The other possible values remain unchanged.
1252`text-quoting-style' no longer affects the treatment of curved quotes
1253in format arguments to functions like `message' and `format-message'.
1254In particular, when this variable's value is `grave', all quotes in
1255formats are output as-is.
1251 1256
1252--- 1257---
1253** Functions like 'check-declare-file' and 'check-declare-directory' 1258** Functions like 'check-declare-file' and 'check-declare-directory'