aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
authorAlan Mackenzie2017-09-21 20:31:06 +0000
committerAlan Mackenzie2017-10-01 11:27:15 +0000
commitd5e4e004fa134cb81989bcf40c5d6c79b837301f (patch)
tree7588a351b8bd89612cdb457979f84b5f9f90c826 /doc/lispref/strings.texi
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 'doc/lispref/strings.texi')
-rw-r--r--doc/lispref/strings.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 219225d412b..117a373a190 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -835,8 +835,11 @@ A format that quotes with grave accents and apostrophes @t{`like
835this'} typically generates curved quotes @t{‘like this’}. In 835this'} typically generates curved quotes @t{‘like this’}. In
836contrast, a format that quotes with only apostrophes @t{'like this'} 836contrast, a format that quotes with only apostrophes @t{'like this'}
837typically generates two closing curved quotes @t{’like this’}, an 837typically generates two closing curved quotes @t{’like this’}, an
838unusual style in English. @xref{Keys in Documentation}, for how the 838unusual style in English. One way around such problems is to bind
839@code{text-quoting-style} variable affects generated quotes. 839@code{text-quoting-style} to @code{nil} around calls to
840@code{format-message}; this causes the @acronym{ASCII} quoting
841characters to be output unchanged. @xref{Keys in Documentation}, for
842how the @code{text-quoting-style} variable affects generated quotes.
840@end defun 843@end defun
841 844
842@cindex @samp{%} in format 845@cindex @samp{%} in format