From: Barry OReilly <gundaetiapo@gmail.com>
To: 15567@debbugs.gnu.org
Subject: bug#15567: Point jumps around madly in XML file when undoing while auto-revert-mode updates buffer
Date: Tue, 8 Oct 2013 19:07:57 -0400 [thread overview]
Message-ID: <CAFM41H2-_4KQ=u-dzHerx6JCu-rPtst75xb2Shy6D_VkoKK7dA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]
I had an XML file open, specifically the XML output file of a Valgrind
run. I ran Valgrind again which caused the XML file to become empty
and populate with new content. Since I wanted to view the old output,
I did undo in Emacs. I navigated to where I wanted to go, but then
shortly point jumps to a wrong part of the buffer. If I wait, it jumps
back and forth every second or two between where I wanted to be and
elsewhere in the buffer. I ended up killing the buffer and revisiting
the file to get back to something usable.
I have been running Emacs with debug statements to walk the specpdl
stack during redisplay and look for save_excursion_restore markers
that mismatch current marker at redisplay. See
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15045#29 for why and the
debugging patch. I was spammed with this output:
2013-10-08T18:24:21.068155000|pid:21060|tid:47198260320512|dispnew.c|5807|
DEBUG: Found save_excursion_restore with mismatched point markers
redisplay()
sit-for(0)
rng-validate-while-idle-continue-p()
rng-do-some-validation-1(rng-validate-while-idle-continue-p)
Ê\x1eÃÂÃ!.e("Æ " [rng-dt-namespace-context-getter modified
buffer-undo-list inhibit-read-only inhibit-modification-hooks
deactivate-mark rng-validate-prepare (nxml-ns-get-context)
buffer-modified-p t nil ((byte-code ÁÂ!Â" [modified
restore-buffer-modified-p nil] 2)) rng-do-some-validation-1
buffer-file-name buffer-file-truename continue-p-function] 3)
rng-do-some-validation(rng-validate-while-idle-continue-p)
rng-validate-while-idle(#<buffer REDACTED_UnitTests_valgrind.xml>)
apply(rng-validate-while-idle #<buffer REDACTED_UnitTests_valgrind.xml>)
byte-code("rÂÃH\")Á" [timer apply 5 6] 4)
timer-event-handler([t 0 1 500000 t rng-validate-while-idle (#<buffer
REDACTED_UnitTests_valgrind.xml>) idle 0])
input-pending-p()
rng-validate-while-idle-continue-p()
rng-do-some-validation-1(rng-validate-while-idle-continue-p)
Ê\x1eÃÂÃ!.e("Æ " [rng-dt-namespace-context-getter modified
buffer-undo-list inhibit-read-only inhibit-modification-hooks
deactivate-mark rng-validate-prepare (nxml-ns-get-context)
buffer-modified-p t nil ((byte-code ÁÂ!Â" [modified
restore-buffer-modified-p nil] 2)) rng-do-some-validation-1
buffer-file-name buffer-file-truename continue-p-function] 3)
rng-do-some-validation(rng-validate-while-idle-continue-p)
rng-validate-while-idle(#<buffer REDACTED_UnitTests_valgrind.xml>)
apply(rng-validate-while-idle #<buffer REDACTED_UnitTests_valgrind.xml>)
byte-code("rÂÃH\")Á" [timer apply 5 6] 4)
timer-event-handler([t 0 1 500000 t rng-validate-while-idle (#<buffer
REDACTED_UnitTests_valgrind.xml>) idle 0])
#<marker at 591026 in REDACTED_UnitTests_valgrind.xml>#<marker at 152113 in
REDACTED_UnitTests_valgrind.xml>
Normally this debug statement is silent. It indicates redisplay
occurred when point was on an excursion.
[-- Attachment #2: Type: text/html, Size: 3226 bytes --]
next reply other threads:[~2013-10-08 23:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 23:07 Barry OReilly [this message]
2013-10-09 12:29 ` bug#15567: Point jumps around madly in XML file when undoing while auto-revert-mode updates buffer Stefan Monnier
2013-10-10 14:14 ` Barry OReilly
2013-10-18 14:04 ` Barry OReilly
2021-08-20 15:28 ` Lars Ingebrigtsen
2021-09-17 16:01 ` 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='CAFM41H2-_4KQ=u-dzHerx6JCu-rPtst75xb2Shy6D_VkoKK7dA@mail.gmail.com' \
--to=gundaetiapo@gmail.com \
--cc=15567@debbugs.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.