diff options
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 30 | ||||
| -rw-r--r-- | lisp/bs.el | 3 | ||||
| -rw-r--r-- | lisp/calculator.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 4 | ||||
| -rw-r--r-- | lisp/dired-x.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/crisp.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/edt.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/vip.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/ws-mode.el | 8 | ||||
| -rw-r--r-- | lisp/follow.el | 4 | ||||
| -rw-r--r-- | lisp/image-dired.el | 5 | ||||
| -rw-r--r-- | lisp/isearch.el | 6 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 4 | ||||
| -rw-r--r-- | lisp/net/newst-treeview.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/fortran.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 6 | ||||
| -rw-r--r-- | lisp/talk.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-toc.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/two-column.el | 2 | ||||
| -rw-r--r-- | lisp/tutorial.el | 2 | ||||
| -rw-r--r-- | lisp/vc/emerge.el | 6 | ||||
| -rw-r--r-- | lisp/vc/pcvs-util.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 85 |
27 files changed, 114 insertions, 91 deletions
| @@ -1101,8 +1101,8 @@ selected window, signaling an error otherwise. If nil, another window | |||
| 1101 | can be used, e.g. if the selected one is strongly dedicated. | 1101 | can be used, e.g. if the selected one is strongly dedicated. |
| 1102 | 1102 | ||
| 1103 | *** `split-window-vertically' and `split-window-horizontally' renamed | 1103 | *** `split-window-vertically' and `split-window-horizontally' renamed |
| 1104 | to `split-window-above-each-other' and `split-window-side-by-side' | 1104 | to `split-window-below' and `split-window-right' respectively. |
| 1105 | respectively. The old names are kept as aliases. | 1105 | The old names are kept as aliases. |
| 1106 | 1106 | ||
| 1107 | *** Display actions | 1107 | *** Display actions |
| 1108 | 1108 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8309d3256bf..614094aa334 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2011-10-30 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * window.el (split-window-below, split-window-right): Rename from | ||
| 4 | split-window-above-each-other and split-window-side-by-side | ||
| 5 | respectively. All callers changed. | ||
| 6 | (split-window-sensibly, split-window-sensibly): Use them. | ||
| 7 | (split-window-keep-point): Doc fix. | ||
| 8 | |||
| 9 | * isearch.el: Add isearch-scroll property to split-window-below | ||
| 10 | and split-window-right. | ||
| 11 | |||
| 12 | * follow.el (follow-mode): | ||
| 13 | * vc/pcvs-util.el (cvs-pop-to-buffer-same-frame): | ||
| 14 | * progmodes/ada-xref.el (ada-gdb-application): | ||
| 15 | * emulation/vip.el (vip-buffer-in-two-windows): | ||
| 16 | * image-dired.el (image-dired-dired-with-window-configuration): | ||
| 17 | * dired-x.el (dired-do-find-marked-files): | ||
| 18 | * dired.el (dired-pop-to-buffer): | ||
| 19 | * bs.el (bs--show-with-configuration): | ||
| 20 | * vc/emerge.el (emerge-setup-windows): | ||
| 21 | * textmodes/two-column.el (2C-two-columns): | ||
| 22 | * textmodes/reftex-toc.el (reftex-toc): | ||
| 23 | * progmodes/gdb-mi.el (gdb-setup-windows): | ||
| 24 | * progmodes/fortran.el (fortran-window-create): | ||
| 25 | * net/newst-treeview.el (newsticker--treeview-window-init): | ||
| 26 | * emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode): | ||
| 27 | * emulation/tpu-edt.el (tpu-gold-map): | ||
| 28 | * emulation/crisp.el (crisp-mode-map): | ||
| 29 | * calendar/calendar.el (calendar-basic-setup): Callers changed. | ||
| 30 | |||
| 1 | 2011-10-29 Chong Yidong <cyd@gnu.org> | 31 | 2011-10-29 Chong Yidong <cyd@gnu.org> |
| 2 | 32 | ||
| 3 | * subr.el (y-or-n-p): Add code for batch mode (Bug#9818). | 33 | * subr.el (y-or-n-p): Add code for batch mode (Bug#9818). |
diff --git a/lisp/bs.el b/lisp/bs.el index 49ffb3f822c..0c32c8b4f19 100644 --- a/lisp/bs.el +++ b/lisp/bs.el | |||
| @@ -1414,8 +1414,7 @@ for buffer selection." | |||
| 1414 | (bs--restore-window-config) | 1414 | (bs--restore-window-config) |
| 1415 | (setq bs--window-config-coming-from (current-window-configuration)) | 1415 | (setq bs--window-config-coming-from (current-window-configuration)) |
| 1416 | (when (> (window-height (selected-window)) 7) | 1416 | (when (> (window-height (selected-window)) 7) |
| 1417 | (split-window-vertically) | 1417 | (select-window (split-window-below)))) |
| 1418 | (other-window 1))) | ||
| 1419 | (bs-show-in-buffer liste) | 1418 | (bs-show-in-buffer liste) |
| 1420 | (bs-message-without-log "%s" (bs--current-config-message))))) | 1419 | (bs-message-without-log "%s" (bs--current-config-message))))) |
| 1421 | 1420 | ||
diff --git a/lisp/calculator.el b/lisp/calculator.el index 2cc7f5f6569..4a79316d736 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -720,7 +720,7 @@ See the documentation for `calculator-mode' for more information." | |||
| 720 | ;; maybe leave two lines for our window because of the normal | 720 | ;; maybe leave two lines for our window because of the normal |
| 721 | ;; `raised' modeline in Emacs 21 | 721 | ;; `raised' modeline in Emacs 21 |
| 722 | (select-window | 722 | (select-window |
| 723 | (split-window-vertically | 723 | (split-window-below |
| 724 | ;; If the modeline might interfere with the calculator buffer, | 724 | ;; If the modeline might interfere with the calculator buffer, |
| 725 | ;; use 3 lines instead. | 725 | ;; use 3 lines instead. |
| 726 | (if (and (fboundp 'face-attr-construct) | 726 | (if (and (fboundp 'face-attr-construct) |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 2c38101588c..6fa924dd788 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1330,12 +1330,12 @@ display the generated calendar." | |||
| 1330 | ;; the right thing in that case. | 1330 | ;; the right thing in that case. |
| 1331 | ;; | 1331 | ;; |
| 1332 | ;; Is this a wide frame? If so, split it horizontally. | 1332 | ;; Is this a wide frame? If so, split it horizontally. |
| 1333 | (if (window-splittable-p t) (split-window-horizontally)) | 1333 | (if (window-splittable-p t) (split-window-right)) |
| 1334 | (pop-to-buffer calendar-buffer) | 1334 | (pop-to-buffer calendar-buffer) |
| 1335 | ;; Has the window already been split vertically? | 1335 | ;; Has the window already been split vertically? |
| 1336 | (when (and (not (window-dedicated-p)) | 1336 | (when (and (not (window-dedicated-p)) |
| 1337 | (window-full-height-p)) | 1337 | (window-full-height-p)) |
| 1338 | (let ((win (split-window-vertically))) | 1338 | (let ((win (split-window-below))) |
| 1339 | ;; In the upper window, show whatever was visible before. | 1339 | ;; In the upper window, show whatever was visible before. |
| 1340 | ;; This looks better than using other-buffer. | 1340 | ;; This looks better than using other-buffer. |
| 1341 | (switch-to-buffer buff) | 1341 | (switch-to-buffer buff) |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index aaddc479b2a..4daf313445c 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1259,7 +1259,7 @@ Remaining lines go to bottom-most window. The number of files that can be | |||
| 1259 | displayed this way is restricted by the height of the current window and | 1259 | displayed this way is restricted by the height of the current window and |
| 1260 | `window-min-height'. | 1260 | `window-min-height'. |
| 1261 | 1261 | ||
| 1262 | To keep dired buffer displayed, type \\[split-window-vertically] first. | 1262 | To keep dired buffer displayed, type \\[split-window-below] first. |
| 1263 | To display just marked files, type \\[delete-other-windows] first." | 1263 | To display just marked files, type \\[delete-other-windows] first." |
| 1264 | (interactive "P") | 1264 | (interactive "P") |
| 1265 | (dired-simultaneous-find-file (dired-get-marked-files) noselect)) | 1265 | (dired-simultaneous-find-file (dired-get-marked-files) noselect)) |
diff --git a/lisp/dired.el b/lisp/dired.el index 3ff86869a78..4e03d61a06e 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2879,7 +2879,7 @@ or \"* [3 files]\"." | |||
| 2879 | (window-splittable-p (selected-window))) | 2879 | (window-splittable-p (selected-window))) |
| 2880 | ;; Try to split the selected window vertically if | 2880 | ;; Try to split the selected window vertically if |
| 2881 | ;; that's possible. (Bug#1806) | 2881 | ;; that's possible. (Bug#1806) |
| 2882 | (split-window-vertically)) | 2882 | (split-window-below)) |
| 2883 | ;; Otherwise, try to split WINDOW sensibly. | 2883 | ;; Otherwise, try to split WINDOW sensibly. |
| 2884 | (split-window-sensibly window)))) | 2884 | (split-window-sensibly window)))) |
| 2885 | pop-up-frames) | 2885 | pop-up-frames) |
| @@ -4128,7 +4128,7 @@ instead. | |||
| 4128 | ;;;*** | 4128 | ;;;*** |
| 4129 | 4129 | ||
| 4130 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) | 4130 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) |
| 4131 | ;;;;;; "dired-x" "dired-x.el" "0a19e4cb2cadf007be715af1035c9c36") | 4131 | ;;;;;; "dired-x" "dired-x.el" "ea7c74fbb7dddf43bb85875018cb59ad") |
| 4132 | ;;; Generated autoloads from dired-x.el | 4132 | ;;; Generated autoloads from dired-x.el |
| 4133 | 4133 | ||
| 4134 | (autoload 'dired-jump "dired-x" "\ | 4134 | (autoload 'dired-jump "dired-x" "\ |
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el index 567a57949b3..010e32857c5 100644 --- a/lisp/emulation/crisp.el +++ b/lisp/emulation/crisp.el | |||
| @@ -71,8 +71,8 @@ | |||
| 71 | (define-key map [(f2) (left)] 'shrink-window-horizontally) | 71 | (define-key map [(f2) (left)] 'shrink-window-horizontally) |
| 72 | (define-key map [(f2) (right)] 'enlarge-window-horizontally) | 72 | (define-key map [(f2) (right)] 'enlarge-window-horizontally) |
| 73 | (define-key map [(f2) (up)] 'shrink-window) | 73 | (define-key map [(f2) (up)] 'shrink-window) |
| 74 | (define-key map [(f3) (down)] 'split-window-vertically) | 74 | (define-key map [(f3) (down)] 'split-window-below) |
| 75 | (define-key map [(f3) (right)] 'split-window-horizontally) | 75 | (define-key map [(f3) (right)] 'split-window-right) |
| 76 | 76 | ||
| 77 | (define-key map [(f4)] 'delete-window) | 77 | (define-key map [(f4)] 'delete-window) |
| 78 | (define-key map [(control f4)] 'delete-other-windows) | 78 | (define-key map [(control f4)] 'delete-other-windows) |
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 68550cc30e2..7ed0255d987 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -2362,7 +2362,7 @@ Argument GOLD-BINDING is the Emacs function to be bound to GOLD <KEY>." | |||
| 2362 | (edt-bind-gold-key-default "\C-h" 'help-for-help); Just in case. | 2362 | (edt-bind-gold-key-default "\C-h" 'help-for-help); Just in case. |
| 2363 | (edt-bind-gold-key-default [f1] 'help-for-help) | 2363 | (edt-bind-gold-key-default [f1] 'help-for-help) |
| 2364 | (edt-bind-gold-key-default [help] 'help-for-help) | 2364 | (edt-bind-gold-key-default [help] 'help-for-help) |
| 2365 | (edt-bind-gold-key-default "\C-\\" 'split-window-vertically) | 2365 | (edt-bind-gold-key-default "\C-\\" 'split-window-below) |
| 2366 | 2366 | ||
| 2367 | ;; GOLD bindings for regular keys. | 2367 | ;; GOLD bindings for regular keys. |
| 2368 | (edt-bind-gold-key-default "a" 'edt-key-not-assigned) | 2368 | (edt-bind-gold-key-default "a" 'edt-key-not-assigned) |
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index b4bf47a6504..e2ad5d81d27 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el | |||
| @@ -459,7 +459,7 @@ Otherwise, use `spell-region'." | |||
| 459 | ;; (define-key map "\\" nil) ; \ | 459 | ;; (define-key map "\\" nil) ; \ |
| 460 | (define-key map "]" 'blink-matching-open) ; ] | 460 | (define-key map "]" 'blink-matching-open) ; ] |
| 461 | (define-key map "^" 'tpu-add-at-bol) ; ^ | 461 | (define-key map "^" 'tpu-add-at-bol) ; ^ |
| 462 | (define-key map "_" 'split-window-vertically) ; - | 462 | (define-key map "_" 'split-window-below) ; - |
| 463 | (define-key map "`" 'what-line) ; ` | 463 | (define-key map "`" 'what-line) ; ` |
| 464 | (define-key map "a" 'tpu-toggle-newline-and-indent) ; a | 464 | (define-key map "a" 'tpu-toggle-newline-and-indent) ; a |
| 465 | (define-key map "b" 'tpu-next-buffer) ; b | 465 | (define-key map "b" 'tpu-next-buffer) ; b |
| @@ -487,7 +487,7 @@ Otherwise, use `spell-region'." | |||
| 487 | (define-key map "y" 'copy-region-as-kill) ; y | 487 | (define-key map "y" 'copy-region-as-kill) ; y |
| 488 | (define-key map "z" 'suspend-emacs) ; z | 488 | (define-key map "z" 'suspend-emacs) ; z |
| 489 | ;; (define-key map "{" nil) ; { | 489 | ;; (define-key map "{" nil) ; { |
| 490 | (define-key map "|" 'split-window-horizontally) ; | | 490 | (define-key map "|" 'split-window-right) ; | |
| 491 | ;; (define-key map "}" nil) ; } | 491 | ;; (define-key map "}" nil) ; } |
| 492 | (define-key map "~" 'exchange-point-and-mark) ; ~ | 492 | (define-key map "~" 'exchange-point-and-mark) ; ~ |
| 493 | (define-key map "\177" 'delete-window) ; <X] | 493 | (define-key map "\177" 'delete-window) ; <X] |
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el index 6f4f0ce80ec..a0c6062fb29 100644 --- a/lisp/emulation/vip.el +++ b/lisp/emulation/vip.el | |||
| @@ -1605,7 +1605,7 @@ used. This behavior is controlled by the sign of prefix numeric value." | |||
| 1605 | "Show current buffer in two windows." | 1605 | "Show current buffer in two windows." |
| 1606 | (interactive) | 1606 | (interactive) |
| 1607 | (delete-other-windows) | 1607 | (delete-other-windows) |
| 1608 | (split-window-vertically nil)) | 1608 | (split-window-below)) |
| 1609 | 1609 | ||
| 1610 | 1610 | ||
| 1611 | ;; searching | 1611 | ;; searching |
diff --git a/lisp/emulation/ws-mode.el b/lisp/emulation/ws-mode.el index 3a205c7c4f0..886b4d6d4c4 100644 --- a/lisp/emulation/ws-mode.el +++ b/lisp/emulation/ws-mode.el | |||
| @@ -95,9 +95,9 @@ | |||
| 95 | (define-key map "\C-r" 'set-fill-column) | 95 | (define-key map "\C-r" 'set-fill-column) |
| 96 | (define-key map "\C-u" 'keyboard-quit) | 96 | (define-key map "\C-u" 'keyboard-quit) |
| 97 | (define-key map "wd" 'delete-other-windows) | 97 | (define-key map "wd" 'delete-other-windows) |
| 98 | (define-key map "wh" 'split-window-horizontally) | 98 | (define-key map "wh" 'split-window-right) |
| 99 | (define-key map "wo" 'other-window) | 99 | (define-key map "wo" 'other-window) |
| 100 | (define-key map "wv" 'split-window-vertically) | 100 | (define-key map "wv" 'split-window-below) |
| 101 | map) | 101 | map) |
| 102 | "") | 102 | "") |
| 103 | 103 | ||
| @@ -257,9 +257,9 @@ The key bindings are: | |||
| 257 | C-o r set-fill-column | 257 | C-o r set-fill-column |
| 258 | C-o C-u keyboard-quit | 258 | C-o C-u keyboard-quit |
| 259 | C-o wd delete-other-windows | 259 | C-o wd delete-other-windows |
| 260 | C-o wh split-window-horizontally | 260 | C-o wh split-window-right |
| 261 | C-o wo other-window | 261 | C-o wo other-window |
| 262 | C-o wv split-window-vertically | 262 | C-o wv split-window-below |
| 263 | 263 | ||
| 264 | C-q 0 ws-find-marker-0 | 264 | C-q 0 ws-find-marker-0 |
| 265 | C-q 1 ws-find-marker-1 | 265 | C-q 1 ws-find-marker-1 |
diff --git a/lisp/follow.el b/lisp/follow.el index 37295cc533b..b387427a47f 100644 --- a/lisp/follow.el +++ b/lisp/follow.el | |||
| @@ -509,7 +509,7 @@ and being able to use 144 lines instead of the normal 72... (your | |||
| 509 | mileage may vary). | 509 | mileage may vary). |
| 510 | 510 | ||
| 511 | To split one large window into two side-by-side windows, the commands | 511 | To split one large window into two side-by-side windows, the commands |
| 512 | `\\[split-window-horizontally]' or \ | 512 | `\\[split-window-right]' or \ |
| 513 | `M-x follow-delete-other-windows-and-split' can be used. | 513 | `M-x follow-delete-other-windows-and-split' can be used. |
| 514 | 514 | ||
| 515 | Only windows displayed in the same frame follow each other. | 515 | Only windows displayed in the same frame follow each other. |
| @@ -662,7 +662,7 @@ in your `~/.emacs' file, replacing [f7] by your favourite key: | |||
| 662 | (< (prefix-numeric-value arg) 0)))) | 662 | (< (prefix-numeric-value arg) 0)))) |
| 663 | (start (window-start))) | 663 | (start (window-start))) |
| 664 | (delete-other-windows) | 664 | (delete-other-windows) |
| 665 | (split-window-horizontally) | 665 | (split-window-right) |
| 666 | (if other | 666 | (if other |
| 667 | (progn | 667 | (progn |
| 668 | (other-window 1) | 668 | (other-window 1) |
diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 5477d01379d..8c151d35ed2 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el | |||
| @@ -782,13 +782,12 @@ calling `image-dired-restore-window-configuration'." | |||
| 782 | (dired dir) | 782 | (dired dir) |
| 783 | (delete-other-windows) | 783 | (delete-other-windows) |
| 784 | (when (not arg) | 784 | (when (not arg) |
| 785 | (split-window-horizontally) | 785 | (split-window-right) |
| 786 | (setq truncate-lines t) | 786 | (setq truncate-lines t) |
| 787 | (save-excursion | 787 | (save-excursion |
| 788 | (other-window 1) | 788 | (other-window 1) |
| 789 | (switch-to-buffer buf) | 789 | (switch-to-buffer buf) |
| 790 | (split-window-vertically) | 790 | (select-window (split-window-below)) |
| 791 | (other-window 1) | ||
| 792 | (switch-to-buffer buf2) | 791 | (switch-to-buffer buf2) |
| 793 | (other-window -2))))) | 792 | (other-window -2))))) |
| 794 | 793 | ||
diff --git a/lisp/isearch.el b/lisp/isearch.el index 6bb23916da3..3ffe6e8a656 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1804,9 +1804,13 @@ Scroll-bar or mode-line events are processed appropriately." | |||
| 1804 | ;; Commands which change the window layout | 1804 | ;; Commands which change the window layout |
| 1805 | (put 'delete-other-windows 'isearch-scroll t) | 1805 | (put 'delete-other-windows 'isearch-scroll t) |
| 1806 | (put 'balance-windows 'isearch-scroll t) | 1806 | (put 'balance-windows 'isearch-scroll t) |
| 1807 | (put 'split-window-right 'isearch-scroll t) | ||
| 1808 | (put 'split-window-below 'isearch-scroll t) | ||
| 1809 | (put 'enlarge-window 'isearch-scroll t) | ||
| 1810 | |||
| 1811 | ;; Aliases for split-window-* | ||
| 1807 | (put 'split-window-vertically 'isearch-scroll t) | 1812 | (put 'split-window-vertically 'isearch-scroll t) |
| 1808 | (put 'split-window-horizontally 'isearch-scroll t) | 1813 | (put 'split-window-horizontally 'isearch-scroll t) |
| 1809 | (put 'enlarge-window 'isearch-scroll t) | ||
| 1810 | 1814 | ||
| 1811 | ;; Universal argument commands | 1815 | ;; Universal argument commands |
| 1812 | (put 'universal-argument 'isearch-scroll t) | 1816 | (put 'universal-argument 'isearch-scroll t) |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 75a2d70da5e..23947795112 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -101,13 +101,13 @@ | |||
| 101 | :help ,(purecopy "Make selected window fill whole frame"))) | 101 | :help ,(purecopy "Make selected window fill whole frame"))) |
| 102 | 102 | ||
| 103 | (define-key menu [new-window-on-right] | 103 | (define-key menu [new-window-on-right] |
| 104 | `(menu-item ,(purecopy "New Window on Right") split-window-side-by-side | 104 | `(menu-item ,(purecopy "New Window on Right") split-window-right |
| 105 | :enable (and (menu-bar-menu-frame-live-and-visible-p) | 105 | :enable (and (menu-bar-menu-frame-live-and-visible-p) |
| 106 | (menu-bar-non-minibuffer-window-p)) | 106 | (menu-bar-non-minibuffer-window-p)) |
| 107 | :help ,(purecopy "Make new window on right of selected one"))) | 107 | :help ,(purecopy "Make new window on right of selected one"))) |
| 108 | 108 | ||
| 109 | (define-key menu [new-window-below] | 109 | (define-key menu [new-window-below] |
| 110 | `(menu-item ,(purecopy "New Window Below") split-window-above-each-other | 110 | `(menu-item ,(purecopy "New Window Below") split-window-below |
| 111 | :enable (and (menu-bar-menu-frame-live-and-visible-p) | 111 | :enable (and (menu-bar-menu-frame-live-and-visible-p) |
| 112 | (menu-bar-non-minibuffer-window-p)) | 112 | (menu-bar-non-minibuffer-window-p)) |
| 113 | :help ,(purecopy "Make new window below selected one"))) | 113 | :help ,(purecopy "Make new window below selected one"))) |
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el index 37b31130e8b..26dddffb6ed 100644 --- a/lisp/net/newst-treeview.el +++ b/lisp/net/newst-treeview.el | |||
| @@ -2018,10 +2018,10 @@ POS gives the position where EVENT occurred." | |||
| 2018 | (setq newsticker--treeview-windows nil) | 2018 | (setq newsticker--treeview-windows nil) |
| 2019 | (setq newsticker--treeview-buffers nil) | 2019 | (setq newsticker--treeview-buffers nil) |
| 2020 | (delete-other-windows) | 2020 | (delete-other-windows) |
| 2021 | (split-window-horizontally newsticker-treeview-treewindow-width) | 2021 | (split-window-right newsticker-treeview-treewindow-width) |
| 2022 | (add-to-list 'newsticker--treeview-windows (selected-window) t) | 2022 | (add-to-list 'newsticker--treeview-windows (selected-window) t) |
| 2023 | (other-window 1) | 2023 | (other-window 1) |
| 2024 | (split-window-vertically newsticker-treeview-listwindow-height) | 2024 | (split-window-below newsticker-treeview-listwindow-height) |
| 2025 | (add-to-list 'newsticker--treeview-windows (selected-window) t) | 2025 | (add-to-list 'newsticker--treeview-windows (selected-window) t) |
| 2026 | (other-window 1) | 2026 | (other-window 1) |
| 2027 | (add-to-list 'newsticker--treeview-windows (selected-window) t) | 2027 | (add-to-list 'newsticker--treeview-windows (selected-window) t) |
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index 7751f3e98fc..4a57a1eef67 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -1438,7 +1438,7 @@ project file." | |||
| 1438 | ;; is going to have some relevant information. | 1438 | ;; is going to have some relevant information. |
| 1439 | (if (or (not (string-match "gvd" (comint-arguments cmd 0 0))) | 1439 | (if (or (not (string-match "gvd" (comint-arguments cmd 0 0))) |
| 1440 | (string-match "--tty" cmd)) | 1440 | (string-match "--tty" cmd)) |
| 1441 | (split-window-vertically)) | 1441 | (split-window-below)) |
| 1442 | (switch-to-buffer buffer) | 1442 | (switch-to-buffer buffer) |
| 1443 | ))) | 1443 | ))) |
| 1444 | 1444 | ||
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index d30b9673d09..fd3d42685f0 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -1097,7 +1097,7 @@ See also `fortran-window-create-momentarily'." | |||
| 1097 | (scroll-bar-width (- (nth 2 window-edges) | 1097 | (scroll-bar-width (- (nth 2 window-edges) |
| 1098 | (car window-edges) | 1098 | (car window-edges) |
| 1099 | (window-width)))) | 1099 | (window-width)))) |
| 1100 | (split-window-horizontally (+ fortran-line-length scroll-bar-width))) | 1100 | (split-window-right (+ fortran-line-length scroll-bar-width))) |
| 1101 | (other-window 1) | 1101 | (other-window 1) |
| 1102 | (switch-to-buffer " fortran-window-extra" t) | 1102 | (switch-to-buffer " fortran-window-extra" t) |
| 1103 | (select-window (previous-window)))) | 1103 | (select-window (previous-window)))) |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index dde00d753ac..f9ddabf1552 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -4028,7 +4028,7 @@ window is dedicated." | |||
| 4028 | (let ((win0 (selected-window)) | 4028 | (let ((win0 (selected-window)) |
| 4029 | (win1 (split-window nil ( / ( * (window-height) 3) 4))) | 4029 | (win1 (split-window nil ( / ( * (window-height) 3) 4))) |
| 4030 | (win2 (split-window nil ( / (window-height) 3))) | 4030 | (win2 (split-window nil ( / (window-height) 3))) |
| 4031 | (win3 (split-window-horizontally))) | 4031 | (win3 (split-window-right))) |
| 4032 | (gdb-set-window-buffer (gdb-locals-buffer-name) nil win3) | 4032 | (gdb-set-window-buffer (gdb-locals-buffer-name) nil win3) |
| 4033 | (select-window win2) | 4033 | (select-window win2) |
| 4034 | (set-window-buffer | 4034 | (set-window-buffer |
| @@ -4041,12 +4041,12 @@ window is dedicated." | |||
| 4041 | ;; can't find a source file. | 4041 | ;; can't find a source file. |
| 4042 | (list-buffers-noselect)))) | 4042 | (list-buffers-noselect)))) |
| 4043 | (setq gdb-source-window (selected-window)) | 4043 | (setq gdb-source-window (selected-window)) |
| 4044 | (let ((win4 (split-window-horizontally))) | 4044 | (let ((win4 (split-window-right))) |
| 4045 | (gdb-set-window-buffer | 4045 | (gdb-set-window-buffer |
| 4046 | (gdb-get-buffer-create 'gdb-inferior-io) nil win4)) | 4046 | (gdb-get-buffer-create 'gdb-inferior-io) nil win4)) |
| 4047 | (select-window win1) | 4047 | (select-window win1) |
| 4048 | (gdb-set-window-buffer (gdb-stack-buffer-name)) | 4048 | (gdb-set-window-buffer (gdb-stack-buffer-name)) |
| 4049 | (let ((win5 (split-window-horizontally))) | 4049 | (let ((win5 (split-window-right))) |
| 4050 | (gdb-set-window-buffer (if gdb-show-threads-by-default | 4050 | (gdb-set-window-buffer (if gdb-show-threads-by-default |
| 4051 | (gdb-threads-buffer-name) | 4051 | (gdb-threads-buffer-name) |
| 4052 | (gdb-breakpoints-buffer-name)) | 4052 | (gdb-breakpoints-buffer-name)) |
diff --git a/lisp/talk.el b/lisp/talk.el index c16255f7742..98c7f6d31ca 100644 --- a/lisp/talk.el +++ b/lisp/talk.el | |||
| @@ -111,7 +111,7 @@ Select the first of these windows, displaying the first of the buffers." | |||
| 111 | (while (progn | 111 | (while (progn |
| 112 | (switch-to-buffer (car buffers)) | 112 | (switch-to-buffer (car buffers)) |
| 113 | (setq buffers (cdr buffers))) | 113 | (setq buffers (cdr buffers))) |
| 114 | (split-window-vertically lines-per-buffer) | 114 | (split-window-below lines-per-buffer) |
| 115 | (other-window 1)) | 115 | (other-window 1)) |
| 116 | (select-window (frame-first-window frame))) | 116 | (select-window (frame-first-window frame))) |
| 117 | (select-frame old-frame)))) | 117 | (select-frame old-frame)))) |
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index 5d691f456f7..37983d17931 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el | |||
| @@ -247,10 +247,10 @@ When called with a raw C-u prefix, rescan the document first." | |||
| 247 | 247 | ||
| 248 | (unless unsplittable | 248 | (unless unsplittable |
| 249 | (if reftex-toc-split-windows-horizontally | 249 | (if reftex-toc-split-windows-horizontally |
| 250 | (split-window-horizontally | 250 | (split-window-right |
| 251 | (floor (* (window-width) | 251 | (floor (* (window-width) |
| 252 | reftex-toc-split-windows-fraction))) | 252 | reftex-toc-split-windows-fraction))) |
| 253 | (split-window-vertically | 253 | (split-window-below |
| 254 | (floor (* (window-height) | 254 | (floor (* (window-height) |
| 255 | reftex-toc-split-windows-fraction))))) | 255 | reftex-toc-split-windows-fraction))))) |
| 256 | 256 | ||
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index 68b858162df..de9ac10d0e9 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el | |||
| @@ -333,7 +333,7 @@ first and the associated buffer to its right." | |||
| 333 | ;; first go to full width, so that we can certainly split into two windows | 333 | ;; first go to full width, so that we can certainly split into two windows |
| 334 | (unless (window-full-width-p) | 334 | (unless (window-full-width-p) |
| 335 | (enlarge-window 99999 t)) | 335 | (enlarge-window 99999 t)) |
| 336 | (split-window-horizontally | 336 | (split-window-right |
| 337 | (max window-min-width (min 2C-window-width | 337 | (max window-min-width (min 2C-window-width |
| 338 | (- (frame-width) window-min-width)))) | 338 | (- (frame-width) window-min-width)))) |
| 339 | (if (2C-other) | 339 | (if (2C-other) |
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index c57ec33d2e2..be1a12b499b 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el | |||
| @@ -298,7 +298,7 @@ LEFT and RIGHT are the elements to compare." | |||
| 298 | (isearch-backward [?\C-r]) | 298 | (isearch-backward [?\C-r]) |
| 299 | 299 | ||
| 300 | ;; * MULTIPLE WINDOWS | 300 | ;; * MULTIPLE WINDOWS |
| 301 | (split-window-above-each-other [?\C-x ?2]) | 301 | (split-window-below [?\C-x ?2]) |
| 302 | (scroll-other-window [?\C-\M-v]) | 302 | (scroll-other-window [?\C-\M-v]) |
| 303 | (other-window [?\C-x ?o]) | 303 | (other-window [?\C-x ?o]) |
| 304 | (find-file-other-window [?\C-x ?4 ?\C-f]) | 304 | (find-file-other-window [?\C-x ?4 ?\C-f]) |
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el index 5435a840ac9..3ba5bcdb90a 100644 --- a/lisp/vc/emerge.el +++ b/lisp/vc/emerge.el | |||
| @@ -1354,8 +1354,8 @@ Otherwise, the A or B file present is copied to the output file." | |||
| 1354 | (delete-other-windows) | 1354 | (delete-other-windows) |
| 1355 | (switch-to-buffer merge-buffer) | 1355 | (switch-to-buffer merge-buffer) |
| 1356 | (emerge-refresh-mode-line) | 1356 | (emerge-refresh-mode-line) |
| 1357 | (split-window-vertically) | 1357 | (split-window-below) |
| 1358 | (split-window-horizontally) | 1358 | (split-window-right) |
| 1359 | (switch-to-buffer buffer-A) | 1359 | (switch-to-buffer buffer-A) |
| 1360 | (if pos | 1360 | (if pos |
| 1361 | (goto-char (point-min))) | 1361 | (goto-char (point-min))) |
| @@ -2121,7 +2121,7 @@ Use C-u l to reset the windows afterward." | |||
| 2121 | (delete-other-windows) | 2121 | (delete-other-windows) |
| 2122 | (let ((temp-buffer-show-function | 2122 | (let ((temp-buffer-show-function |
| 2123 | (lambda (buf) | 2123 | (lambda (buf) |
| 2124 | (split-window-vertically) | 2124 | (split-window-below) |
| 2125 | (switch-to-buffer buf) | 2125 | (switch-to-buffer buf) |
| 2126 | (other-window 1)))) | 2126 | (other-window 1)))) |
| 2127 | (with-output-to-temp-buffer "*Help*" | 2127 | (with-output-to-temp-buffer "*Help*" |
diff --git a/lisp/vc/pcvs-util.el b/lisp/vc/pcvs-util.el index 752016a0392..311841d37a0 100644 --- a/lisp/vc/pcvs-util.el +++ b/lisp/vc/pcvs-util.el | |||
| @@ -88,7 +88,7 @@ try to split a new window instead." | |||
| 88 | (pop-up-frames nil)) | 88 | (pop-up-frames nil)) |
| 89 | (or (let ((buf (get-buffer-window buf))) (and buf (select-window buf))) | 89 | (or (let ((buf (get-buffer-window buf))) (and buf (select-window buf))) |
| 90 | (and pop-up-windows | 90 | (and pop-up-windows |
| 91 | (ignore-errors (select-window (split-window-vertically))) | 91 | (ignore-errors (select-window (split-window-below))) |
| 92 | (switch-to-buffer buf)) | 92 | (switch-to-buffer buf)) |
| 93 | (pop-to-buffer (current-buffer))))) | 93 | (pop-to-buffer (current-buffer))))) |
| 94 | 94 | ||
diff --git a/lisp/window.el b/lisp/window.el index 968f47f4f31..e9f3a779785 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -3262,39 +3262,28 @@ frame. The selected window is not changed by this function." | |||
| 3262 | 3262 | ||
| 3263 | ;; I think this should be the default; I think people will prefer it--rms. | 3263 | ;; I think this should be the default; I think people will prefer it--rms. |
| 3264 | (defcustom split-window-keep-point t | 3264 | (defcustom split-window-keep-point t |
| 3265 | "If non-nil, \\[split-window-above-each-other] keeps the original point \ | 3265 | "If non-nil, \\[split-window-below] preserves point in the new window. |
| 3266 | in both children. | 3266 | If nil, adjust point in the two windows to minimize redisplay. |
| 3267 | This is often more convenient for editing. | 3267 | This option applies only to `split-window-below' and functions |
| 3268 | If nil, adjust point in each of the two windows to minimize redisplay. | 3268 | that call it. The low-level `split-window' function always keeps |
| 3269 | This is convenient on slow terminals, but point can move strangely. | 3269 | the original point in both windows." |
| 3270 | |||
| 3271 | This option applies only to `split-window-above-each-other' and | ||
| 3272 | functions that call it. `split-window' always keeps the original | ||
| 3273 | point in both children." | ||
| 3274 | :type 'boolean | 3270 | :type 'boolean |
| 3275 | :group 'windows) | 3271 | :group 'windows) |
| 3276 | 3272 | ||
| 3277 | (defun split-window-above-each-other (&optional size) | 3273 | (defun split-window-below (&optional size) |
| 3278 | "Split selected window into two windows, one above the other. | 3274 | "Split the selected window into two windows, one above the other. |
| 3279 | The upper window gets SIZE lines and the lower one gets the rest. | 3275 | The selected window is above. The newly split-off window is |
| 3280 | SIZE negative means the lower window gets -SIZE lines and the | 3276 | below, and displays the same buffer. Return the new window. |
| 3281 | upper one the rest. With no argument, split windows equally or | 3277 | |
| 3282 | close to it. Both windows display the same buffer, now current. | 3278 | If optional argument SIZE is omitted or nil, both windows get the |
| 3283 | 3279 | same height, or close to it. If SIZE is positive, the upper | |
| 3284 | If the variable `split-window-keep-point' is non-nil, both new | 3280 | \(selected) window gets SIZE lines. If SIZE is negative, the |
| 3285 | windows will get the same value of point as the selected window. | 3281 | lower (new) window gets -SIZE lines. |
| 3286 | This is often more convenient for editing. The upper window is | 3282 | |
| 3287 | the selected window. | 3283 | If the variable `split-window-keep-point' is non-nil, both |
| 3288 | 3284 | windows get the same value of point as the selected window. | |
| 3289 | Otherwise, we choose window starts so as to minimize the amount of | 3285 | Otherwise, the window starts are chosen so as to minimize the |
| 3290 | redisplay; this is convenient on slow terminals. The new selected | 3286 | amount of redisplay; this is convenient on slow terminals." |
| 3291 | window is the one that the current value of point appears in. The | ||
| 3292 | value of point can change if the text around point is hidden by the | ||
| 3293 | new mode line. | ||
| 3294 | |||
| 3295 | Regardless of the value of `split-window-keep-point', the upper | ||
| 3296 | window is the original one and the return value is the new, lower | ||
| 3297 | window." | ||
| 3298 | (interactive "P") | 3287 | (interactive "P") |
| 3299 | (let ((old-window (selected-window)) | 3288 | (let ((old-window (selected-window)) |
| 3300 | (old-point (point)) | 3289 | (old-point (point)) |
| @@ -3328,19 +3317,21 @@ window." | |||
| 3328 | (set-window-parameter new-window 'quit-restore quit-restore))) | 3317 | (set-window-parameter new-window 'quit-restore quit-restore))) |
| 3329 | new-window)) | 3318 | new-window)) |
| 3330 | 3319 | ||
| 3331 | (defalias 'split-window-vertically 'split-window-above-each-other) | 3320 | (defalias 'split-window-vertically 'split-window-below) |
| 3332 | 3321 | ||
| 3333 | (defun split-window-side-by-side (&optional size) | 3322 | (defun split-window-right (&optional size) |
| 3334 | "Split selected window into two windows side by side. | 3323 | "Split the selected window into two side-by-side windows. |
| 3335 | The selected window becomes the left one and gets SIZE columns. | 3324 | The selected window is on the left. The newly split-off window |
| 3336 | SIZE negative means the right window gets -SIZE columns. | 3325 | is on the right, and displays the same buffer. Return the new |
| 3337 | 3326 | window. | |
| 3338 | SIZE includes the width of the window's scroll bar; if there are | ||
| 3339 | no scroll bars, it includes the width of the divider column to | ||
| 3340 | the window's right, if any. SIZE omitted or nil means split | ||
| 3341 | window equally. | ||
| 3342 | 3327 | ||
| 3343 | The selected window remains selected. Return the new window." | 3328 | If optional argument SIZE is omitted or nil, both windows get the |
| 3329 | same width, or close to it. If SIZE is positive, the left-hand | ||
| 3330 | \(selected) window gets SIZE columns. If SIZE is negative, the | ||
| 3331 | right-hand (new) window gets -SIZE columns. Here, SIZE includes | ||
| 3332 | the width of the window's scroll bar; if there are no scroll | ||
| 3333 | bars, it includes the width of the divider column to the window's | ||
| 3334 | right, if any." | ||
| 3344 | (interactive "P") | 3335 | (interactive "P") |
| 3345 | (let ((old-window (selected-window)) | 3336 | (let ((old-window (selected-window)) |
| 3346 | (size (and size (prefix-numeric-value size))) | 3337 | (size (and size (prefix-numeric-value size))) |
| @@ -3355,7 +3346,7 @@ The selected window remains selected. Return the new window." | |||
| 3355 | (set-window-parameter new-window 'quit-restore quit-restore))) | 3346 | (set-window-parameter new-window 'quit-restore quit-restore))) |
| 3356 | new-window)) | 3347 | new-window)) |
| 3357 | 3348 | ||
| 3358 | (defalias 'split-window-horizontally 'split-window-side-by-side) | 3349 | (defalias 'split-window-horizontally 'split-window-right) |
| 3359 | 3350 | ||
| 3360 | ;;; Balancing windows. | 3351 | ;;; Balancing windows. |
| 3361 | 3352 | ||
| @@ -4431,11 +4422,11 @@ split." | |||
| 4431 | (or (and (window-splittable-p window) | 4422 | (or (and (window-splittable-p window) |
| 4432 | ;; Split window vertically. | 4423 | ;; Split window vertically. |
| 4433 | (with-selected-window window | 4424 | (with-selected-window window |
| 4434 | (split-window-vertically))) | 4425 | (split-window-below))) |
| 4435 | (and (window-splittable-p window t) | 4426 | (and (window-splittable-p window t) |
| 4436 | ;; Split window horizontally. | 4427 | ;; Split window horizontally. |
| 4437 | (with-selected-window window | 4428 | (with-selected-window window |
| 4438 | (split-window-horizontally))) | 4429 | (split-window-right))) |
| 4439 | (and (eq window (frame-root-window (window-frame window))) | 4430 | (and (eq window (frame-root-window (window-frame window))) |
| 4440 | (not (window-minibuffer-p window)) | 4431 | (not (window-minibuffer-p window)) |
| 4441 | ;; If WINDOW is the only window on its frame and is not the | 4432 | ;; If WINDOW is the only window on its frame and is not the |
| @@ -4444,7 +4435,7 @@ split." | |||
| 4444 | (let ((split-height-threshold 0)) | 4435 | (let ((split-height-threshold 0)) |
| 4445 | (when (window-splittable-p window) | 4436 | (when (window-splittable-p window) |
| 4446 | (with-selected-window window | 4437 | (with-selected-window window |
| 4447 | (split-window-vertically))))))) | 4438 | (split-window-below))))))) |
| 4448 | 4439 | ||
| 4449 | (defun window--try-to-split-window (window) | 4440 | (defun window--try-to-split-window (window) |
| 4450 | "Try to split WINDOW. | 4441 | "Try to split WINDOW. |
| @@ -5741,8 +5732,8 @@ Otherwise, consult the value of `truncate-partial-width-windows' | |||
| 5741 | ;; change these. | 5732 | ;; change these. |
| 5742 | (define-key ctl-x-map "0" 'delete-window) | 5733 | (define-key ctl-x-map "0" 'delete-window) |
| 5743 | (define-key ctl-x-map "1" 'delete-other-windows) | 5734 | (define-key ctl-x-map "1" 'delete-other-windows) |
| 5744 | (define-key ctl-x-map "2" 'split-window-above-each-other) | 5735 | (define-key ctl-x-map "2" 'split-window-below) |
| 5745 | (define-key ctl-x-map "3" 'split-window-side-by-side) | 5736 | (define-key ctl-x-map "3" 'split-window-right) |
| 5746 | (define-key ctl-x-map "o" 'other-window) | 5737 | (define-key ctl-x-map "o" 'other-window) |
| 5747 | (define-key ctl-x-map "^" 'enlarge-window) | 5738 | (define-key ctl-x-map "^" 'enlarge-window) |
| 5748 | (define-key ctl-x-map "}" 'enlarge-window-horizontally) | 5739 | (define-key ctl-x-map "}" 'enlarge-window-horizontally) |