Function: clone-indirect-buffer-other-window
clone-indirect-buffer-other-window is an interactive and byte-compiled
function defined in simple.el.gz.
Signature
(clone-indirect-buffer-other-window NEWNAME DISPLAY-FLAG &optional NORECORD)
Documentation
Like clone-indirect-buffer but display in another window.
If this command needs to split the current window, it by default obeys
the user options split-height-threshold and split-width-threshold,
when it decides whether to split the window horizontally or vertically.
Probably introduced at or before Emacs version 21.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun clone-indirect-buffer-other-window (newname display-flag &optional norecord)
"Like `clone-indirect-buffer' but display in another window.
If this command needs to split the current window, it by default obeys
the user options `split-height-threshold' and `split-width-threshold',
when it decides whether to split the window horizontally or vertically."
(interactive
(progn
(if (get major-mode 'no-clone-indirect)
(error "Cannot indirectly clone a buffer in %s mode" mode-name))
(list (if current-prefix-arg
(read-buffer "Name of indirect buffer: " (current-buffer)))
t)))
;; For compatibility, don't display the buffer if display-flag is nil.
(let ((buffer (clone-indirect-buffer newname nil norecord)))
(when display-flag
(switch-to-buffer-other-window buffer norecord))))