@code{delete-other-windows}. @xref{Window Parameters}.
Also, if @code{ignore-window-parameters} is @code{nil}, this function
-does not delete any window whose @code{no-delete-other-window} parameter
-is non-@code{nil}.
+does not delete any window whose @code{no-delete-other-windows}
+parameter is non-@code{nil}.
@end deffn
@deffn Command delete-windows-on &optional buffer-or-name frame
@example
@group
(defvar parameters
- '(window-parameters . ((no-other-window . t) (no-delete-other-window . t))))
+ '(window-parameters . ((no-other-window . t) (no-delete-other-windows . t))))
(setq fit-window-to-buffer-horizontally t)
(setq window-resize-pixelwise t)
are accessible via @kbd{C-x o} by installing the @code{no-other-window}
parameter for each of these windows. In addition, it makes sure that
side windows are not deleted via @kbd{C-x 1} by installing the
-@code{no-delete-other-window} parameter for each of these windows.
+@code{no-delete-other-windows} parameter for each of these windows.
Since @code{dired} buffers have no fixed names, we use a special
function @code{dired-default-directory-on-left} in order to display a
This parameter affects the execution of @code{delete-other-windows}
(@pxref{Deleting Windows}).
-@item no-delete-other-window
-@vindex no-delete-other-window, a window parameter
+@item no-delete-other-windows
+@vindex no-delete-other-windows, a window parameter
This parameter marks the window as not deletable by
@code{delete-other-windows} (@pxref{Deleting Windows}).
This function installs the `window-side' and `window-slot'
parameters and makes them persistent. It neither modifies ALIST
nor installs any other window parameters unless they have been
-explicitly provided via a `window-parameter' entry in ALIST."
+explicitly provided via a `window-parameters' entry in ALIST."
(let* ((side (or (cdr (assq 'side alist)) 'bottom))
(slot (or (cdr (assq 'slot alist)) 0))
(left-or-right (memq side '(left right)))
with the root of the atomic window as its argument. Signal an
error if that root window is the root window of WINDOW's frame.
Also signal an error if WINDOW is a side window. Do not delete
-any window whose `no-delete-other-window' parameter is non-nil."
+any window whose `no-delete-other-windows' parameter is non-nil."
(interactive)
(setq window (window-normalize-window window))
(let* ((frame (window-frame window))
(cond
((or ignore-window-parameters
- (not (window-with-parameter 'no-delete-other-window nil frame)))
+ (not (window-with-parameter 'no-delete-other-windows nil frame)))
(setq main (frame-root-window frame)))
((catch 'tag
(walk-window-tree
(lambda (other)
(when (or (and (window-parameter other 'window-side)
(not (window-parameter
- other 'no-delete-other-window)))
+ other 'no-delete-other-windows)))
(and (not (window-parameter other 'window-side))
(window-parameter
- other 'no-delete-other-window)))
+ other 'no-delete-other-windows)))
(throw 'tag nil))))
t)
(setq main (window-main-window frame)))
(when (and (window-live-p other)
(not (eq other window))
(not (window-parameter
- other 'no-delete-other-window))
+ other 'no-delete-other-windows))
;; When WINDOW and the other window are part of the
;; same atomic window, don't delete the other.
(or (not atom-root)