diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-02 15:58:02 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-02 15:58:31 -0700 |
commit | fa10e77790a207aeabf354c9f5667b3dbde55bb2 (patch) | |
tree | 9ab7b0e8bbd340d76f34583aeaa7721c7f59008f /doc | |
parent | fc9206b73a254a400245578b94542cfe82c68e9c (diff) | |
download | emacs-fa10e77790a207aeabf354c9f5667b3dbde55bb2.tar.gz |
Redo text-quoting-style variable
Rename help-quote-translation to text-quoting-style,
and use symbols rather than characters as values.
This follows suggestions along these lines by Alan Mackenzie in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00343.html
and by Drew Adams in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00048.html
* doc/lispref/help.texi (Keys in Documentation)
* etc/NEWS:
* lisp/cus-start.el (standard):
* src/doc.c (Fsubstitute_command_keys, syms_of_doc):
Document and/or implement the new behavior instead of the old.
(syms_of_doc): New symbols 'grave' and 'straight'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/help.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 779a0d581e2..ca8ae3f314a 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi @@ -347,18 +347,18 @@ and @samp{\=\=} puts @samp{\=} into the output. @strong{Please note:} Each @samp{\} must be doubled when written in a string in Emacs Lisp. -@defvar help-quote-translation +@defvar text-quoting-style @cindex curved quotes @cindex curly quotes The value of this variable specifies the style @code{substitute-command-keys} uses when generating left and right -quotes. If the variable's value is @code{?‘} (U+2018 LEFT SINGLE -QUOTATION MARK), the style is @t{‘like this’} with curved single -quotes. If the value is @code{?'} (apostrophe), the style is @t{'like -this'} with apostrophes. If the value is @code{?`} (grave accent), -the style is @t{`like this'} with grave accent and apostrophe. The -default value @code{nil} means to use curved single quotes if -displayable, and grave accent and apostrophe otherwise. +quotes. If the variable's value is @code{curve}, the style is +@t{‘like this’} with curved single quotes. If the value is +@code{straight}, the style is @t{'like this'} with straight +apostrophes. If the value is @code{grave}, the style is @t{`like +this'} with grave accent and apostrophe. The default value @code{nil} +acts like @code{curve} if curved single quotes are displayable, and +like @code{grave} otherwise. @end defvar @defun substitute-command-keys string |