Function: erc-status-sidebar-close

erc-status-sidebar-close is an interactive and byte-compiled function defined in erc-status-sidebar.el.gz.

Signature

(erc-status-sidebar-close &optional ALL-FRAMES)

Documentation

Close the sidebar.

If called with prefix argument (ALL-FRAMES non-nil), the sidebar will be closed on all frames.

The erc-status-sidebar buffer is left alone, but the window containing it on the current frame is closed. See erc-status-sidebar-kill.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-status-sidebar.el.gz
(defun erc-status-sidebar-close (&optional all-frames)
  "Close the sidebar.

If called with prefix argument (ALL-FRAMES non-nil), the sidebar
will be closed on all frames.

The erc-status-sidebar buffer is left alone, but the window
containing it on the current frame is closed.  See
`erc-status-sidebar-kill'."
  (interactive "P")
  (mapcar #'delete-window ; FIXME use `mapc'.
          (get-buffer-window-list (erc-status-sidebar-get-buffer)
                                  nil (if all-frames t))))