bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Sun, 22 Jan 2023 19:09:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>> I proposed the same in bug#56767.
>
> That would have avoided nonsense like retrieving 'window-point' of an
> uninvolved window or the 'quit-restore' parameter of an internal window.

Then I don't know what to do at this time before the release:
whether to rewrite them or not.

Also these commands are missing:

(defun split-root-window-above (&optional size)
  (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 'above))

(defun split-root-window-left (&optional size)
  (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 'left))

There are no corresponding split-window-above and split-window-left,
because they provide the same result as the existing
split-window-below and split-window-right.  But there is no way
to add a window on the left/above for the root window
by using split-root-window-below or split-root-window-right.
Therefore split-root-window-above and split-root-window-left
are needed.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]