diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-24 23:37:18 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-24 23:57:21 -0700 |
commit | 68280c5ee9b87d874ffa7c111b3cac7e634cee22 (patch) | |
tree | 955f3f692c7254074cac682c4e7e64b6f1361a35 /doc/lispref/help.texi | |
parent | 0db4992d2778a2da4dee8ca07cde8c5e206f5250 (diff) | |
download | emacs-68280c5ee9b87d874ffa7c111b3cac7e634cee22.tar.gz emacs-68280c5ee9b87d874ffa7c111b3cac7e634cee22.tar.bz2 emacs-68280c5ee9b87d874ffa7c111b3cac7e634cee22.zip |
Treat ' like ’ even when not matching `
This is simpler and easier to explain, and should encourage better
typography. Do this in Electric Quote mode and when translating
quotes in docstrings. Inspired by a suggestion by Dmitry Gutov in:
https://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00806.html
* doc/emacs/text.texi (Quotation Marks):
* doc/lispref/help.texi (Keys in Documentation):
* etc/NEWS:
Document this.
* lisp/electric.el (electric-quote-post-self-insert-function):
* src/doc.c (Fsubstitute_command_keys):
Always treat ' like ’ even when not matched by an open quote.
Diffstat (limited to 'doc/lispref/help.texi')
-rw-r--r-- | doc/lispref/help.texi | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index ab884f8dc80..44c09a2085a 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi @@ -318,25 +318,13 @@ stands for no text itself. It is used only for a side effect: it specifies @var{mapvar}'s value as the keymap for any following @samp{\[@var{command}]} sequences in this documentation string. -@item ` -(grave accent) stands for a left quote, and alters the interpretation -of the next unmatched apostrophe. - -@item ' -(apostrophe) stands for a right quote if preceded by grave accent and -there are no intervening apostrophes. Otherwise, apostrophe stands -for itself. - @item ‘ -(left single quotation mark) stands for a left quote. +@itemx ` +(left single quotation mark and grave accent) both stand for a left quote. @item ’ -(right single quotation mark) stands for a right quote. - -@item ' -(apostrophe) stands for a right quote if -preceded by grave accent and there are no intervening apostrophes. -Otherwise, apostrophe stands for itself. +@itemx ' +(right single quotation mark and apostrophe) both stand for a right quote. @item \= quotes the following character and is discarded; thus, @samp{\=`} puts |