GNU bug report logs - #56767
New commands to split frame

Previous Next

Package: emacs;

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

Date: Mon, 25 Jul 2022 19:52:02 UTC

Severity: wishlist

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 56767 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 56767 <at> debbugs.gnu.org
Subject: Re: bug#56767: New commands to split frame
Date: Tue, 26 Jul 2022 14:41:48 +0200
Juri Linkov <juri <at> linkov.net> writes:

> Since we already have the commands to split the current window,
> shouldn't we also have the commands to split the current frame:
>
> ```
> diff --git a/lisp/window.el b/lisp/window.el
> index 4d88ffa903..86dec25cdf 100644
> --- a/lisp/window.el
> +++ b/lisp/window.el
> @@ -5754,6 +5754,17 @@ split-window-right
>      new-window))
>
>  (defalias 'split-window-horizontally 'split-window-right)
> +
> +(defun split-frame-vertically (&optional size)
> +  "Like `split-window-vertically' but splits frame instead of window."
> +  (interactive "P")
> +  (split-window (frame-root-window) size))
> +
> +(defun split-frame-horizontally (&optional size)
> +  "Like `split-window-horizontally' but splits frame instead of window."
> +  (interactive "P")
> +  (split-window (frame-root-window) size t))

I don't think I understand what this is supposed to do.  When testing
it, it just splits the topmost window (no matter what window is
selected), and I don't undertand why anybody would want that in
particular.





This bug report was last modified 2 years and 344 days ago.

Previous Next


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