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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/cus-start.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index fd015b70ca3..f5e1431f6bb 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -223,6 +223,15 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 223 | (visible-bell display boolean) | 223 | (visible-bell display boolean) |
| 224 | (no-redraw-on-reenter display boolean) | 224 | (no-redraw-on-reenter display boolean) |
| 225 | 225 | ||
| 226 | ;; doc.c | ||
| 227 | (text-quoting-style display | ||
| 228 | (choice | ||
| 229 | (const :tag "No translation" nil) | ||
| 230 | (const :tag "Prefer \\=‘curved\\=’ quotes, if possible" t) | ||
| 231 | (const :tag "\\=‘Curved\\=’ quotes" curved) | ||
| 232 | (const :tag "\\='Straight\\=' quotes" straight) | ||
| 233 | (const :tag "\\=`Grave\\=' quotes" grave))) | ||
| 234 | |||
| 226 | ;; dosfns.c | 235 | ;; dosfns.c |
| 227 | (dos-display-scancodes display boolean) | 236 | (dos-display-scancodes display boolean) |
| 228 | (dos-hyper-key keyboard integer) | 237 | (dos-hyper-key keyboard integer) |