Subject: bug#32825: 27.0.50; Deterministic window management

From: Juri Linkov <[email-masked]>
Date: Sat, 27 Oct 2018 23:59:44 +0300

>> It will be possible to configure it after adding the new action to the
>> end:
>>
>> diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
>> index 7fc2b41c70..dc5230b82a 100644
>> --- a/lisp/emacs-lisp/debug.el
>> +++ b/lisp/emacs-lisp/debug.el
>> @@ -239,7 +239,8 @@ debug
>>  	      (pop-to-buffer
>>  	       debugger-buffer
>>  	       `((display-buffer-reuse-window
>> -		  display-buffer-in-previous-window)
>> +		  display-buffer-in-previous-window
>> +		  display-buffer-below-selected)
>>  		 . (,(when (and (window-live-p
>> debugger-previous-window)
>>  				(frame-visible-p
>>  				 (window-frame
>> debugger-previous-window)))
>
> Under which conditions will `display-buffer-below-selected' be chosen?
> Only when there is no previous window?

If I understand correctly the logic of display-buffer then yes,
it should display it below the selected only when there is no
previous window (and no window is reused).