From: William Rankin <william@bydasein.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39967@debbugs.gnu.org
Subject: bug#39967: 27.0.90; how to debug point moving erratically?
Date: Sat, 7 Mar 2020 22:16:56 +1000 [thread overview]
Message-ID: <DA90F9B4-3E70-4331-9A5A-96B0FEFB4F23@bydasein.com> (raw)
In-Reply-To: <83r1y4a0it.fsf@gnu.org>
> On 7 Mar 2020, at 9:04 pm, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> Hmm given the way it moves point, I would put money on this not being my
>> init. I'm not smart enough to write something that would work in such a
>> sporadic way.
>
> I didn't mean something you wrote, I meant some feature you turn on
> that is not turned on by default, a feature that is part of Emacs or
> some third-party package you are using.
Ah I see. Okay, that does increase the surface area.
>> Given the impending release of 27.1 maybe there are other avenues I can
>> check too?
>
> You could try running under GDB with a breakpoint in set_point_both
> and temp_set_point_both, with breakpoint commands that show the C and
> Lisp backtrace and then immediately continue the program. Let me know
> if you need more detailed instructions for setting this up.
I should be able to figure this out and report back.
> Can you describe the issue in more detail? Are you saying this
> happens when Emacs is idle, i.e. you are not typing any commands and
> no sub-processes should be running? And what exactly do you see when
> this happens? Also, do you see any error messages in *Messages*? when
> that happens?
>
> FWIW, I don't see anything like this on my system in Emacs 27.0.90, so
> I have hard time believing that something as basic as JIT font-lock
> could do this, at least not by default.
I've only observed this after Emacs has been open for more than a few
hours or overnight.
It will only happen after Emacs is idle for a few seconds, i.e. no user
input.
The point will start jumping to different positions in the buffer, and
this will then repeat at regular intervals of ~0.5 seconds per jump.
These positions do not appear totally random, but seem like jumps of a
similar sized chunk of text, like they are being calculated.
I think the only process running is ispell (enchant).
There are no error messages in *Messages*.
C-g does not immediately stop point jumping, however, if I give more
input (e.g. C-n/p or C-x o, etc.) then either this will stop point
jumping, or will delay it for ~2 seconds, and then point starts
jumping again. This repetition only happens a once or twice before it
seems to "finish" and the problem appears gone.
There is this in my init:
(advice-add 'mark-word :before
(lambda (&rest args)
(unless (looking-at-p "\\b")
(backward-word))))
Could this be causing such havoc??
next prev parent reply other threads:[~2020-03-07 12:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 3:49 bug#39967: 27.0.90; how to debug point moving erratically? William Rankin
2020-03-07 8:00 ` Eli Zaretskii
2020-03-07 9:10 ` William Rankin
2020-03-07 11:04 ` Eli Zaretskii
2020-03-07 12:16 ` William Rankin [this message]
2020-03-07 13:06 ` Eli Zaretskii
2020-03-07 13:47 ` William Rankin
2020-03-07 15:32 ` Eli Zaretskii
2020-03-10 10:29 ` William Rankin
2022-02-02 18:24 ` Lars Ingebrigtsen
2022-02-04 5:06 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-05 6:34 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DA90F9B4-3E70-4331-9A5A-96B0FEFB4F23@bydasein.com \
--to=william@bydasein.com \
--cc=39967@debbugs.gnu.org \
--cc=eliz@gnu.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 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.