]> git.eshelyaron.com Git - emacs.git/commit
Work on accept-process-output in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 3 Feb 2019 10:07:36 +0000 (11:07 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 3 Feb 2019 10:07:36 +0000 (11:07 +0100)
commitb32ac17c32486d8fce0fb9ecd5e09fe324448d3d
treebe76b6825ea5f8f5fa98ef1359069fe840228324
parent713eece307bf48717b868f21789eed8160ada5ba
Work on accept-process-output in Tramp

* lisp/net/tramp.el (tramp-accept-process-output): Rework timer
handling.
(tramp-call-process): Adapt VEC if nil.
(tramp-interrupt-process): Use `tramp-accept-process-output'.
(tramp-process-lines): New defun.
* lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
* lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Use timeout 0 in `tramp-accept-process-output'.

* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Move up.
(tramp-test29-start-file-process, tramp-test30-make-process)
(tramp-test32-shell-command)
(tramp--test-shell-command-to-string-asynchronously): Use it.
(tramp-test35-remote-path): Suppress warning.
(tramp--test-asynchronous-requests-timeout): New defconst.
(tramp-test43-asynchronous-requests): Skip if not the only test.
Use `tramp--test-asynchronous-requests-timeout'.
Remove instrumentation.  Use `start-process-shell-command' for
watchdog.  Add timeout in timer function.  Print status messages.
Remove file operations from sentinel.  Suppress timers in
`accept-process-output'.
lisp/net/tramp-adb.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-rclone.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el