* bug#34169: 27.0.50; Display-buffer function to use whole frame
@ 2019-01-22 21:29 Alex Branham
2022-05-18 13:33 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Alex Branham @ 2019-01-22 21:29 UTC (permalink / raw)
To: 34169
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))
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#34169: 27.0.50; Display-buffer function to use whole frame
2019-01-22 21:29 bug#34169: 27.0.50; Display-buffer function to use whole frame Alex Branham
@ 2022-05-18 13:33 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-18 13:33 UTC (permalink / raw)
To: Alex Branham; +Cc: 34169
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-18 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-22 21:29 bug#34169: 27.0.50; Display-buffer function to use whole frame Alex Branham
2022-05-18 13:33 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).