GNU bug report logs - #8789
23.3; debug backtrace buffer changes window on step-through

Previous Next

Package: emacs;

Reported by: Pete Beardmore <pete.beardmore <at> msn.com>

Date: Thu, 2 Jun 2011 17:28:02 UTC

Severity: normal

Found in version 23.3

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 8789 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: michael_heerdegen <at> web.de
Cc: 8789 <at> debbugs.gnu.org
Subject: Re: bug#8789: 23.3;
	debug backtrace buffer changes window on step-through
Date: Thu, 09 Feb 2012 13:21:39 -0500
> I don't know why this problem doesn't get fixed.  It is an annoying
> problem, and a fix need not to be complicated - on the contrary.
> It should IMHO be sufficient to add to the

>   (pop-to-buffer debugger-buffer)

> call in `debug' an action argument that ensures that always the same
> window is chosen, by an deterministic algorithm.  For example:

>   (pop-to-buffer debugger-buffer
>      '((lambda (buffer _)
>          (let ((first-win (frame-first-window)))
>            (select-window first-win)
>            (switch-to-buffer buffer)
>            first-win))))

> would always choose the first window for *Backtrace*.

The general approach sounds good, but we should probably try to refine
it so as to minimize changes in behavior, and so it works right in the
multi-frame and even multi-terminal case.

We could try to store the last-used-window in a variable
`debugger-last-used-window' and use that window after checking that it's
still live and is visible in the selected terminal.


        Stefan




This bug report was last modified 12 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.