aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorNoam Postavsky2018-01-28 10:23:18 -0500
committerNoam Postavsky2018-01-28 10:49:51 -0500
commit0510a78da5faaa40ebfdf59d0ac6107a72c1be1d (patch)
tree1fd0abd958f1f31e200b5f2aac8fe97ceb88a2a2 /src/lread.c
parent6415b2d40c13be2c5cd5f797718c391d1c4ce9e6 (diff)
downloademacs-0510a78da5faaa40ebfdf59d0ac6107a72c1be1d.tar.gz
emacs-0510a78da5faaa40ebfdf59d0ac6107a72c1be1d.zip
Revert "Signal error for symbol names with strange quotes (Bug#2967)"
That commit did not make the corresponding change to printing, thus breaking the (eq (read (prin1-to-string SYM)) SYM) invariant for those symbols. It's too late in the release cycle to change printing behavior, therefore revert the reader change. Don't merge to master, the print function will be updated there (see "Fix round tripping of read->print for symbols with strange quotes").
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lread.c b/src/lread.c
index 45d60647bee..3104c441ecf 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3479,24 +3479,6 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list)
3479 if (! NILP (result)) 3479 if (! NILP (result))
3480 return unbind_to (count, result); 3480 return unbind_to (count, result);
3481 } 3481 }
3482 if (!quoted && multibyte)
3483 {
3484 int ch = STRING_CHAR ((unsigned char *) read_buffer);
3485 switch (ch)
3486 {
3487 case 0x2018: /* LEFT SINGLE QUOTATION MARK */
3488 case 0x2019: /* RIGHT SINGLE QUOTATION MARK */
3489 case 0x201B: /* SINGLE HIGH-REVERSED-9 QUOTATION MARK */
3490 case 0x201C: /* LEFT DOUBLE QUOTATION MARK */
3491 case 0x201D: /* RIGHT DOUBLE QUOTATION MARK */
3492 case 0x201F: /* DOUBLE HIGH-REVERSED-9 QUOTATION MARK */
3493 case 0x301E: /* DOUBLE PRIME QUOTATION MARK */
3494 case 0xFF02: /* FULLWIDTH QUOTATION MARK */
3495 case 0xFF07: /* FULLWIDTH APOSTROPHE */
3496 xsignal2 (Qinvalid_read_syntax, build_string ("strange quote"),
3497 CALLN (Fstring, make_number (ch)));
3498 }
3499 }
3500 { 3482 {
3501 Lisp_Object result; 3483 Lisp_Object result;
3502 ptrdiff_t nbytes = p - read_buffer; 3484 ptrdiff_t nbytes = p - read_buffer;