Commit c2e303c8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(shell-command): Set default directory for "*Shell

Command Output" buffer.
parent 8585266f
......@@ -1331,10 +1331,13 @@ specifies the value of ERROR-BUFFER."
;; Clear the output buffer, then run the command with
;; output there.
(set-buffer buffer)
(setq buffer-read-only nil)
(let ((directory default-directory))
(set-buffer buffer)
(setq buffer-read-only nil)
(if (not output-buffer)
(setq default-directory directory))
(setq exit-status
(call-process-region start end shell-file-name nil
(if error-file
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