]> git.eshelyaron.com Git - emacs.git/commitdiff
`file-remote-p' must not return an error
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 8 Feb 2024 10:17:22 +0000 (11:17 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 9 Feb 2024 10:44:13 +0000 (11:44 +0100)
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
`file-remote-p' must not return an error.  (Bug#68976)

(cherry picked from commit 08c81db7c8e522278fb2c8de8fbe556d109c135f)

lisp/net/tramp-gvfs.el

index 72589e7ce4a3704c8c72df6c2460ff8753f5d14e..4e949e7e60b53398ce12889507b81ba820f5c47c 100644 (file)
@@ -888,7 +888,8 @@ Operations not mentioned here will be handled by the default Emacs primitives.")
   "Invoke the GVFS related OPERATION and ARGS.
 First arg specifies the OPERATION, second arg is a list of
 arguments to pass to the OPERATION."
-  (unless tramp-gvfs-enabled
+  ;; `file-remote-p' must not return an error.  (Bug#68976)
+  (unless (or tramp-gvfs-enabled (eq operation 'file-remote-p))
     (tramp-user-error nil "Package `tramp-gvfs' not supported"))
   (if-let ((filename (apply #'tramp-file-name-for-operation operation args))
            (tramp-gvfs-dbus-event-vector