GNU bug report logs -
#26327
25.1; electric-pair-syntax-info unaware of syntax-table property
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Sat, 1 Apr 2017 07:43:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 26327 <at> debbugs.gnu.org (full text, mbox):
On 2020-11-30 12:19 +0100, Lars Ingebrigtsen wrote:
>> electric-pair-syntax-info calls (syntax-table) which is unaware of the
>> syntax-table text property.
>>
>> electric-pair-syntax-info looks inconsistent. Part of it is based on
>> point (e.g. syntax-ppss) and part of it not.
>
> (This bug report unfortunately got no response at the time.)
>
> Do you have a recipe to reproduce whatever bug you're seeing?
I can't remember what I had in mind at that time.
But I imagine if ` and ' have word syntax but `` and '' are
syntax-propertized to behave like matching parentheses, then function
syntax-table is not the correct way to access syntax info.
The issue is not specific to elec-pair. Any program that needs to get
the syntax of the char at point needs to check the syntax-table property
first and then check (syntax-table).
Thanks for picking up this bug.
Leo
This bug report was last modified 4 years and 181 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.