[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.2.13.25.1); compilation-auto-jump-to-first-error slowness
From: |
Michael Albinus |
Subject: |
Re: tramp (2.2.13.25.1); compilation-auto-jump-to-first-error slowness |
Date: |
Fri, 03 Mar 2017 20:40:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Dave Abrahams <address@hidden> writes:
Hi Dave,
> Putting the sit-for here instead *seems* to give better results, but I'm
> mostly just taking potshot guesses:
>
> (defun tramp-action-out-of-band (proc vec)
> "Check, whether an out-of-band copy has finished."
> ;; There might be pending output for the exit status.
> (sit-for 0.01 :nodisp) ;; <============================
> (tramp-accept-process-output proc 0.1)
> (cond ((and (memq (process-status proc) '(stop exit))
> (zerop (process-exit-status proc)))
> (tramp-message vec 3 "Process has finished.")
Interesting idea, will investigate. However, `tramp-action-out-of-band'
is valid for scp-like methods only; I need to check first whether this
happens also for ssh-like methods.
Best regards, Michael.