diff options
| author | Alan Mackenzie | 2017-09-21 20:31:06 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-10-01 11:27:15 +0000 |
| commit | d5e4e004fa134cb81989bcf40c5d6c79b837301f (patch) | |
| tree | 7588a351b8bd89612cdb457979f84b5f9f90c826 /doc/lispref/control.texi | |
| parent | 1ba3471b9b443f0617662f4a50439bec211162ba (diff) | |
| download | emacs-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/control.texi')
| -rw-r--r-- | doc/lispref/control.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 401a999cf23..09435f57966 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi | |||
| @@ -1108,6 +1108,9 @@ generates a message like @t{"Missing ‘foo’"} with matching curved | |||
| 1108 | quotes. In contrast, a call using a format like @t{"Missing '%s'"} | 1108 | quotes. In contrast, a call using a format like @t{"Missing '%s'"} |
| 1109 | with only apostrophes typically generates a message like @t{"Missing | 1109 | with only apostrophes typically generates a message like @t{"Missing |
| 1110 | ’foo’"} with only closing curved quotes, an unusual style in English. | 1110 | ’foo’"} with only closing curved quotes, an unusual style in English. |
| 1111 | One way around this problem is to bind @code{text-quoting-style} to | ||
| 1112 | @code{nil} around the call to @code{error}; this causes the | ||
| 1113 | @acronym{ASCII} quote characters to be output unchanged. | ||
| 1111 | 1114 | ||
| 1112 | @strong{Warning:} If you want to use your own string as an error message | 1115 | @strong{Warning:} If you want to use your own string as an error message |
| 1113 | verbatim, don't just write @code{(error @var{string})}. If @var{string} | 1116 | verbatim, don't just write @code{(error @var{string})}. If @var{string} |