GNU bug report logs -
#34169
27.0.50; Display-buffer function to use whole frame
Previous Next
Reported by: Alex Branham <alex.branham <at> gmail.com>
Date: Tue, 22 Jan 2019 21:53:01 UTC
Severity: wishlist
Found in version 27.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 34169 <at> debbugs.gnu.org (full text, mbox):
Alex Branham <alex.branham <at> gmail.com> writes:
> It would be nice if Emacs's display-buffer routine had some way to
> display the buffer in the current frame and delete the other windows. I
> found `magit--display-buffer-fullframe' which seems to do what I want.
> Can something like this be added to window.el?
>
> Thanks,
> Alex
>
> (defun magit--display-buffer-fullframe (buffer alist)
> (when-let ((window (or (display-buffer-reuse-window buffer alist)
> (display-buffer-same-window buffer alist)
> (display-buffer-pop-up-window buffer alist)
> (display-buffer-use-some-window buffer alist))))
> (delete-other-windows window)
> window))
Makes sense to me, so I've added this to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 59 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.