From: Leo Liu <sdl.web@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 26327@debbugs.gnu.org
Subject: bug#26327: 25.1; electric-pair-syntax-info unaware of syntax-table property
Date: Mon, 30 Nov 2020 19:58:48 +0800 [thread overview]
Message-ID: <m1pn3v6op3.fsf@gmail.com> (raw)
In-Reply-To: <87k0u3ay7m.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 30 Nov 2020 12:19:41 +0100")
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
next prev parent reply other threads:[~2020-11-30 11:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-12-02 10:00 ` Lars Ingebrigtsen
2021-01-12 20:30 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1pn3v6op3.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=26327@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).