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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -923,7 +923,7 @@ Quotes in info files are not translated. | |||
| 923 | That is, it converts documentation strings’ quoting style as per the | 923 | That is, it converts documentation strings’ quoting style as per the |
| 924 | value of ‘text-quoting-style’. Doc strings in source code can use | 924 | value of ‘text-quoting-style’. Doc strings in source code can use |
| 925 | either curved quotes or grave accent and apostrophe. As before, | 925 | either curved quotes or grave accent and apostrophe. As before, |
| 926 | isolated apostrophes and characters preceded by \= are output as-is. | 926 | characters preceded by \= are output as-is. |
| 927 | 927 | ||
| 928 | +++ | 928 | +++ |
| 929 | ** Message-issuing functions ‘error’, ‘message’, etc. now convert quotes. | 929 | ** Message-issuing functions ‘error’, ‘message’, etc. now convert quotes. |