diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index defdb2bd546..b1bd93410bc 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -5815,7 +5815,7 @@ If the user quits via `C-g', it is propagated up to `tramp-file-name-handler'." (v (process-get proc 'tramp-vector))) (dolist (p (delq proc (process-list))) (when (tramp-file-name-equal-p v (process-get p 'tramp-vector)) - (accept-process-output p 0 nil t)))) + (with-local-quit (accept-process-output p 0 nil t))))) (with-current-buffer (process-buffer proc) (let ((inhibit-read-only t)