Fix problem with Tramp progress reporter

* lisp/net/tramp.el (with-tramp-progress-reporter): Do not span a
new progress reporter if there's already another one.
This commit is contained in:
Michael Albinus 2020-07-20 16:29:38 +02:00
parent 44d2368ca1
commit 0cbafc236b

View file

@ -2012,9 +2012,11 @@ without a visible progress reporter."
(tramp-message ,vec ,level "%s..." ,message)
(let ((cookie "failed")
(tm
;; We start a pulsing progress reporter after 3
;; seconds. Display only when there is a minimum level.
(when-let ((pr (and (<= ,level (min tramp-verbose 3))
;; We start a pulsing progress reporter after 3 seconds.
;; Start only when there is no other progress reporter
;; running, and when there is a minimum level.
(when-let ((pr (and (null tramp-inhibit-progress-reporter)
(<= ,level (min tramp-verbose 3))
(make-progress-reporter ,message nil nil))))
(run-at-time 3 0.1 #'tramp-progress-reporter-update pr))))
(unwind-protect