[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55738: character escape bugs in the reader
From: |
Lars Ingebrigtsen |
Subject: |
bug#55738: character escape bugs in the reader |
Date: |
Wed, 01 Jun 2022 15:42:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Mattias Engdegård <mattiase@acm.org> writes:
> Make the character literal ?\LF (linefeed) generate 10, not -1.
>
> Ensure that Control escape sequences in character literals are
> idempotent: ?\C-\C-a and ?\^\^a mean the same thing as ?\C-a and ?\^a,
> generating the control character with value 1. "\C-\C-a" no longer
> signals an error.
I think both changes make sense.
> * src/lread.c (read_escape): Make nonrecursive and only combine
> the base char with modifiers at the end, creating control chars
> if applicable. Remove the `stringp` argument; assume character
> literal syntax. Never return -1.
> (read_string_literal): Handle string-specific escape semantics here
> and simplify.
And also sounds good.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/01
- bug#55738: character escape bugs in the reader,
Lars Ingebrigtsen <=
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/01
- bug#55738: character escape bugs in the reader, Basil L. Contovounesios, 2022/06/01
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/01
- bug#55738: character escape bugs in the reader, Basil L. Contovounesios, 2022/06/01
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/02
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/03
- bug#55738: character escape bugs in the reader, Stefan Kangas, 2022/06/18
- bug#55738: character escape bugs in the reader, Mattias Engdegård, 2022/06/18