Function: erc-kill-query-buffers

erc-kill-query-buffers is a byte-compiled function defined in erc.el.gz.

Signature

(erc-kill-query-buffers PROCESS)

Documentation

Kill all target buffers of PROCESS, including channel buffers.

Do nothing if PROCESS is not a process object.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; FIXME make function obsolete or alias to something less confusing.
(defun erc-kill-query-buffers (process)
  "Kill all target buffers of PROCESS, including channel buffers.
Do nothing if PROCESS is not a process object."
  ;; here, we only want to match the channel buffers, to avoid
  ;; "selecting killed buffers" b0rkage.
  (when (processp process)
    (erc-with-all-buffers-of-server process (lambda () erc--target)
      (kill-buffer (current-buffer)))))