]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix newly introduced errors in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Jun 2020 07:24:27 +0000 (09:24 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Jun 2020 07:24:27 +0000 (09:24 +0200)
* lisp/net/tramp-gvfs.el (tramp-gvfs-unload-hook):
Remove `tramp-gvfs-dbus-event-error' from `dbus-event-error-functions'.

* lisp/net/tramp.el (tramp-autoload-file-name-handler): Revert patch.

lisp/net/tramp-gvfs.el
lisp/net/tramp.el

index 36166ad19668b6af515cb2d4f441a77d45cf7e01..dce6edd19c4e1f878c6e5a1ce74573c09a9041ab 100644 (file)
@@ -951,6 +951,10 @@ is no information where to trace the message.")
     (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err))))
 
 (add-hook 'dbus-event-error-functions #'tramp-gvfs-dbus-event-error)
+(add-hook 'tramp-gvfs-unload-hook
+         (lambda ()
+           (remove-hook 'dbus-event-error-functions
+                        #'tramp-gvfs-dbus-event-error)))
 
 \f
 ;; File name primitives.
index 7bb9e422a504b7a90cca30b44d469bb231b7bafc..9314c437d290361a8082c8d78f1744d920802500 100644 (file)
@@ -2450,7 +2450,9 @@ Falls back to normal file name handler if no Tramp file name handler exists."
   "Load Tramp file name handler, and perform OPERATION."
   (tramp-unload-file-name-handlers)
   (when tramp-mode
-    (let ((default-directory (tramp-compat-temporary-file-directory)))
+    ;; We cannot use `tramp-compat-temporary-file-directory' here due
+    ;; to autoload.
+    (let ((default-directory temporary-file-directory))
       (load "tramp" 'noerror 'nomessage)))
   (apply operation args)))