Function: erc-process-sentinel-1
erc-process-sentinel-1 is a byte-compiled function defined in
erc-backend.el.gz.
Signature
(erc-process-sentinel-1 EVENT BUFFER)
Documentation
Called when erc-process-sentinel has decided that we're disconnecting.
Determine whether user has quit or whether erc has been terminated. Conditionally try to reconnect and take appropriate action.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-backend.el.gz
(defun erc-process-sentinel-1 (event buffer)
"Called when `erc-process-sentinel' has decided that we're disconnecting.
Determine whether user has quit or whether erc has been terminated.
Conditionally try to reconnect and take appropriate action."
(with-current-buffer buffer
(if erc-server-quitting
;; normal quit
(progn
(erc-display-message nil 'error (current-buffer) 'finished)
;; Update mode line indicators
(erc-update-mode-line)
;; Kill server buffer if user wants it
(set-buffer-modified-p nil)
(when erc-kill-server-buffer-on-quit
(kill-buffer (current-buffer))))
;; unexpected disconnect
(erc-process-sentinel-2 event buffer))))