diff options
| author | Richard M. Stallman | 1994-04-18 22:37:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-18 22:37:30 +0000 |
| commit | d7e84efb1a6c99890c84cf988a74d7a2cab987bf (patch) | |
| tree | 4ced9a96c71cbc7240976752510bb56181a70d83 | |
| parent | 5754d7f2c6f11dd83fd065aa0afa2a9d782d7242 (diff) | |
| download | emacs-d7e84efb1a6c99890c84cf988a74d7a2cab987bf.tar.gz emacs-d7e84efb1a6c99890c84cf988a74d7a2cab987bf.zip | |
(shell-command-sentinel): Do nothing if buffer is dead.
| -rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 19aca0e194a..aec30025f35 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -710,7 +710,8 @@ This cannot be done asynchronously." | |||
| 710 | ;; We have a sentinel to prevent insertion of a termination message | 710 | ;; We have a sentinel to prevent insertion of a termination message |
| 711 | ;; in the buffer itself. | 711 | ;; in the buffer itself. |
| 712 | (defun shell-command-sentinel (process signal) | 712 | (defun shell-command-sentinel (process signal) |
| 713 | (if (memq (process-status process) '(exit signal)) | 713 | (if (and (memq (process-status process) '(exit signal)) |
| 714 | (buffer-name (process-buffer process))) | ||
| 714 | (progn | 715 | (progn |
| 715 | (message "%s: %s." | 716 | (message "%s: %s." |
| 716 | (car (cdr (cdr (process-command process)))) | 717 | (car (cdr (cdr (process-command process)))) |