unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15567: Point jumps around madly in XML file when undoing while auto-revert-mode updates buffer
@ 2013-10-08 23:07 Barry OReilly
  2013-10-09 12:29 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Barry OReilly @ 2013-10-08 23:07 UTC (permalink / raw)
  To: 15567

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-17 16:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08 23:07 bug#15567: Point jumps around madly in XML file when undoing while auto-revert-mode updates buffer Barry OReilly
2013-10-09 12:29 ` 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

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).