Commit d7e84efb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(shell-command-sentinel): Do nothing if buffer is dead.

parent 5754d7f2
......@@ -710,7 +710,8 @@ This cannot be done asynchronously."
;; We have a sentinel to prevent insertion of a termination message
;; in the buffer itself.
(defun shell-command-sentinel (process signal)
(if (memq (process-status process) '(exit signal))
(if (and (memq (process-status process) '(exit signal))
(buffer-name (process-buffer process)))
(message "%s: %s."
(car (cdr (cdr (process-command process))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment