From: Chong Yidong Date: Sun, 30 Oct 2011 01:56:03 +0000 (+0800) Subject: Rename split-window-{above-each-other|split-window-side-by-side} X-Git-Tag: emacs-pretest-24.0.91~14 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/2d197ffbe2029b479802528eeaec714df4c8a8f6 Rename split-window-{above-each-other|split-window-side-by-side} 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. --- diff --git a/etc/NEWS b/etc/NEWS index 4e38838c4d..bd2f6004d3 100644 --- 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 diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8309d3256b..614094aa33 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,33 @@ +2011-10-30 Chong Yidong + + * 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 * subr.el (y-or-n-p): Add code for batch mode (Bug#9818). diff --git a/lisp/bs.el b/lisp/bs.el index 49ffb3f822..0c32c8b4f1 100644 --- a/lisp/bs.el +++ b/lisp/bs.el @@ -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))))) diff --git a/lisp/calculator.el b/lisp/calculator.el index 2cc7f5f656..4a79316d73 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el @@ -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) diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 2c38101588..6fa924dd78 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -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) diff --git a/lisp/dired-x.el b/lisp/dired-x.el index aaddc479b2..4daf313445 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 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)) diff --git a/lisp/dired.el b/lisp/dired.el index 3ff86869a7..4e03d61a06 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -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. ;;;*** ;;;### (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" "\ diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el index 567a57949b..010e32857c 100644 --- a/lisp/emulation/crisp.el +++ b/lisp/emulation/crisp.el @@ -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) diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 68550cc30e..7ed0255d98 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 ." (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) diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index b4bf47a650..e2ad5d81d2 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el @@ -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) ;