Subject: bug#8789: 23.3; debug backtrace buffer changes window on step-through

From: Michael Heerdegen <[email-masked]>
Date: Thu, 09 Feb 2012 06:31:09 +0100

Hello,

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

Michael.