aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2017-08-07 09:51:01 +0200
committerMartin Rudalics2017-08-07 09:51:01 +0200
commitb6b362c91016473eec97feb3dbb6e0448d48b88e (patch)
tree1035c10a95c73aecb5a876aadc048a08f73c9f83
parent446e92548f932f18d57924573b49b5e6f4ae70c4 (diff)
downloademacs-b6b362c91016473eec97feb3dbb6e0448d48b88e.tar.gz
emacs-b6b362c91016473eec97feb3dbb6e0448d48b88e.zip
Fix doc-string of `delete-other-windows'
* lisp/window.el (delete-other-windows): Fix doc-string.
-rw-r--r--lisp/window.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 2b979f46636..f1c82c759d8 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -4096,17 +4096,17 @@ WINDOW must be a valid window and defaults to the selected one.
4096Return nil. 4096Return nil.
4097 4097
4098If the variable `ignore-window-parameters' is non-nil or the 4098If the variable `ignore-window-parameters' is non-nil or the
4099`delete-other-windows' parameter of WINDOW equals t, do not 4099`delete-other-windows' parameter of WINDOW equals t, do not pay
4100process any parameters of WINDOW. Otherwise, if the 4100attention to any other parameters of WINDOW. Otherwise, if the
4101`delete-other-windows' parameter of WINDOW specifies a function, 4101`delete-other-windows' parameter of WINDOW specifies a function,
4102call that function with WINDOW as its sole argument and return 4102call that function with WINDOW as its sole argument and return
4103the value returned by that function. 4103the value returned by that function.
4104 4104
4105Otherwise, if WINDOW is part of an atomic window, call this 4105Else, if WINDOW is part of an atomic window, call this function
4106function with the root of the atomic window as its argument. If 4106with the root of the atomic window as its argument. Signal an
4107WINDOW is a non-side window, make WINDOW the only non-side window 4107error if that root window is the root window of WINDOW's frame.
4108on the frame. Side windows are not deleted. If WINDOW is a side 4108Also signal an error if WINDOW is a side window. Do not delete
4109window signal an error." 4109any window whose `no-delete-other-window' parameter is non-nil."
4110 (interactive) 4110 (interactive)
4111 (setq window (window-normalize-window window)) 4111 (setq window (window-normalize-window window))
4112 (let* ((frame (window-frame window)) 4112 (let* ((frame (window-frame window))
@@ -4152,8 +4152,8 @@ window signal an error."
4152 t) 4152 t)
4153 (setq main (window-main-window frame))) 4153 (setq main (window-main-window frame)))
4154 (t 4154 (t
4155 ;; Delete other windows via `delete-window' because either a 4155 ;; Delete windows via `delete-window' because we found either a
4156 ;; side window is or a non-side-window is not deletable. 4156 ;; deletable side window or a non-deletable non-side-window.
4157 (dolist (other (window-list frame)) 4157 (dolist (other (window-list frame))
4158 (when (and (window-live-p other) 4158 (when (and (window-live-p other)
4159 (not (eq other window)) 4159 (not (eq other window))