summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/simple.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 39a34f7f4a3..c726bf745bc 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1348,7 +1348,7 @@ specifies the value of ERROR-BUFFER."
(setq proc (start-process "Shell" buffer shell-file-name
shell-command-switch command))
(setq mode-line-process '(":%s"))
- (shell-mode)
+ (require 'shell) (shell-mode)
(set-process-sentinel proc 'shell-command-sentinel)
))
(shell-command-on-region (point) (point) command