summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-12-02 10:05:50 -0500
committerEli Zaretskii <eliz@gnu.org>2023-12-02 10:05:50 -0500
commit14b62b1ae0ee8f1564496212b2c32c4a8ceb548e (patch)
treeba1683cf8dfc4e6dce0f300c0b7b9544f05a627c /lisp/window.el
parentb26852ef974d3e43d0174a15bc2774283042b8c2 (diff)
parentcd477bf07d8d996b90e02b5222248264cd6d5c39 (diff)
downloademacs-14b62b1ae0ee8f1564496212b2c32c4a8ceb548e.tar.gz
Merge from origin/emacs-29
cd477bf07d8 Fix behavior of 'split-root-window-*' with 'C-u' 2e5d47f578a ; * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer):... c46700deb0a Add more text to clarify the behavior of 'with-current-bu... 687c416ce9b Fix example in Emacs user manual 835902179cd ; Fix recent change in 'c-ts-mode' 169a5ff7524 ; Fix typo in Gnus manual (bug#67469). 30841c71a5d Mention Titankey in Tramp, which has passed the tests dab7cc241f4 Fix c-ts-mode indentation after if/else (bug#67417) f8d9dc26c78 Fix indentation for else clause in c-ts-mode (bug#67417) bf0b0c9c73d Ensure that directory is expanded in package-vc-checkout e551dd72f79 * etc/PROBLEMS: Add entry about pinentry with gpgsm. (Bu...
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 0c5ccf167dc..fbdcd611068 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5682,7 +5682,8 @@ Return the new window.
If optional argument SIZE is omitted or nil, both windows get the
same height, or close to it. If SIZE is positive, the upper
\(selected) window gets SIZE lines. If SIZE is negative, the
-lower (new) window gets -SIZE lines.
+lower (new) window gets -SIZE lines. Interactively, SIZE is
+the prefix numeric argument.
If the variable `split-window-keep-point' is non-nil, both
windows get the same value of point as the WINDOW-TO-SPLIT.
@@ -5734,8 +5735,9 @@ amount of redisplay; this is convenient on slow terminals."
"Split root window of current 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'."
- (interactive "P")
+handled as in `split-window-below', and interactively is the
+prefix numeric argument."
+ (interactive "p")
(split-window-below size (frame-root-window)))
(defun split-window-right (&optional size window-to-split)
@@ -5752,7 +5754,7 @@ same width, or close to it. If SIZE is positive, the left-hand
right-hand (new) window gets -SIZE columns. Here, SIZE includes
the width of the window's scroll bar; if there are no scroll
bars, it includes the width of the divider column to the window's
-right, if any."
+right, if any. Interactively, SIZE is the prefix numeric argument."
(interactive `(,(when current-prefix-arg
(prefix-numeric-value current-prefix-arg))
,(selected-window)))
@@ -5774,8 +5776,8 @@ right, if any."
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'."
- (interactive "P")
+`split-window-right' and interactively, is the prefix numeric argument."
+ (interactive "p")
(split-window-right size (frame-root-window)))
;;; Balancing windows.