From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14616@debbugs.gnu.org
Subject: bug#14616: 24.3.50; Excessive cursor movement on non-X Emacs
Date: Fri, 19 Jul 2013 17:31:32 +0200 [thread overview]
Message-ID: <m3bo5yh8h7.fsf@stories.gnus.org> (raw)
In-Reply-To: <83ip10hlyr.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Jun 2013 19:32:12 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> Could you please attach a debugger to Emacs, after starting the
> server, but before opening the TTY frame with emacsclient, and set a
> breakpoint like this:
>
> (gdb) set height 0
> (gdb) break update_frame_1
> (gdb) commands
> > p force_p
> > p inhibit_id_p
> > continue
> > end
> (gdb)
Thanks for the recipe.
The first thing that I notice is that after starting Gnus, and letting
Gnus settle (so there's not screen updates at all), I get the following:
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$443 = true
$444 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$445 = true
$446 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$447 = true
$448 = false
Once per second. So it seems like something is making the update fire
regularly, but not very intensively. Nothing that I'm able to detect
happens on the screen -- I have no clocks or anything altering anything.
Now, for the real bug. When I then select an article in Gnus, this
starts firing like crazy:
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16335 = true
$16336 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16337 = true
$16338 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16339 = true
$16340 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16341 = true
$16342 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16343 = true
$16344 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$16345 = true
$16346 = false
[...]
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$17071 = true
$17072 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$17073 = true
$17074 = false
Breakpoint 3, update_frame_1 (f=0xc12be0, force_p=true, inhibit_id_p=false)
at dispnew.c:4445
4445 struct glyph_matrix *current_matrix = f->current_matrix;
$17075 = true
$17076 = false
So it fired about er seven thousand times?
When Gnus selects an article in these groups, a lot of network traffic
is fired off as it uses `url-retrieve' to pre-fetch images. So my
uninformed guess would be that something in the network code is telling
Emacs that the display is dirty and needs to be repainted.
Does this output tell you anything, or should I put the breakpoints
somewhere else?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
next prev parent reply other threads:[~2013-07-19 15:31 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 8:00 bug#14616: 24.3.50; Excessive cursor movement on non-X Emacs Lars Magne Ingebrigtsen
2013-06-14 8:05 ` Lars Magne Ingebrigtsen
2013-06-23 17:27 ` Eli Zaretskii
2013-06-25 20:18 ` Lars Magne Ingebrigtsen
2013-06-26 16:32 ` Eli Zaretskii
2013-07-19 15:31 ` Lars Magne Ingebrigtsen [this message]
2013-07-19 18:46 ` Eli Zaretskii
2013-07-30 14:47 ` Lars Magne Ingebrigtsen
2013-07-30 16:44 ` Eli Zaretskii
2013-07-31 10:03 ` Lars Magne Ingebrigtsen
2013-07-31 10:11 ` Lars Magne Ingebrigtsen
2013-07-31 17:34 ` Eli Zaretskii
2013-08-01 10:41 ` Lars Magne Ingebrigtsen
2013-08-01 16:46 ` Eli Zaretskii
2013-08-02 13:33 ` Lars Magne Ingebrigtsen
2013-08-02 15:07 ` Eli Zaretskii
2013-08-02 13:46 ` Lars Magne Ingebrigtsen
2013-08-02 14:28 ` Eli Zaretskii
2013-08-03 13:00 ` Lars Magne Ingebrigtsen
2013-08-03 13:32 ` Eli Zaretskii
2013-08-05 18:22 ` Lars Magne Ingebrigtsen
2013-08-05 18:45 ` Eli Zaretskii
2013-08-05 19:10 ` Lars Magne Ingebrigtsen
2013-08-05 19:15 ` Lars Magne Ingebrigtsen
2013-08-05 19:21 ` Lars Magne Ingebrigtsen
2013-08-05 19:45 ` Eli Zaretskii
2013-08-05 19:53 ` Lars Magne Ingebrigtsen
2013-08-06 15:45 ` Eli Zaretskii
2013-08-05 19:40 ` Eli Zaretskii
2013-08-05 19:46 ` Lars Magne Ingebrigtsen
2013-08-05 19:51 ` Lars Magne Ingebrigtsen
2013-08-05 20:10 ` Eli Zaretskii
2013-08-05 20:20 ` Lars Magne Ingebrigtsen
2013-08-06 15:26 ` Eli Zaretskii
2013-08-06 20:32 ` Lars Magne Ingebrigtsen
2013-08-07 13:51 ` Eli Zaretskii
2013-08-02 14:00 ` Lars Magne Ingebrigtsen
2013-08-03 7:57 ` Eli Zaretskii
2013-08-03 13:00 ` Lars Magne Ingebrigtsen
2013-06-14 8:59 ` Eli Zaretskii
2013-06-18 5:22 ` lee
2013-06-18 15:57 ` Eli Zaretskii
2013-06-19 1:38 ` lee
2013-06-27 11:16 ` lee
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=m3bo5yh8h7.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=14616@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.