]> code.delx.au - gnu-emacs/commitdiff
Rename split-window-{above-each-other|split-window-side-by-side}
authorChong Yidong <cyd@gnu.org>
Sun, 30 Oct 2011 01:56:03 +0000 (09:56 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 30 Oct 2011 01:56:03 +0000 (09:56 +0800)
to split-window-below and split-window-right.

* lisp/window.el (split-window-below, split-window-right): Rename from
split-window-above-each-other and split-window-side-by-side
respectively.  All callers changed.
(split-window-sensibly, split-window-sensibly): Use them.
(split-window-keep-point): Doc fix.

* lisp/isearch.el: Add isearch-scroll property to split-window-below
and split-window-right.

* lisp/follow.el (follow-mode):
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
* lisp/progmodes/ada-xref.el (ada-gdb-application):
* lisp/emulation/vip.el (vip-buffer-in-two-windows):
* lisp/image-dired.el (image-dired-dired-with-window-configuration):
* lisp/dired-x.el (dired-do-find-marked-files):
* lisp/dired.el (dired-pop-to-buffer):
* lisp/bs.el (bs--show-with-configuration):
* lisp/vc/emerge.el (emerge-setup-windows):
* lisp/textmodes/two-column.el (2C-two-columns):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/progmodes/gdb-mi.el (gdb-setup-windows):
* lisp/progmodes/fortran.el (fortran-window-create):
* lisp/net/newst-treeview.el (newsticker--treeview-window-init):
* lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
* lisp/emulation/tpu-edt.el (tpu-gold-map):
* lisp/emulation/crisp.el (crisp-mode-map):
* lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.

27 files changed:
etc/NEWS
lisp/ChangeLog
lisp/bs.el
lisp/calculator.el
lisp/calendar/calendar.el
lisp/dired-x.el
lisp/dired.el
lisp/emulation/crisp.el
lisp/emulation/edt.el
lisp/emulation/tpu-edt.el
lisp/emulation/vip.el
lisp/emulation/ws-mode.el
lisp/follow.el
lisp/image-dired.el
lisp/isearch.el
lisp/menu-bar.el
lisp/net/newst-treeview.el
lisp/progmodes/ada-xref.el
lisp/progmodes/fortran.el
lisp/progmodes/gdb-mi.el
lisp/talk.el
lisp/textmodes/reftex-toc.el
lisp/textmodes/two-column.el
lisp/tutorial.el
lisp/vc/emerge.el
lisp/vc/pcvs-util.el
lisp/window.el

index 4e38838c4d27d0ae5b4c094eada6f275d5fc30e2..bd2f6004d390e83e8191914435dc04a6994ffb91 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1101,8 +1101,8 @@ selected window, signaling an error otherwise.  If nil, another window
 can be used, e.g. if the selected one is strongly dedicated.
 
 *** `split-window-vertically' and `split-window-horizontally' renamed
-to `split-window-above-each-other' and `split-window-side-by-side'
-respectively.  The old names are kept as aliases.
+to `split-window-below' and `split-window-right' respectively.
+The old names are kept as aliases.
 
 *** Display actions
 
index 8309d3256bf0bdfb0f8031807c79ce1f4e3a8796..614094aa3341f7fce9ed1ad45d95f6cb08cb435c 100644 (file)
@@ -1,3 +1,33 @@
+2011-10-30  Chong Yidong  <cyd@gnu.org>
+
+       * window.el (split-window-below, split-window-right): Rename from
+       split-window-above-each-other and split-window-side-by-side
+       respectively.  All callers changed.
+       (split-window-sensibly, split-window-sensibly): Use them.
+       (split-window-keep-point): Doc fix.
+
+       * isearch.el: Add isearch-scroll property to split-window-below
+       and split-window-right.
+
+       * follow.el (follow-mode):
+       * vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
+       * progmodes/ada-xref.el (ada-gdb-application):
+       * emulation/vip.el (vip-buffer-in-two-windows):
+       * image-dired.el (image-dired-dired-with-window-configuration):
+       * dired-x.el (dired-do-find-marked-files):
+       * dired.el (dired-pop-to-buffer):
+       * bs.el (bs--show-with-configuration):
+       * vc/emerge.el (emerge-setup-windows):
+       * textmodes/two-column.el (2C-two-columns):
+       * textmodes/reftex-toc.el (reftex-toc):
+       * progmodes/gdb-mi.el (gdb-setup-windows):
+       * progmodes/fortran.el (fortran-window-create):
+       * net/newst-treeview.el (newsticker--treeview-window-init):
+       * emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
+       * emulation/tpu-edt.el (tpu-gold-map):
+       * emulation/crisp.el (crisp-mode-map):
+       * calendar/calendar.el (calendar-basic-setup): Callers changed.
+
 2011-10-29  Chong Yidong  <cyd@gnu.org>
 
        * subr.el (y-or-n-p): Add code for batch mode (Bug#9818).
index 49ffb3f822c670c3fafe637738ec1b0730fbe436..0c32c8b4f19af2a4b6d59187582a8c2bdc5c685f 100644 (file)
@@ -1414,8 +1414,7 @@ for buffer selection."
        (bs--restore-window-config)
        (setq bs--window-config-coming-from (current-window-configuration))
        (when (> (window-height (selected-window)) 7)
-          (split-window-vertically)
-          (other-window 1)))
+          (select-window (split-window-below))))
       (bs-show-in-buffer liste)
       (bs-message-without-log "%s" (bs--current-config-message)))))
 
