Commit 2e2f5390 authored by Michael Albinus's avatar Michael Albinus

Fix window position in Tramp's shell-command

* lisp/net/tramp.el (tramp-handle-shell-command): Fix `window-start'
in output buffer.  (Bug#39171)
parent 79355517
Pipeline #4773 passed with stage
in 56 minutes and 36 seconds
......@@ -3721,9 +3721,9 @@ support symbolic links."
(if (process-live-p p)
;; Display output.
(with-current-buffer output-buffer
(display-buffer output-buffer '(nil (allow-no-window . t)))
(setq mode-line-process '(":%s"))
(unless (eq major-mode 'shell-mode)
(set-process-filter p #'comint-output-filter)
(set-process-sentinel p #'shell-command-sentinel)
(when error-file
......@@ -3733,7 +3733,8 @@ support symbolic links."
(with-current-buffer error-buffer
error-file nil nil nil 'replace))
(delete-file error-file)))))
(delete-file error-file))))
(display-buffer output-buffer '(nil (allow-no-window . t))))
(when error-file
(delete-file 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