GNU bug report logs - #69983
Use category for display-buffer-alist

Previous Next

Package: emacs;

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

Date: Sun, 24 Mar 2024 17:22:01 UTC

Severity: normal

Fixed in version 30.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 69983 <at> debbugs.gnu.org
Subject: Re: bug#69983: Use category for display-buffer-alist
Date: Sat, 06 Apr 2024 21:42:48 +0300
> One problem is that I can't find an alist item to limit
> the window height, i.e. can't find window-max-height
> that would be like window-min-height, but to set a max height.
> Could you suggest such an alist item?

The intention was to have such behavior:
1. after the first call that adds 1 line to the output buffer,
   resize the displayed buffer to 1 line height;
2. after the second call grow the output window height to 2 lines,
   it seems fit-window-to-buffer should do this;
3. after 10th call limit the window height to 10 lines only,
   so later calls should not increase the output window height
   more than 10 lines.

But I can't find a setting for this.

> +		     (let ((window (display-buffer
> +                                    buffer
> +                                    '(display-buffer--maybe-at-bottom
> +                                      (window-min-height . 10)
> +                                      (window-height . fit-window-to-buffer)





This bug report was last modified 1 year and 29 days ago.

Previous Next


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