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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: rudalics <at> gmx.at, 69983 <at> debbugs.gnu.org
Subject: bug#69983: Use category for display-buffer-alist
Date: Sat, 20 Apr 2024 15:08:32 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: rudalics <at> gmx.at,  69983 <at> debbugs.gnu.org
> Date: Fri, 19 Apr 2024 19:17:14 +0300
> 
> The reason why a new option is needed is because display-warning
> doesn't move point to the bottom line with the last message.
> 
> So when the warning buffer will be displayed at the bottom of
> the screen in a narrow window, but the window always stays
> displaying the top of the warning buffer, the users will miss
> the last unseen message.
> 
> To solve this problem, a new option 'warning-display-at-bottom'
> (whose name has the same prefix as all other options in the same file)
> will scroll the bottom window, so the last message will always
> be visible to the user.

Thanks.

> +		       (when warning-display-at-bottom
> +                         (with-selected-window window
> +                           (set-window-point window (point-max))
> +                           (recenter -1)))

Should we perhaps do the same as end-of-buffer does, i.e.

	 (recenter (if (and scroll-minibuffer-conservatively
	                    (window-minibuffer-p))
	               -1 -3)))))

(or, if the window here can never be a mini-window, just use -3
instead of -1 in the call to recenter)?




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

Previous Next


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