]> git.eshelyaron.com Git - emacs.git/commit
Handle `write-region' messages in Tramp properly
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 8 May 2017 15:27:50 +0000 (17:27 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 8 May 2017 15:27:50 +0000 (17:27 +0200)
commit73e3ed48e21287d48fda8d04e55f8b79b526ca50
tree0469f5c6bc24befa0e6651ad970a12cb31c46e8e
parent52f7440b8ea8e18f7e83f8d107bd5e4df1bda7b1
Handle `write-region' messages in Tramp properly

* lisp/net/tramp.el (tramp-handle-write-region-message): New defsubst.
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Use it.

* lisp/net/tramp.el (tramp-password-prompt-regexp)
(tramp-completion-mode-p):
* lisp/net/tramp-cmds.el (tramp-reporter-dump-variable)
(tramp-append-tramp-buffers):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
Use `bound-and-true-p'.

* lisp/net/tramp-compat.el (tramp-compat-delete-file):
Don't check for `boundp' anymore.

* test/lisp/net/tramp-tests.el (ert-x): Require it.
(tramp--test-messages): New defvar.
(tramp-test10-write-region): Extend test.
lisp/net/tramp-adb.el
lisp/net/tramp-cmds.el
lisp/net/tramp-compat.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el