diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2022-05-21 15:20:10 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2022-05-21 15:20:10 +0200 |
commit | 56e81ca25b0b88df7d8659c60dc8abdd559a03c9 (patch) | |
tree | c433ae9405c68aa3588386b012a37b89abfd6619 /lisp/net/tramp-gvfs.el | |
parent | 22ae842b346621095223213621f2244a5a59d3b8 (diff) | |
parent | f836ed098fe8c649e3c30cf55696b3a750f1bbf0 (diff) | |
download | emacs-56e81ca25b0b88df7d8659c60dc8abdd559a03c9.tar.gz |
Merge from origin/emacs-28
f836ed098f Some minor Tramp fixes
Diffstat (limited to 'lisp/net/tramp-gvfs.el')
-rw-r--r-- | lisp/net/tramp-gvfs.el | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 752dfdb068a..fca3988b8d8 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el @@ -1788,22 +1788,26 @@ a downcased host name only." (list t ;; handled. nil ;; no abort of D-Bus. - (with-tramp-connection-property (tramp-get-process v) message - ;; In theory, there can be several choices. - ;; Until now, there is only the question whether - ;; to accept an unknown host signature or certificate. - (with-temp-buffer - ;; Preserve message for `progress-reporter'. - (with-temp-message "" - (insert message) - (goto-char (point-max)) - (if noninteractive - (message "%s" message) - (pop-to-buffer (current-buffer))) - (if (yes-or-no-p - (buffer-substring - (line-beginning-position) (point))) - 0 1))))) + ;; Preserve message for `progress-reporter'. + (with-temp-message "" + (if noninteractive + ;; Keep regression tests running. + (progn + (message "%s" message) + 0) + (with-tramp-connection-property (tramp-get-process v) message + ;; In theory, there can be several choices. + ;; Until now, there is only the question + ;; whether to accept an unknown host + ;; signature or certificate. + (with-temp-buffer + (insert message) + (goto-char (point-max)) + (pop-to-buffer (current-buffer)) + (if (yes-or-no-p + (buffer-substring + (line-beginning-position) (point))) + 0 1)))))) ;; When QUIT is raised, we shall return this ;; information to D-Bus. |