]> git.eshelyaron.com Git - emacs.git/commit
`read': give fuller error message for errors following "#".
authorAlan Mackenzie <acm@muc.de>
Mon, 6 May 2024 20:14:57 +0000 (20:14 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 May 2024 16:48:27 +0000 (18:48 +0200)
commit248029a8c786fe11397794010c25f8448746f58d
treeb22bba9bc0e63d95b058c29df5c7fd3c3630870b
parent6c3c784f8fe06379c1070c77f8d1039a1a244f76
`read': give fuller error message for errors following "#".

This solves bug#70702.

* src/lread.c (READ_AND_BUFFER, INVALID_SYNTAX_WITH_BUFFER):
New macros.
(read0): For errors in characters sequences beginning with "#",
output the entire character sequence rather than just "#".

* test/src/lread-tests.el (lread-test-bug70702): New test.

(cherry picked from commit 67e1b9d0553238ec6a5af68b41f43ba157f529e1)
src/lread.c
test/src/lread-tests.el