From: Eli Zaretskii <eliz@gnu.org>
To: StrawberryTea <look@strawberrytea.xyz>
Cc: 69259@debbugs.gnu.org
Subject: bug#69259: 30.0.50; (get-pos-property 9483 'cursor-intangible) gives args-out-of-range error in folded magit buffer
Date: Mon, 19 Feb 2024 14:27:36 +0200 [thread overview]
Message-ID: <861q98r64n.fsf@gnu.org> (raw)
In-Reply-To: <87msrxo4ji.fsf@strawberrytea.xyz> (message from StrawberryTea on Sun, 18 Feb 2024 15:08:20 -0600)
> From: StrawberryTea <look@strawberrytea.xyz>
> Date: Sun, 18 Feb 2024 15:08:20 -0600
>
> Hi. So I noticed that sometimes magit-section-post-command-hook was giving an
> ars-out-of-range error and I have narrowed it down to a C function in Emacs:
>
> Debugger entered--Lisp error: (args-out-of-range 9482 9482)
> cursor-sensor--intangible-p(9483)
> cursor-sensor-tangible-pos(9483 #<window 3 on magit: emacs>)
> cursor-sensor-move-to-tangible(#<window 3 on magit: emacs>)
> #<subr magit-section-post-command-hook>()
> apply(#<subr magit-section-post-command-hook> nil)
> (condition-case err (apply func args) ((debug error) (signal (car err) (cdr err))))
> cae-debug-reraise-error(#<subr magit-section-post-command-hook>)
> apply(cae-debug-reraise-error #<subr magit-section-post-command-hook> nil)
> magit-section-post-command-hook()
>
> Within cursor-sensor--intangible-p, (get-pos-property 9483 'cursor-intangible)
> is giving that error in the Magit buffer even though that 9483 number is less
> than (point-max).
Can you show a recipe to reproduce this, preferably without using
Magit?
I suspect some code narrows the buffer while this code runs, which is
why the error is signaled.
next prev parent reply other threads:[~2024-02-19 12:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-18 21:08 bug#69259: 30.0.50; (get-pos-property 9483 'cursor-intangible) gives args-out-of-range error in folded magit buffer StrawberryTea
2024-02-19 12:27 ` Eli Zaretskii [this message]
2024-02-20 15:42 ` StrawberryTea
2024-02-21 12:31 ` Eli Zaretskii
2024-02-21 14:30 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-21 23:29 ` StrawberryTea
2024-02-22 6:42 ` Eli Zaretskii
2024-02-22 15:17 ` Jonas Bernoulli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-22 15:30 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-22 17:15 ` StrawberryTea
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=861q98r64n.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=69259@debbugs.gnu.org \
--cc=look@strawberrytea.xyz \
/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).