]> git.eshelyaron.com Git - emacs.git/commit
Make ?\LF generate 10, not -1 (bug#55738)
authorMattias Engdegård <mattiase@acm.org>
Thu, 2 Jun 2022 09:46:18 +0000 (11:46 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 2 Jun 2022 14:57:02 +0000 (16:57 +0200)
commit52e527a02f40686f355d18ab2ba2d1d7c9fa0fbc
tree9ab242f73ebfc7c55bc93ea89dc986bc248548e6
parent4bacd2a64575ccd55fd9ef8b4648f440243d597a
Make ?\LF generate 10, not -1 (bug#55738)

The old -1 value was an artefact of the reader implementation.

* src/lread.c (read_escape): Remove the `stringp` argument; assume
character literal syntax.  Never return -1.
(read_string_literal): Handle string-specific escape semantics here
and simplify.
* test/src/lread-tests.el (lread-escaped-lf): New test.
src/lread.c
test/src/lread-tests.el