Function: split-window-no-error
split-window-no-error is a byte-compiled function defined in
window.el.gz.
Signature
(split-window-no-error &optional WINDOW SIZE SIDE PIXELWISE)
Documentation
Make a new window adjacent to WINDOW.
This function is like split-window but does not signal an error
when WINDOW cannot be split.
For the meaning of all arguments see the documentation of
split-window.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun split-window-no-error (&optional window size side pixelwise)
"Make a new window adjacent to WINDOW.
This function is like `split-window' but does not signal an error
when WINDOW cannot be split.
For the meaning of all arguments see the documentation of
`split-window'."
(condition-case nil
(split-window window size side pixelwise)
(error nil)))