index 2cc7f5f65693d0fe236dcfe1fcea3d141c7b0c72..4a79316d73607e26a87fc008ee020bc704205965 100644 (file)
@@ -720,7 +720,7 @@ See the documentation for `calculator-mode' for more information."
            ;; maybe leave two lines for our window because of the normal
            ;; `raised' modeline in Emacs 21
            (select-window
-            (split-window-vertically
+            (split-window-below
              ;; If the modeline might interfere with the calculator buffer,
              ;; use 3 lines instead.
              (if (and (fboundp 'face-attr-construct)
index 2c38101588cbaa529a9f68f859816d6ec35b8cfb..6fa924dd7881b7cf30cb2cc9006819345289cf3f 100644 (file)
@@ -1330,12 +1330,12 @@ display the generated calendar."
         ;; the right thing in that case.
         ;;
         ;; Is this a wide frame?  If so, split it horizontally.
-        (if (window-splittable-p t) (split-window-horizontally))
+        (if (window-splittable-p t) (split-window-right))
         (pop-to-buffer calendar-buffer)
         ;; Has the window already been split vertically?
         (when (and (not (window-dedicated-p))
                    (window-full-height-p))
-          (let ((win (split-window-vertically)))
+          (let ((win (split-window-below)))
             ;; In the upper window, show whatever was visible before.
             ;; This looks better than using other-buffer.
             (switch-to-buffer buff)
index aaddc479b2a36b644b74e2d10bee457ea3bd8202..4daf313445c7547f1c2475bfda477761b75a1d6a 100644 (file)
@@ -1259,7 +1259,7 @@ Remaining lines go to bottom-most window.  The number of files that can be
 displayed this way is restricted by the height of the current window and
 `window-min-height'.
 
-To keep dired buffer displayed, type \\[split-window-vertically] first.
+To keep dired buffer displayed, type \\[split-window-below] first.
 To display just marked files, type \\[delete-other-windows] first."
   (interactive "P")
   (dired-simultaneous-find-file (dired-get-marked-files) noselect))
index 3ff86869a784cfb9534ec4aa89896ffbcfa87307..4e03d61a06e5b844791924715389c3553d313ff8 100644 (file)
@@ -2879,7 +2879,7 @@ or \"* [3 files]\"."
                      (window-splittable-p (selected-window)))
                    ;; Try to split the selected window vertically if
                    ;; that's possible.  (Bug#1806)
-                   (split-window-vertically))
+                   (split-window-below))
               ;; Otherwise, try to split WINDOW sensibly.
               (split-window-sensibly window))))
        pop-up-frames)
@@ -4128,7 +4128,7 @@ instead.
 ;;;***
 \f
 ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump)
-;;;;;;  "dired-x" "dired-x.el" "0a19e4cb2cadf007be715af1035c9c36")
+;;;;;;  "dired-x" "dired-x.el" "ea7c74fbb7dddf43bb85875018cb59ad")
 ;;; Generated autoloads from dired-x.el
 
 (autoload 'dired-jump "dired-x" "\
index 567a57949b322a681617f21ea3e4a102a878336c..010e32857c59a82a44b8627be066117bfb4e0705 100644 (file)
@@ -71,8 +71,8 @@
     (define-key map [(f2) (left)]    'shrink-window-horizontally)
     (define-key map [(f2) (right)]   'enlarge-window-horizontally)
     (define-key map [(f2) (up)]      'shrink-window)
-    (define-key map [(f3) (down)]    'split-window-vertically)
-    (define-key map [(f3) (right)]   'split-window-horizontally)
+    (define-key map [(f3) (down)]    'split-window-below)
+    (define-key map [(f3) (right)]   'split-window-right)
 
     (define-key map [(f4)]           'delete-window)
     (define-key map [(control f4)]   'delete-other-windows)
index 68550cc30e270f245939378e0bb4744164032c36..7ed0255d98792ddf1905e8bbcd804ca6819e734f 100644 (file)
@@ -2362,7 +2362,7 @@ Argument GOLD-BINDING is the Emacs function to be bound to GOLD <KEY>."
   (edt-bind-gold-key-default  "\C-h" 'help-for-help); Just in case.
   (edt-bind-gold-key-default  [f1] 'help-for-help)
   (edt-bind-gold-key-default  [help] 'help-for-help)
-  (edt-bind-gold-key-default  "\C-\\" 'split-window-vertically)
+  (edt-bind-gold-key-default  "\C-\\" 'split-window-below)
 
   ;; GOLD bindings for regular keys.
   (edt-bind-gold-key-default "a" 'edt-key-not-assigned)
index b4bf47a65044ca59846f4c086aee0ee19fcd37a9..e2ad5d81d27a5e1c0c71bbf60a06e78ee2d515b7 100644 (file)
@@ -459,7 +459,7 @@ Otherwise, use `spell-region'."
     ;; (define-key map "\\" nil)                       ; \
     (define-key map "]" 'blink-matching-open)          ; ]
     (define-key map "^" 'tpu-add-at-bol)               ; ^
-    (define-key map "_" 'split-window-vertically)      ; -
+    (define-key map "_" 'split-window-below)           ; -
     (define-key map "`" 'what-line)                    ; `
     (define-key map "a" 'tpu-toggle-newline-and-indent)        ; a
     (define-key map "b" 'tpu-next-buffer)              ; b
@@ -487,7 +487,7 @@ Otherwise, use `spell-region'."
     (define-key map "y" 'copy-region-as-kill)          ; y
     (define-key map "z" 'suspend-emacs)                        ; z
     ;; (define-key map "{" nil)                                ; {
-    (define-key map "|" 'split-window-horizontally)    ; |
+    (define-key map "|" 'split-window-right)           ; |
     ;; (define-key map "}" nil)                                ; }
     (define-key map "~" 'exchange-point-and-mark)      ; ~
     (define-key map "\177" 'delete-window)             ; <X]
index 6f4f0ce80ec6fe8d00dd9bc67e203aecb293018e..a0c6062fb29d14ade1f5450343e00381ab1f7fff 100644 (file)
@@ -1605,7 +1605,7 @@ used.  This behavior is controlled by the sign of prefix numeric value."
   "Show current buffer in two windows."
   (interactive)
   (delete-other-windows)
-  (split-window-vertically nil))
+  (split-window-below))
 
 \f
 ;; searching
index 3a205c7c4f034adf0094c04c0384cb6f2be8ba61..886b4d6d4c47ab102aab6404aa9fdee106507790 100644 (file)
@@ -95,9 +95,9 @@
     (define-key map "\C-r" 'set-fill-column)
     (define-key map "\C-u" 'keyboard-quit)
     (define-key map "wd" 'delete-other-windows)
-    (define-key map "wh" 'split-window-horizontally)
+    (define-key map "wh" 'split-window-right)
     (define-key map "wo" 'other-window)
-    (define-key map "wv" 'split-window-vertically)
+    (define-key map "wv" 'split-window-below)
     map)
   "")
 
@@ -257,9 +257,9 @@ The key bindings are:
   C-o r                set-fill-column
   C-o C-u      keyboard-quit
   C-o wd       delete-other-windows
-  C-o wh       split-window-horizontally
+  C-o wh       split-window-right
   C-o wo       other-window
-  C-o wv       split-window-vertically
+  C-o wv       split-window-below
 
   C-q 0                ws-find-marker-0
   C-q 1                ws-find-marker-1
index 37295cc533b77c1ce4306256487a32f9843f83f4..b387427a47ffd53077896f914dd2ffa046cfdc19 100644 (file)
@@ -509,7 +509,7 @@ and being able to use 144 lines instead of the normal 72... (your
 mileage may vary).
 
 To split one large window into two side-by-side windows, the commands
-`\\[split-window-horizontally]' or \
+`\\[split-window-right]' or \
 `M-x follow-delete-other-windows-and-split' can be used.
 
 Only windows displayed in the same frame follow each other.
@@ -662,7 +662,7 @@ in your `~/.emacs' file, replacing [f7] by your favourite key:
                        (< (prefix-numeric-value arg) 0))))
        (start (window-start)))
     (delete-other-windows)
-    (split-window-horizontally)
+    (split-window-right)
     (if other
        (progn
          (other-window 1)
index 5477d01379dfc8ca33f92175d676b8f2f2cc01ec..8c151d35ed2c0c107e7d5725a676e621389f8b7f 100644 (file)
@@ -782,13 +782,12 @@ calling `image-dired-restore-window-configuration'."
     (dired dir)
     (delete-other-windows)
     (when (not arg)
-      (split-window-horizontally)
+      (split-window-right)
       (setq truncate-lines t)
       (save-excursion
         (other-window 1)
         (switch-to-buffer buf)
-        (split-window-vertically)
-        (other-window 1)
+        (select-window (split-window-below))
         (switch-to-buffer buf2)
         (other-window -2)))))
 
index 6bb23916da316fe43cee31c738678d369db4ec81..3ffe6e8a656a2bfcf2c76f986e299f5ff753612d 100644 (file)
@@ -1804,9 +1804,13 @@ Scroll-bar or mode-line events are processed appropriately."
 ;; Commands which change the window layout
 (put 'delete-other-windows 'isearch-scroll t)
 (put 'balance-windows 'isearch-scroll t)
+(put 'split-window-right 'isearch-scroll t)
+(put 'split-window-below 'isearch-scroll t)
+(put 'enlarge-window 'isearch-scroll t)
+
+;; Aliases for split-window-*
 (put 'split-window-vertically 'isearch-scroll t)
 (put 'split-window-horizontally 'isearch-scroll t)
-(put 'enlarge-window 'isearch-scroll t)
 
 ;; Universal argument commands
 (put 'universal-argument 'isearch-scroll t)
index 75a2d70da5ec70f3bb80ff01377ab846b0a245df..239477951121a6828c803677f4da0afec53bddd9 100644 (file)
                   :help ,(purecopy "Make selected window fill whole frame")))
 
     (define-key menu [new-window-on-right]
-      `(menu-item ,(purecopy "New Window on Right") split-window-side-by-side
+      `(menu-item ,(purecopy "New Window on Right") split-window-right
                   :enable (and (menu-bar-menu-frame-live-and-visible-p)
                                (menu-bar-non-minibuffer-window-p))
                   :help ,(purecopy "Make new window on right of selected one")))
 
     (define-key menu [new-window-below]
-      `(menu-item ,(purecopy "New Window Below") split-window-above-each-other
+      `(menu-item ,(purecopy "New Window Below") split-window-below
                   :enable (and (menu-bar-menu-frame-live-and-visible-p)
                                (menu-bar-non-minibuffer-window-p))
                   :help ,(purecopy "Make new window below selected one")))
index 37b31130e8b63e76c23b3f77d40cc4946a5019b0..26dddffb6edc7eebe50b7d4934a6a1d2755843b4 100644 (file)
@@ -2018,10 +2018,10 @@ POS gives the position where EVENT occurred."
   (setq newsticker--treeview-windows nil)
   (setq newsticker--treeview-buffers nil)
   (delete-other-windows)
-  (split-window-horizontally newsticker-treeview-treewindow-width)
+  (split-window-right newsticker-treeview-treewindow-width)
   (add-to-list 'newsticker--treeview-windows (selected-window) t)
   (other-window 1)
-  (split-window-vertically newsticker-treeview-listwindow-height)
+  (split-window-below newsticker-treeview-listwindow-height)
   (add-to-list 'newsticker--treeview-windows (selected-window) t)
   (other-window 1)
   (add-to-list 'newsticker--treeview-windows (selected-window) t)
index 7751f3e98fcb7ba9fc7750f14289ccd6e3e2e7ea..4a57a1eef675eefcfde8f468a68df07c664e8d45 100644 (file)
@@ -1438,7 +1438,7 @@ project file."
       ;;  is going to have some relevant information.
       (if (or (not (string-match "gvd" (comint-arguments cmd 0 0)))
              (string-match "--tty" cmd))
-         (split-window-vertically))
+         (split-window-below))
       (switch-to-buffer buffer)
       )))
 
index d30b9673d09436f0c2d2cec6e465c8c9ca8f4406..fd3d42685f0d6498cf9b7f8411936a57e242358c 100644 (file)
@@ -1097,7 +1097,7 @@ See also `fortran-window-create-momentarily'."
            (scroll-bar-width (- (nth 2 window-edges)
                                 (car window-edges)
                                 (window-width))))
-      (split-window-horizontally (+ fortran-line-length scroll-bar-width)))
+      (split-window-right (+ fortran-line-length scroll-bar-width)))
     (other-window 1)
     (switch-to-buffer " fortran-window-extra" t)
     (select-window (previous-window))))
index dde00d753ac08f919b0d62ee0558baf2790cfda2..f9ddabf1552a3de7ec6ee9bf040be82a5ec7ebb3 100644 (file)
@@ -4028,7 +4028,7 @@ window is dedicated."
   (let ((win0 (selected-window))
         (win1 (split-window nil ( / ( * (window-height) 3) 4)))
         (win2 (split-window nil ( / (window-height) 3)))
-        (win3 (split-window-horizontally)))
+        (win3 (split-window-right)))
     (gdb-set-window-buffer (gdb-locals-buffer-name) nil win3)
     (select-window win2)
     (set-window-buffer
@@ -4041,12 +4041,12 @@ window is dedicated."
          ;; can't find a source file.
          (list-buffers-noselect))))
     (setq gdb-source-window (selected-window))
-    (let ((win4 (split-window-horizontally)))
+    (let ((win4 (split-window-right)))
       (gdb-set-window-buffer
        (gdb-get-buffer-create 'gdb-inferior-io) nil win4))
     (select-window win1)
     (gdb-set-window-buffer (gdb-stack-buffer-name))
-    (let ((win5 (split-window-horizontally)))
+    (let ((win5 (split-window-right)))
       (gdb-set-window-buffer (if gdb-show-threads-by-default
                                  (gdb-threads-buffer-name)
                                (gdb-breakpoints-buffer-name))
index c16255f77422b44bbdb2aac7dfba5066dd5068d5..98c7f6d31ca1d4a5576b82c6f7368974c04be32a 100644 (file)
@@ -111,7 +111,7 @@ Select the first of these windows, displaying the first of the buffers."
          (while (progn
                   (switch-to-buffer (car buffers))
                   (setq buffers (cdr buffers)))
-           (split-window-vertically lines-per-buffer)
+           (split-window-below lines-per-buffer)
            (other-window 1))
          (select-window (frame-first-window frame)))
       (select-frame old-frame))))
index 5d691f456f7193ec6982d9db409dfe5ee610e864..37983d1793128f730662c8eacca5f4b38c7b0998 100644 (file)
@@ -247,10 +247,10 @@ When called with a raw C-u prefix, rescan the document first."
 
       (unless unsplittable
         (if reftex-toc-split-windows-horizontally
-            (split-window-horizontally
+            (split-window-right
              (floor (* (window-width)
                        reftex-toc-split-windows-fraction)))
-          (split-window-vertically
+          (split-window-below
            (floor (* (window-height)
                      reftex-toc-split-windows-fraction)))))
 
index 68b858162dfa14f7912abe0aab341c4fb7fca278..de9ac10d0e94784d2edd601ed88a4901f2a22419 100644 (file)
@@ -333,7 +333,7 @@ first and the associated buffer to its right."
   ;; first go to full width, so that we can certainly split into two windows
   (unless (window-full-width-p)
     (enlarge-window 99999 t))
-  (split-window-horizontally
+  (split-window-right
    (max window-min-width (min 2C-window-width
                              (- (frame-width) window-min-width))))
   (if (2C-other)
index c57ec33d2e2c3948ad9c92ee3c59bbbca976f14b..be1a12b499b661a4e9661ea8abc044ea68326b67 100644 (file)
@@ -298,7 +298,7 @@ LEFT and RIGHT are the elements to compare."
              (isearch-backward [?\C-r])
 
              ;; * MULTIPLE WINDOWS
-             (split-window-above-each-other [?\C-x ?2])
+             (split-window-below [?\C-x ?2])
              (scroll-other-window [?\C-\M-v])
              (other-window [?\C-x ?o])
              (find-file-other-window [?\C-x ?4 ?\C-f])
index 5435a840ac9b1ddb6c86ab100e9db17bd25500f7..3ba5bcdb90a38a40b9c1b02f69fa928356b02226 100644 (file)
@@ -1354,8 +1354,8 @@ Otherwise, the A or B file present is copied to the output file."
   (delete-other-windows)
   (switch-to-buffer merge-buffer)
   (emerge-refresh-mode-line)
-  (split-window-vertically)
-  (split-window-horizontally)
+  (split-window-below)
+  (split-window-right)
   (switch-to-buffer buffer-A)
   (if pos
       (goto-char (point-min)))
@@ -2121,7 +2121,7 @@ Use C-u l to reset the windows afterward."
   (delete-other-windows)
   (let ((temp-buffer-show-function
         (lambda (buf)
-          (split-window-vertically)
+          (split-window-below)
           (switch-to-buffer buf)
           (other-window 1))))
     (with-output-to-temp-buffer "*Help*"
index 752016a03921fa0e221bb70c31d927d13de473da..311841d37a026ea626667bf8491fd2ae2f44cf55 100644 (file)
@@ -88,7 +88,7 @@ try to split a new window instead."
        (pop-up-frames nil))
     (or (let ((buf (get-buffer-window buf))) (and buf (select-window buf)))
        (and pop-up-windows
-            (ignore-errors (select-window (split-window-vertically)))
+            (ignore-errors (select-window (split-window-below)))
             (switch-to-buffer buf))
        (pop-to-buffer (current-buffer)))))
 
index 968f47f4f31f082c04cc0c1e760cecc797afd5a6..e9f3a7797856ba8eed879d62da78920ab1fa3a15 100644 (file)
@@ -3262,39 +3262,28 @@ frame.  The selected window is not changed by this function."
 
 ;; I think this should be the default; I think people will prefer it--rms.
 (defcustom split-window-keep-point t
-  "If non-nil, \\[split-window-above-each-other] keeps the original point \
-in both children.
-This is often more convenient for editing.
-If nil, adjust point in each of the two windows to minimize redisplay.
-This is convenient on slow terminals, but point can move strangely.
-
-This option applies only to `split-window-above-each-other' and
-functions that call it.  `split-window' always keeps the original
-point in both children."
+  "If non-nil, \\[split-window-below] preserves point in the new window.
+If nil, adjust point in the two windows to minimize redisplay.
+This option applies only to `split-window-below' and functions
+that call it.  The low-level `split-window' function always keeps
+the original point in both windows."
   :type 'boolean
   :group 'windows)
 
-(defun split-window-above-each-other (&optional size)
-  "Split selected window into two windows, one above the other.
-The upper window gets SIZE lines and the lower one gets the rest.
-SIZE negative means the lower window gets -SIZE lines and the
-upper one the rest.  With no argument, split windows equally or
-close to it.  Both windows display the same buffer, now current.
-
-If the variable `split-window-keep-point' is non-nil, both new
-windows will get the same value of point as the selected window.
-This is often more convenient for editing.  The upper window is
-the selected window.
-
-Otherwise, we choose window starts so as to minimize the amount of
-redisplay; this is convenient on slow terminals.  The new selected
-window is the one that the current value of point appears in.  The
-value of point can change if the text around point is hidden by the
-new mode line.
-
-Regardless of the value of `split-window-keep-point', the upper
-window is the original one and the return value is the new, lower
-window."
+(defun split-window-below (&optional size)
+  "Split the selected window into two windows, one above the other.
+The selected window is above.  The newly split-off window is
+below, and displays the same buffer.  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.
+
+If the variable `split-window-keep-point' is non-nil, both
+windows get the same value of point as the selected window.
+Otherwise, the window starts are chosen so as to minimize the
+amount of redisplay; this is convenient on slow terminals."
   (interactive "P")
   (let ((old-window (selected-window))
        (old-point (point))
@@ -3328,19 +3317,21 @@ window."
        (set-window-parameter new-window 'quit-restore quit-restore)))
     new-window))
 
-(defalias 'split-window-vertically 'split-window-above-each-other)
+(defalias 'split-window-vertically 'split-window-below)
 
-(defun split-window-side-by-side (&optional size)
-  "Split selected window into two windows side by side.
-The selected window becomes the left one and gets SIZE columns.
-SIZE negative means the right window gets -SIZE columns.
-
-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.  SIZE omitted or nil means split
-window equally.
+(defun split-window-right (&optional size)
+  "Split the selected window into two side-by-side windows.
+The selected window is on the left.  The newly split-off window
+is on the right, and displays the same buffer.  Return the new
+window.
 
-The selected window remains selected.  Return the new window."
+If optional argument SIZE is omitted or nil, both windows get the
+same width, or close to it.  If SIZE is positive, the left-hand
+\(selected) window gets SIZE columns.  If SIZE is negative, the
+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."
   (interactive "P")
   (let ((old-window (selected-window))
        (size (and size (prefix-numeric-value size)))
@@ -3355,7 +3346,7 @@ The selected window remains selected.  Return the new window."
        (set-window-parameter new-window 'quit-restore quit-restore)))
     new-window))
 
-(defalias 'split-window-horizontally 'split-window-side-by-side)
+(defalias 'split-window-horizontally 'split-window-right)
 \f
 ;;; Balancing windows.
 
@@ -4431,11 +4422,11 @@ split."
   (or (and (window-splittable-p window)
           ;; Split window vertically.
           (with-selected-window window
-            (split-window-vertically)))
+            (split-window-below)))
       (and (window-splittable-p window t)
           ;; Split window horizontally.
           (with-selected-window window
-            (split-window-horizontally)))
+            (split-window-right)))
       (and (eq window (frame-root-window (window-frame window)))
           (not (window-minibuffer-p window))
           ;; If WINDOW is the only window on its frame and is not the
@@ -4444,7 +4435,7 @@ split."
           (let ((split-height-threshold 0))
             (when (window-splittable-p window)
               (with-selected-window window
-                (split-window-vertically)))))))
+                (split-window-below)))))))
 
 (defun window--try-to-split-window (window)
   "Try to split WINDOW.
@@ -5741,8 +5732,8 @@ Otherwise, consult the value of `truncate-partial-width-windows'
 ;; change these.
 (define-key ctl-x-map "0" 'delete-window)
 (define-key ctl-x-map "1" 'delete-other-windows)
-(define-key ctl-x-map "2" 'split-window-above-each-other)
-(define-key ctl-x-map "3" 'split-window-side-by-side)
+(define-key ctl-x-map "2" 'split-window-below)
+(define-key ctl-x-map "3" 'split-window-right)
 (define-key ctl-x-map "o" 'other-window)
 (define-key ctl-x-map "^" 'enlarge-window)
 (define-key ctl-x-map "}" 'enlarge-window-horizontally)