Function: eshell-remove-command
eshell-remove-command is a byte-compiled function defined in
esh-cmd.el.gz.
Signature
(eshell-remove-command COMMAND)
Documentation
Remove COMMAND from our list of known commands.
COMMAND should be a list of the form (BACKGROUND FORM PROCESSES),
as returned by eshell-add-command (which see).
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-remove-command (command)
"Remove COMMAND from our list of known commands.
COMMAND should be a list of the form (BACKGROUND FORM PROCESSES),
as returned by `eshell-add-command' (which see)."
(let ((background (car command))
(entry (cdr command)))
(if background
(setq eshell-background-commands
(delq entry eshell-background-commands))
(cl-assert (eq eshell-foreground-command entry))
(setq eshell-foreground-command nil))))