]> git.eshelyaron.com Git - emacs.git/commit
Improve error handling in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 24 Jun 2019 15:36:00 +0000 (17:36 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 24 Jun 2019 15:36:00 +0000 (17:36 +0200)
commit18a7e5414c534db38eedb06b16ef68f2c17b98fd
tree355be82e621742ec6768dcf859d6edabc3c643ce
parentb72cd0c74682cf87799f324eb3dace5f1962baf0
Improve error handling in Tramp

* lisp/net/tramp-compat.el (ls-lisp): Require.

* lisp/net/tramp.el (ls-lisp-use-insert-directory-program):
Don't declare.
(tramp-current-connection): Adapt docstring.
(tramp-debug-message): Adapt function names.
(tramp-error, tramp-run-real-handler): Let-bind `signal-hook-function'.
(tramp-signal-hook-function): New defun.
(tramp-debug-on-error, tramp-condition-case-unless-debug): Remove.
(tramp-file-name-handler): Handle `tramp-current-connection'.
Let-bind `signal-hook-function'.  Use `unwind-protect' instead of
`tramp-condition-case-unless-debug'.
(tramp-handle-insert-directory): Don't require ls-lisp.
(tramp-process-actions): Check, that
`tramp-password-save-function' is non-nil.
(tramp-equal-remote): Handle the case both files are local.

* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Do not bind `tramp-debug-on-error'.
(tramp--test-ignore-make-symbolic-link-error): Make error handler
more explicit about the error.
lisp/net/tramp-compat.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el