[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60886: 29.0.60; split-root-window-below broken for split-window-keep
From: |
Juri Linkov |
Subject: |
bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point |
Date: |
Sat, 21 Jan 2023 19:57:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
> Just think of how much easier it would have been, had these new
> functions been coded as
>
> (defun split-root-window-below (&optional size)
> "Split root window of selected frame in two.
> The current window configuration is retained in the top window,
> the lower window takes up the whole width of the frame. SIZE is
> handled as in `split-window-below'. The buffer of the new window is
> taken from the selected window."
> (interactive "P")
> (when (and size (< size 0) (< (- size) window-min-height))
> ;; `split-window' would not signal an error here.
> (error "Size of new window too small"))
> (split-window (frame-root-window) size 'below))
>
> (defun split-root-window-right (&optional size)
> "Split root window of selected frame into two side-by-side windows.
> The current window configuration is retained within the left
> window, and a new window is created on the right, taking up the
> whole height of the frame. SIZE is treated as by
> `split-window-right'. The buffer of the new window is taken from
> the selected window."
> (interactive "P")
> (when (and size (< size 0) (< (- size) window-min-width))
> ;; `split-window' would not signal an error here.
> (error "Size of new window too small"))
> (split-window (frame-root-window) size 'right))
I proposed the same in bug#56767.
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, (continued)
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/20
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Eli Zaretskii, 2023/01/21
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/21
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Eli Zaretskii, 2023/01/21
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/21
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Eli Zaretskii, 2023/01/21
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/22
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Eli Zaretskii, 2023/01/26
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/26
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Eli Zaretskii, 2023/01/26
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point,
Juri Linkov <=
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, martin rudalics, 2023/01/22
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Juri Linkov, 2023/01/22
- bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point, Juri Linkov, 2023/01/24