diff options
| author | Noam Postavsky | 2018-03-10 18:20:45 -0500 |
|---|---|---|
| committer | Noam Postavsky | 2019-11-28 18:03:42 -0500 |
| commit | 85f586f3ce5c6d9598d345440fd57e0fc9b8d98b (patch) | |
| tree | 10723ac9f3d20dc4a4bb045b1e58c02234a9c9e5 /etc | |
| parent | 98f8c5fb07dcb4e20b8ba6648bdabf5c0d3b5145 (diff) | |
| download | emacs-85f586f3ce5c6d9598d345440fd57e0fc9b8d98b.tar.gz emacs-85f586f3ce5c6d9598d345440fd57e0fc9b8d98b.zip | |
Stop signaling an error when reading "smart quotes" in symbols
Revert commits from 2018-01-28 "Fix round tripping of read->print for
symbols with strange quotes", and 2017-07-22 "Signal error for symbol
names with strange quotes (Bug#2967)".
* etc/NEWS: Remove corresponding entries.
* src/character.c (confusable_symbol_character_p):
* test/src/lread-tests.el (lread-tests--old-style-backquotes): Remove.
* src/lread.c (read1): Don't signal error on confusable character.
* src/print.c (print_object): Don't escape confusable characters.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 0 insertions, 9 deletions
| @@ -2972,15 +2972,6 @@ and if the new behavior breaks your code please email | |||
| 2972 | <32252@debbugs.gnu.org>. Because '%o' and '%x' can now format signed | 2972 | <32252@debbugs.gnu.org>. Because '%o' and '%x' can now format signed |
| 2973 | integers, they now support the '+' and space flags. | 2973 | integers, they now support the '+' and space flags. |
| 2974 | 2974 | ||
| 2975 | ** To avoid confusion caused by "smart quotes", the reader signals an | ||
| 2976 | error when reading Lisp symbols which begin with one of the following | ||
| 2977 | quotation characters: ‘’‛“”‟〞"'. A symbol beginning with such a | ||
| 2978 | character can be written by escaping the quotation character with a | ||
| 2979 | backslash. For example: | ||
| 2980 | |||
| 2981 | (read "‘smart") => (invalid-read-syntax "strange quote" "‘") | ||
| 2982 | (read "\\‘smart") == (intern "‘smart") | ||
| 2983 | |||
| 2984 | +++ | 2975 | +++ |
| 2985 | ** Omitting variables after '&optional' and '&rest' is now allowed. | 2976 | ** Omitting variables after '&optional' and '&rest' is now allowed. |
| 2986 | For example '(defun foo (&optional))' is no longer an error. This is | 2977 | For example '(defun foo (&optional))' is no longer an error. This is |