unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / Atom feed
* bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
@ 2017-04-01  7:42 Leo Liu
  2020-11-30 11:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Liu @ 2017-04-01  7:42 UTC (permalink / raw)
  To: 26327


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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
  2017-04-01  7:42 bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property Leo Liu
@ 2020-11-30 11:19 ` Lars Ingebrigtsen
  2020-11-30 11:58   ` Leo Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-30 11:19 UTC (permalink / raw)
  To: Leo Liu; +Cc: 26327

Leo Liu <sdl.web@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
  2020-11-30 11:19 ` Lars Ingebrigtsen
@ 2020-11-30 11:58   ` Leo Liu
  2020-12-02 10:00     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Liu @ 2020-11-30 11:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 26327

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
  2020-11-30 11:58   ` Leo Liu
@ 2020-12-02 10:00     ` Lars Ingebrigtsen
  2021-01-12 20:30       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-02 10:00 UTC (permalink / raw)
  To: Leo Liu; +Cc: 26327

Leo Liu <sdl.web@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
  2020-12-02 10:00     ` Lars Ingebrigtsen
@ 2021-01-12 20:30       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-12 20:30 UTC (permalink / raw)
  To: Leo Liu; +Cc: 26327

Lars Ingebrigtsen <larsi@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-12 20:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-01  7:42 bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property Leo Liu
2020-11-30 11:19 ` Lars Ingebrigtsen
2020-11-30 11:58   ` Leo Liu
2020-12-02 10:00     ` Lars Ingebrigtsen
2021-01-12 20:30       ` Lars Ingebrigtsen

unofficial mirror of bug-gnu-emacs@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/emacs-bugs/0 emacs-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 emacs-bugs emacs-bugs/ https://yhetil.org/emacs-bugs \
		bug-gnu-emacs@gnu.org
	public-inbox-index emacs-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.bugs
	nntp://news.gmane.io/gmane.emacs.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git