diff options
| author | Michael Albinus | 2020-02-10 19:59:49 +0100 |
|---|---|---|
| committer | Michael Albinus | 2020-02-10 19:59:49 +0100 |
| commit | 2e2f53907103d801fb57dc0eef55906cdf4d791b (patch) | |
| tree | c8074ef822e8c18ab90983d1d62798acd3451982 | |
| parent | 79355517f158d03918433a5b4e74fd803b693c28 (diff) | |
| download | emacs-2e2f53907103d801fb57dc0eef55906cdf4d791b.tar.gz emacs-2e2f53907103d801fb57dc0eef55906cdf4d791b.zip | |
Fix window position in Tramp's shell-command
* lisp/net/tramp.el (tramp-handle-shell-command): Fix `window-start'
in output buffer. (Bug#39171)
| -rw-r--r-- | lisp/net/tramp.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 19d36c3a97b..0e44656f2a4 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -3721,9 +3721,9 @@ support symbolic links." | |||
| 3721 | (if (process-live-p p) | 3721 | (if (process-live-p p) |
| 3722 | ;; Display output. | 3722 | ;; Display output. |
| 3723 | (with-current-buffer output-buffer | 3723 | (with-current-buffer output-buffer |
| 3724 | (display-buffer output-buffer '(nil (allow-no-window . t))) | ||
| 3725 | (setq mode-line-process '(":%s")) | 3724 | (setq mode-line-process '(":%s")) |
| 3726 | (shell-mode) | 3725 | (unless (eq major-mode 'shell-mode) |
| 3726 | (shell-mode)) | ||
| 3727 | (set-process-filter p #'comint-output-filter) | 3727 | (set-process-filter p #'comint-output-filter) |
| 3728 | (set-process-sentinel p #'shell-command-sentinel) | 3728 | (set-process-sentinel p #'shell-command-sentinel) |
| 3729 | (when error-file | 3729 | (when error-file |
| @@ -3733,7 +3733,8 @@ support symbolic links." | |||
| 3733 | (with-current-buffer error-buffer | 3733 | (with-current-buffer error-buffer |
| 3734 | (insert-file-contents-literally | 3734 | (insert-file-contents-literally |
| 3735 | error-file nil nil nil 'replace)) | 3735 | error-file nil nil nil 'replace)) |
| 3736 | (delete-file error-file))))) | 3736 | (delete-file error-file)))) |
| 3737 | (display-buffer output-buffer '(nil (allow-no-window . t)))) | ||
| 3737 | 3738 | ||
| 3738 | (when error-file | 3739 | (when error-file |
| 3739 | (delete-file error-file))))) | 3740 | (delete-file error-file))))) |