summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-cmds.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2017-05-08 17:27:50 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-05-08 17:27:50 +0200
commit73e3ed48e21287d48fda8d04e55f8b79b526ca50 (patch)
tree0469f5c6bc24befa0e6651ad970a12cb31c46e8e /lisp/net/tramp-cmds.el
parent52f7440b8ea8e18f7e83f8d107bd5e4df1bda7b1 (diff)
downloademacs-73e3ed48e21287d48fda8d04e55f8b79b526ca50.tar.gz
emacs-73e3ed48e21287d48fda8d04e55f8b79b526ca50.tar.bz2
emacs-73e3ed48e21287d48fda8d04e55f8b79b526ca50.zip
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.
Diffstat (limited to 'lisp/net/tramp-cmds.el')
-rw-r--r--lisp/net/tramp-cmds.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index 99fc0cc7098..a11908af63e 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -247,10 +247,9 @@ buffer in your bug report.
;; Pretty print the cache.
(set varsym (read (format "(%s)" (tramp-cache-print val))))
;; There are non-7bit characters to be masked.
- (when (and (boundp 'mm-7bit-chars)
- (stringp val)
+ (when (and (stringp val)
(string-match
- (concat "[^" (symbol-value 'mm-7bit-chars) "]") val))
+ (concat "[^" (bound-and-true-p mm-7bit-chars) "]") val))
(with-current-buffer reporter-eval-buffer
(set
varsym
@@ -327,8 +326,7 @@ buffer in your bug report.
;; Append buffers only when we are in message mode.
(when (and
(eq major-mode 'message-mode)
- (boundp 'mml-mode)
- (symbol-value 'mml-mode))
+ (bound-and-true-p mml-mode))
(let ((tramp-buf-regexp "\\*\\(debug \\)?tramp/")
(buffer-list (tramp-list-tramp-buffers))