[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34169: 27.0.50; Display-buffer function to use whole frame
From: |
Lars Ingebrigtsen |
Subject: |
bug#34169: 27.0.50; Display-buffer function to use whole frame |
Date: |
Wed, 18 May 2022 15:33:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Alex Branham <alex.branham@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#34169: 27.0.50; Display-buffer function to use whole frame,
Lars Ingebrigtsen <=