Dave Abrahams <[email protected]> writes:

> Hi Michael!

Hi Dave,

> emacs -Q
> M-x load-library RET compile
> M-x set-variable RET compilation-auto-jump-to-first-error RET t
> C-x C-v <some remote host> RET
> M-x compile RET cat <the attached file>
>
> You'll notice that emacs appears to hang for a long time.  Turning off
> compilation-auto-jump-to-first-error makes it go away.

The appended patch fixes this for me. Could you, pls, test?

Best regards, Michael.

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/tramp.el b/lisp/tramp.el
index fc7fdd3..9ad510e 100644
--- a/lisp/tramp.el
+++ b/lisp/tramp.el
@@ -3618,6 +3618,7 @@ connection buffer."
   "Like `accept-process-output' for Tramp processes.
 This is needed in order to hide `last-coding-system-used', which is set
 for process communication also."
+  (sit-for 0.01 'nodisp) ; If we are called inside a timer.
   (with-current-buffer (process-buffer proc)
     (let (buffer-read-only last-coding-system-used)
       ;; Under Windows XP, accept-process-output doesn't return
--8<---------------cut here---------------end--------------->8---

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to