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

From: martin rudalics <[email-masked]>
Date: Thu, 09 Feb 2012 19:24:44 +0100

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

Have you tried adding an according rule to `display-buffer-alist'?

martin