all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ndame via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: backward-sexp throws scan-error "Unbalanced parentheses", but forward-sexp works
Date: Wed, 12 Jan 2022 16:49:23 +0000	[thread overview]
Message-ID: <ctJk85KpnHjxl522rEdKDyqw8cIaP4kF6vF3y-etrhtlQzfKYelTTgRSV4drCqjw9MeZTscAyM9uFdBIyHNllCKAhI94PqClO385VoU2DPE=@protonmail.com> (raw)

I sometimes run into the situation with huge elisp lists, that I cannot use backward-sexp, because it throws an error, but forward-sexp works on the same list. Then, after a while it fixes itself without changing the buffer and backwards-sexp works too. I suspect scrolling through the file fixes it, so it might be connected to fontification? Though it's just a guess, I don't see how they could be related.

Is there a known situation when the same elisp list can be navigated forward, but not backward?

I'm on Emacs 27.1. Was there a related bug fixed in 28?

I cannot yet replicate the problem knowingly, it just occurs every once in a while.

             reply	other threads:[~2022-01-12 16:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 16:49 ndame via Users list for the GNU Emacs text editor [this message]
2022-01-12 17:33 ` backward-sexp throws scan-error "Unbalanced parentheses", but forward-sexp works 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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ctJk85KpnHjxl522rEdKDyqw8cIaP4kF6vF3y-etrhtlQzfKYelTTgRSV4drCqjw9MeZTscAyM9uFdBIyHNllCKAhI94PqClO385VoU2DPE=@protonmail.com' \
    --to=help-gnu-emacs@gnu.org \
    --cc=laszlomail@protonmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.