From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: backward-sexp throws scan-error "Unbalanced parentheses", but forward-sexp works
Date: Wed, 12 Jan 2022 16:06:56 -0500 [thread overview]
Message-ID: <jwvh7a8wtqw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: oRowLR3O3F7oHu5xm3nprCf7ddGhZmAfeHUjgsfwgo1OmaQDtoc8SIF_910x9rNK2QyHwG0fUVHKUZwups_PQJUj0bc0NE2w5DgZsdIfX2k=@protonmail.com
ndame via Users list for the GNU Emacs text editor [2022-01-12 17:33:12] wrote:
>> I suspect scrolling through the file fixes it, so it might be connected to fontification?
> Looks like it is connected to fontification, because I browsed through the
> items of the list and at one point it switches to string syntax for no
> reason, and I guess that causes the problem.
>
> See the attached screenshot.
Sounds like a bug in the `syntax-propertize-function` of the major mode
you're using (or otherwise a bug elsewhere in that mode where it touches
the `syntax-table` text property).
You might want to open a bug report (against the major mode) and give as
much info as you can (of course a reproducible recipe is ideal, but it
might be tricky to come up with one).
Stefan
next prev parent reply other threads:[~2022-01-12 21:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-12 16:49 backward-sexp throws scan-error "Unbalanced parentheses", but forward-sexp works ndame via Users list for the GNU Emacs text editor
2022-01-12 17:33 ` ndame via Users list for the GNU Emacs text editor
2022-01-12 21:06 ` Stefan Monnier via Users list for the GNU Emacs text editor [this message]
2022-01-13 5:40 ` ndame via Users list for the GNU Emacs text editor
2022-01-13 5:54 ` ndame via Users list for the GNU Emacs text editor
2022-01-13 6:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-13 9:04 ` ndame via Users list for the GNU Emacs text editor
2022-01-19 20:47 ` ndame
2022-01-19 20:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-19 20:57 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-01-19 21:30 ` ndame
2022-01-19 23:44 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-01-20 4:47 ` ndame
2022-01-20 17:20 ` Stefan Monnier via Users list for the GNU Emacs text editor
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=jwvh7a8wtqw.fsf-monnier+emacs@gnu.org \
--to=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
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).