Commit 500dd7a3 authored by Michael Albinus's avatar Michael Albinus
Browse files

Fix last patch.

parent 525c5c77
......@@ -1600,7 +1600,7 @@ If LEVEL does not fit for visible messages, or if this is a
nested call of the macro, there are only traces without a visible
progress reporter."
(declare (indent 3) (debug t))
`(let (pr tm)
`(let (pr tm result)
(tramp-message ,vec ,level "%s..." ,message)
;; We start a pulsing progress reporter after 3 seconds. Feature
;; introduced in Emacs 24.1.
......@@ -1614,7 +1614,7 @@ progress reporter."
(condition-case err
;; Execute the body.
(progn ,@body)
(setq result (progn ,@body))
;; Stop progress reporter.
(if tm (tramp-compat-funcall 'cancel-timer tm)))
......@@ -1624,7 +1624,8 @@ progress reporter."
(signal (car err) (cdr err))))
;; Exit.
(tramp-message ,vec ,level "%s...done" ,message)))
(tramp-message ,vec ,level "%s...done" ,message)
'emacs-lisp-mode '("\\<with-tramp-progress-reporter\\>"))
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