[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53260: char-syntax differs in interpreter and bytecode
From: |
Stefan Monnier |
Subject: |
bug#53260: char-syntax differs in interpreter and bytecode |
Date: |
Sat, 15 Jan 2022 17:51:26 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> 1. Remove SETUP_BUFFER_SYNTAX_TABLE() from Fchar_syntax because as far as
> I can tell it has no effect at all.
Sounds good.
> 2. Remove make_char_multibyte(c) from Bchar_syntax because it seems to be
> the wrong thing to do: in a unibyte buffer, wouldn't the syntax table be
> indexed by byte value (so that char 255 in the buffer corresponds to entry
> 255 in the syntax table rather than entry 0x3fffff)?
Doesn't sound right: char tables are indexed by chars (i.e. Unicode code
points) not by bytes, so we need to convert the byte into a char
before indexing.
> 3. Now both implementations are identical. Replace the one in the byte-code
> interpreter with a call to Fchar_syntax.
Sounds good.
Stefan
- bug#53260: char-syntax differs in interpreter and bytecode, Mattias Engdegård, 2022/01/14
- bug#53260: char-syntax differs in interpreter and bytecode, Lars Ingebrigtsen, 2022/01/15
- bug#53260: char-syntax differs in interpreter and bytecode, Stefan Monnier, 2022/01/15
- bug#53260: char-syntax differs in interpreter and bytecode, Mattias Engdegård, 2022/01/15
- bug#53260: char-syntax differs in interpreter and bytecode, Eli Zaretskii, 2022/01/15
- bug#53260: char-syntax differs in interpreter and bytecode,
Stefan Monnier <=
- bug#53260: char-syntax differs in interpreter and bytecode [PATCH], Mattias Engdegård, 2022/01/16
- bug#53260: char-syntax differs in interpreter and bytecode [PATCH], Lars Ingebrigtsen, 2022/01/20
- bug#53260: char-syntax differs in interpreter and bytecode [PATCH], Mattias Engdegård, 2022/01/20