Function: erc--check-prompt-input-for-running-process
erc--check-prompt-input-for-running-process is a byte-compiled
function defined in erc.el.gz.
Signature
(erc--check-prompt-input-for-running-process STRING _)
Documentation
Return non-nil if STRING is a slash command missing a process.
Also do so when the server buffer has been killed.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; Originally, `erc-send-current-line' inhibited sends whenever a
;; server buffer was missing. In 2007, this was narrowed to
;; occurrences involving process-dependent commands. However, the
;; accompanying error message, which was identical to that emitted by
;; `erc-server-send', "ERC: No process running", was always inaccurate
;; because a server buffer can be alive and its process dead.
(defun erc--check-prompt-input-for-running-process (string _)
"Return non-nil if STRING is a slash command missing a process.
Also do so when the server buffer has been killed."
;; Even if the server buffer has been killed, the user should still
;; be able to /reconnect and recall previous commands.
(and (not (erc-command-no-process-p string))
(or (and (not (erc-server-buffer-live-p)) "Server buffer missing")
(and (not (erc-server-process-alive)) "Process not running"))))