]> git.eshelyaron.com Git - emacs.git/commit
Improve timer handling when Tramp accepts output
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 29 Jun 2017 16:22:38 +0000 (18:22 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 29 Jun 2017 16:22:38 +0000 (18:22 +0200)
commit138447c3abd749d1c27d99d7089b1b0903352ade
treef8ab4620eb071453168bacb339766e938b825954
parent3b19663b44be29986ebaacfb3a3c95130cd65964
Improve timer handling when Tramp accepts output

* lisp/net/tramp-compat.el: Avoid compiler warning.

* lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
Remove lock machinery.

* lisp/net/tramp.el (tramp-locked, tramp-locker): Move up.
(tramp-file-name-handler): Add lock machinery from
`tramp-sh-file-name-handler'.  Allow timers to run.
(tramp-accept-process-output): Remove nasty workaround.
Suppress timers.

* test/lisp/net/tramp-tests.el (shell-command-sentinel):
Suppress run in tests.
(tramp--instrument-test-case-p): New defvar.
(tramp--instrument-test-case): Use it in order to allow nested calls.
(tramp--test-message, tramp--test-backtrace): New defsubst,
will be used for occasional test instrumentation.
(tramp-test00-availability, tramp-test31-vc-registered): Use them.
(tramp-test28-shell-command)
(tramp--test-shell-command-to-string-asynchronously): Suppress
nasty messages.  Don't overwrite sentinel.
(tramp-test36-asynchronous-requests): Rewrite major parts.
Expect :passed.
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el