]> git.eshelyaron.com Git - emacs.git/commit
Add 'remote-file-error' for Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Dec 2020 18:30:01 +0000 (19:30 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Dec 2020 18:30:01 +0000 (19:30 +0100)
commitc0c6cd2d5d7af82ddfd4d8d080d0aa8d7882d293
tree176900038c02b3fcc984969464e51ce4aeb3f138
parent47a854bf24c8a36bf1e8ac32c8b5c9ebcba1d90a
Add 'remote-file-error' for Tramp

* doc/lispref/errors.texi (Standard Errors): Add 'remote-file-error'.

* etc/NEWS: Mention 'remote-file-error'.

* lisp/net/ange-ftp.el (ftp-error): Add error condition
`remote-file-error'.

* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Do not set
`tramp-locked'.

* lisp/net/tramp-compat.el (remote-file-error): Define if it
doesn't exist.

* lisp/net/tramp-sh.el (tramp-timeout-session): Check for "locked"
property.
(tramp-maybe-open-connection): Simplify.

* lisp/net/tramp.el (tramp-locked, tramp-locker): Remove them.
(tramp-file-name-handler): Do not set them.
(with-tramp-locked-connection): New defmacro.
(tramp-accept-process-output, tramp-send-string): Use it.

* src/fileio.c (Qremote_file_error): New error symbol.

* test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests):
Adapt test.  Remove :unstable tag.
doc/lispref/errors.texi
etc/NEWS
lisp/net/ange-ftp.el
lisp/net/tramp-cmds.el
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
lisp/net/tramp.el
src/fileio.c
test/lisp/net/tramp-tests.el