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 /etc | |
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 'etc')
-rw-r--r-- | etc/NEWS | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -889,14 +889,14 @@ in languages like German where downcasing rules depend on grammar. +++ ** substitute-command-keys now replaces quotes. That is, it converts documentation strings' quoting style as per the -value of the new custom variable ‘help-quote-translation’: ?‘ means -use curved quotes (also known as curly quotes) ‘like this’, ?' means -use apostrophes 'like this', ?` means use grave accent and apostrophe -`like this', and nil (default) means use curved quotes if displayable -and grave accent and apostrophe otherwise. Doc strings in source code -can use either curved quotes or grave accent and apostrophe. As -before, isolated apostrophes and characters preceded by \= are output -as-is. +value of the new custom variable ‘text-quoting-style’: ‘curve’ means +use curved quotes (also known as curly quotes) ‘like this’, ‘straight’ +means use straight apostrophes 'like this', ‘grave’ means use grave +accent and apostrophe `like this', and nil (default) means use curved +quotes if displayable and grave accent and apostrophe otherwise. Doc +strings in source code can use either curved quotes or grave accent +and apostrophe. As before, isolated apostrophes and characters +preceded by \= are output as-is. +++ ** The character classes [:alpha:] and [:alnum:] in regular expressions @@ -1017,8 +1017,8 @@ In the new Electric Quote mode, you can enter curved single quotes into documentation by typing ` and '. Outside Electric Quote mode, you can enter them by typing ‘C-x 8 [’ and ‘C-x 8 ]’, or (if your Alt key works) by typing ‘A-[’ and ‘A-]’. As described above under -‘help-quote-translation’, the user can specify how to display doc -string quotes. +‘text-quoting-style’, the user can specify how to display doc string +quotes. +++ ** show-help-function's arg is converted via substitute-command-keys |