Function: erc-arrange-session-in-multiple-windows

erc-arrange-session-in-multiple-windows is an interactive and byte-compiled function defined in erc.el.gz.

Signature

(erc-arrange-session-in-multiple-windows)

Documentation

Open a window for every non-server buffer related to erc-session-server.

All windows are opened in the current frame.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-arrange-session-in-multiple-windows ()
  "Open a window for every non-server buffer related to `erc-session-server'.

All windows are opened in the current frame."
  (interactive)
  (unless erc-server-process
    (error "No erc-server-process found in current buffer"))
  (let ((bufs (erc-buffer-list nil erc-server-process)))
    (when bufs
      (delete-other-windows)
      (switch-to-buffer (car bufs))
      (setq bufs (cdr bufs))
      (while bufs
        (split-window)
        (other-window 1)
        (switch-to-buffer (car bufs))
        (setq bufs (cdr bufs))
        (balance-windows)))))