--- /usr/share/emacs/22.2/lisp/simple-patched.el 2009-01-20 19:51:29.528333079 +0000 +++ /usr/share/emacs/22.2/lisp/simple.el 2008-03-11 01:57:32.000000000 +0000 @@ -1892,11 +1892,10 @@ (erase-buffer) (display-buffer buffer) (setq default-directory directory) - (setq proc (get-buffer-process - (make-comint-in-buffer - "Shell" buffer shell-file-name nil - shell-command-switch command))) + (setq proc (start-process "Shell" buffer shell-file-name + shell-command-switch command)) (setq mode-line-process '(":%s")) + (require 'shell) (shell-mode) (set-process-sentinel proc 'shell-command-sentinel) )) (shell-command-on-region (point) (point) command