GNU bug report logs - #26327
25.1; electric-pair-syntax-info unaware of syntax-table property

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26327 in the body.
You can then email your comments to 26327 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26327; Package emacs. (Sat, 01 Apr 2017 07:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Liu <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 01 Apr 2017 07:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; electric-pair-syntax-info unaware of syntax-table property
Date: Sat, 01 Apr 2017 15:42:18 +0800
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26327; Package emacs. (Mon, 30 Nov 2020 11:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 26327 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 26327 <at> debbugs.gnu.org
Subject: Re: bug#26327: 25.1; electric-pair-syntax-info unaware of
 syntax-table property
Date: Mon, 30 Nov 2020 12:19:41 +0100
Leo Liu <sdl.web <at> gmail.com> writes:

> 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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 30 Nov 2020 11:20:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26327; Package emacs. (Mon, 30 Nov 2020 11:59:02 GMT) Full text and rfc822 format available.

Message #13 received at 26327 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 26327 <at> debbugs.gnu.org
Subject: Re: bug#26327: 25.1;
 electric-pair-syntax-info unaware of syntax-table property
Date: Mon, 30 Nov 2020 19:58:48 +0800
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26327; Package emacs. (Wed, 02 Dec 2020 10:01:01 GMT) Full text and rfc822 format available.

Message #16 received at 26327 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 26327 <at> debbugs.gnu.org
Subject: Re: bug#26327: 25.1; electric-pair-syntax-info unaware of
 syntax-table property
Date: Wed, 02 Dec 2020 11:00:16 +0100
Leo Liu <sdl.web <at> gmail.com> writes:

> 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).

It's a bit abstract -- unless we have a concrete case to look at, it's
unlikely that there'll be any progress on this issue.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26327; Package emacs. (Tue, 12 Jan 2021 20:31:02 GMT) Full text and rfc822 format available.

Message #19 received at 26327 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 26327 <at> debbugs.gnu.org
Subject: Re: bug#26327: 25.1; electric-pair-syntax-info unaware of
 syntax-table property
Date: Tue, 12 Jan 2021 21:30:49 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> 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).
>
> It's a bit abstract -- unless we have a concrete case to look at, it's
> unlikely that there'll be any progress on this issue.

So I'm closing this bug report.  If further progress can be made, please
respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 26327 <at> debbugs.gnu.org and Leo Liu <sdl.web <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 12 Jan 2021 20:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 10 Feb 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.