GNU bug report logs - #32825
27.0.50; Deterministic window management

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Mon, 24 Sep 2018 19:15:02 UTC

Severity: minor

Tags: moreinfo

Found in version 27.0.50

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 32825 <at> debbugs.gnu.org
Subject: bug#32825: 27.0.50; Deterministic window management
Date: Wed, 31 Oct 2018 09:10:58 +0100
> I still don't understand why it's impossible to support such uses?
>
> diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
> index 7fc2b41c70..6d72616dbc 100644
> --- a/lisp/emacs-lisp/debug.el
> +++ b/lisp/emacs-lisp/debug.el
> @@ -239,11 +239,13 @@ debug
>   	      (pop-to-buffer
>   	       debugger-buffer
>   	       `((display-buffer-reuse-window
> -		  display-buffer-in-previous-window)
> -		 . (,(when (and (window-live-p debugger-previous-window)
> -				(frame-visible-p
> -				 (window-frame debugger-previous-window)))
> -		       `(previous-window . ,debugger-previous-window)))))
> +		  display-buffer-in-previous-window
> +		  display-buffer-below-selected)
> +		 . ((window-min-height . 10)

What would the semantics of that 'window-min-height' entry be?

(1) When splitting a window, the new window must be at least 10 lines
    high.

(2) When splitting a window, both the old and the new window must be
    at least 10 lines high after the split.

(3) When splitting a window, every window must be at least 10 lines
    high after the split.

And what would we do if before the split a window is less high than 10
lines?

Why can't we just follow the doc-string of 'window-min-height'?

   Applications should never rebind this variable.  To resize a
   window to a height less than the one specified here, an
   application should instead call ‘window-resize’ with a non-nil
   IGNORE argument.  In order to have ‘split-window’ make a window
   shorter, explicitly specify the SIZE argument of that function.

> +		    ,@(when (and (window-live-p debugger-previous-window)
> +				 (frame-visible-p
> +				  (window-frame debugger-previous-window)))
> +		        `((previous-window . ,debugger-previous-window))))))
>   	      (setq debugger-window (selected-window))
>   	      (if (eq debugger-previous-window debugger-window)
>   		  (when debugger-jumping-flag

martin





This bug report was last modified 3 years and 24 days ago.

Previous Next


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