Subject: bug#14616: 24.3.50; Excessive cursor movement on non-X Emacs

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Mon, 05 Aug 2013 22:20:32 +0200

Eli Zaretskii <[email-masked]> writes:

> But this will help:
>  > p frame
>  > xframe
>  > p top_frame
>  > xframe
>  > continue
>  > end

Right, now I get:

Breakpoint 3, do_switch_frame (frame=42852525, track=1, for_deletion=0, norecord=12571250) at frame.c:844
844		  SET_FRAME_VISIBLE (XFRAME (frame), 1);
$2213 = 42852525
$2214 = (struct frame *) 0x28de0a8
"emacs"
$2215 = 12659685
$2216 = (struct frame *) 0xc12be0
"F1"

Breakpoint 3, do_switch_frame (frame=12659685, track=1, for_deletion=0, norecord=12571250) at frame.c:844
844		  SET_FRAME_VISIBLE (XFRAME (frame), 1);
$2217 = 12659685
$2218 = (struct frame *) 0xc12be0
"F1"
$2219 = 42852525
$2220 = (struct frame *) 0x28de0a8
"emacs"

Breakpoint 3, do_switch_frame (frame=42852525, track=1, for_deletion=0, norecord=12571250) at frame.c:844
844		  SET_FRAME_VISIBLE (XFRAME (frame), 1);
$2221 = 42852525
$2222 = (struct frame *) 0x28de0a8
"emacs"
$2223 = 12659685
$2224 = (struct frame *) 0xc12be0
"F1"

Breakpoint 3, do_switch_frame (frame=12659685, track=1, for_deletion=0, norecord=12571250) at frame.c:844
844		  SET_FRAME_VISIBLE (XFRAME (frame), 1);
$2225 = 12659685
$2226 = (struct frame *) 0xc12be0
"F1"
$2227 = 42852525
$2228 = (struct frame *) 0x28de0a8
"emacs"

Breakpoint 3, do_switch_frame (frame=42852525, track=1, for_deletion=0, norecord=12571250) at frame.c:844
844		  SET_FRAME_VISIBLE (XFRAME (frame), 1);
$2229 = 42852525
$2230 = (struct frame *) 0x28de0a8
"emacs"
$2231 = 12659685
$2232 = (struct frame *) 0xc12be0
"F1"

> They oscillate.  Makes sense, but I don't see why should that happen.

If it loops over all the frames and switches to them, and this happens
every time redisplay happens (because of accept-process-output), then
that seems natural.  But wrong.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
  and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html