1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix thinko in tramp-gvfs-maybe-open-connection

* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
Use `assoc-default'.
This commit is contained in:
Michael Albinus 2023-04-27 19:41:18 +02:00
parent 98006bfd09
commit dbd7465790

View file

@ -2183,11 +2183,12 @@ connection if a previous connection has died for some reason."
;; Sanity check.
(let ((method (tramp-file-name-method vec)))
(unless (member
(or (rassoc method '(("smb" . "smb-share")
("davs" . "dav")
("nextcloud" . "dav")
("afp". "afp-volume")
("gdrive" . "google-drive")))
(or (assoc-default
method '(("smb" . "smb-share")
("davs" . "dav")
("nextcloud" . "dav")
("afp". "afp-volume")
("gdrive" . "google-drive")))
method)
tramp-gvfs-mounttypes)
(tramp-error vec 'file-error "Method `%s' not supported by GVFS" method)))