(error-file
(and error-buffer
(with-parsed-tramp-file-name default-directory nil
- (tramp-make-tramp-file-name
- v (tramp-make-tramp-temp-file v)))))
+ (tramp-test-message "Holla1")
+ (prog1
+ (tramp-make-tramp-file-name
+ v (tramp-make-tramp-temp-file v))
+ (tramp-test-message "Holla2")))))
(bname (buffer-name output-buffer))
(p (get-buffer-process output-buffer))
(dir default-directory)
(buffer-name output-buffer) buffer command))
;; Insert error messages if they were separated.
(when error-file
+ (tramp-test-message "Holla3")
(with-current-buffer error-buffer
- (insert-file-contents-literally error-file)))
+ (insert-file-contents-literally error-file))
+ (tramp-test-message "Holla4"))
(if (process-live-p p)
- ;; Display output.
- (with-current-buffer output-buffer
- (setq mode-line-process '(":%s"))
- (unless (eq major-mode 'shell-mode)
- (shell-mode))
- (set-process-filter p #'comint-output-filter)
- (set-process-sentinel p #'shell-command-sentinel)
- (when error-file
- (add-function
- :after (process-sentinel p)
- (lambda (_proc _string)
- (with-current-buffer error-buffer
- (insert-file-contents-literally
- error-file nil nil nil 'replace))
- (delete-file error-file))))
- (display-buffer output-buffer '(nil (allow-no-window . t))))
+ ;; Display output.
+ (with-current-buffer output-buffer
+ (setq mode-line-process '(":%s"))
+ (unless (eq major-mode 'shell-mode)
+ (shell-mode))
+ (set-process-filter p #'comint-output-filter)
+ (set-process-sentinel p #'shell-command-sentinel)
+ (when error-file
+ (add-function
+ :after (process-sentinel p)
+ (lambda (_proc _string)
+ (with-current-buffer error-buffer
+ (insert-file-contents-literally
+ error-file nil nil nil 'replace))
+ (delete-file error-file))))
+ (display-buffer output-buffer '(nil (allow-no-window . t))))
(when error-file
(delete-file error-file)))))