diff options
| author | Paul Eggert | 2015-08-24 23:37:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-24 23:57:21 -0700 |
| commit | 68280c5ee9b87d874ffa7c111b3cac7e634cee22 (patch) | |
| tree | 955f3f692c7254074cac682c4e7e64b6f1361a35 /doc/lispref | |
| parent | 0db4992d2778a2da4dee8ca07cde8c5e206f5250 (diff) | |
| download | emacs-68280c5ee9b87d874ffa7c111b3cac7e634cee22.tar.gz 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')
| -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 | |||
| 318 | specifies @var{mapvar}'s value as the keymap for any following | 318 | specifies @var{mapvar}'s value as the keymap for any following |
| 319 | @samp{\[@var{command}]} sequences in this documentation string. | 319 | @samp{\[@var{command}]} sequences in this documentation string. |
| 320 | 320 | ||
| 321 | @item ` | ||
| 322 | (grave accent) stands for a left quote, and alters the interpretation | ||
| 323 | of the next unmatched apostrophe. | ||
| 324 | |||
| 325 | @item ' | ||
| 326 | (apostrophe) stands for a right quote if preceded by grave accent and | ||
| 327 | there are no intervening apostrophes. Otherwise, apostrophe stands | ||
| 328 | for itself. | ||
| 329 | |||
| 330 | @item ‘ | 321 | @item ‘ |
| 331 | (left single quotation mark) stands for a left quote. | 322 | @itemx ` |
| 323 | (left single quotation mark and grave accent) both stand for a left quote. | ||
| 332 | 324 | ||
| 333 | @item ’ | 325 | @item ’ |
| 334 | (right single quotation mark) stands for a right quote. | 326 | @itemx ' |
| 335 | 327 | (right single quotation mark and apostrophe) both stand for a right quote. | |
| 336 | @item ' | ||
| 337 | (apostrophe) stands for a right quote if | ||
| 338 | preceded by grave accent and there are no intervening apostrophes. | ||
| 339 | Otherwise, apostrophe stands for itself. | ||
| 340 | 328 | ||
| 341 | @item \= | 329 | @item \= |
| 342 | quotes the following character and is discarded; thus, @samp{\=`} puts | 330 | quotes the following character and is discarded; thus, @samp{\=`} puts |