diff options
| author | Michael Albinus | 2020-06-19 09:24:27 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-06-19 09:24:27 +0200 |
| commit | 70ac80d75684819b633417b87bf13e1e4e15dd15 (patch) | |
| tree | 11a0d2bf87ef09726837703e3bc1b22015bfeec0 | |
| parent | 6fe5c21c723c1ebf1d4df911761d14c47970262f (diff) | |
| download | emacs-70ac80d75684819b633417b87bf13e1e4e15dd15.tar.gz emacs-70ac80d75684819b633417b87bf13e1e4e15dd15.zip | |
Fix newly introduced errors in Tramp
* 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.
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 4 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 36166ad1966..dce6edd19c4 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -951,6 +951,10 @@ is no information where to trace the message.") | |||
| 951 | (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err)))) | 951 | (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err)))) |
| 952 | 952 | ||
| 953 | (add-hook 'dbus-event-error-functions #'tramp-gvfs-dbus-event-error) | 953 | (add-hook 'dbus-event-error-functions #'tramp-gvfs-dbus-event-error) |
| 954 | (add-hook 'tramp-gvfs-unload-hook | ||
| 955 | (lambda () | ||
| 956 | (remove-hook 'dbus-event-error-functions | ||
| 957 | #'tramp-gvfs-dbus-event-error))) | ||
| 954 | 958 | ||
| 955 | 959 | ||
| 956 | ;; File name primitives. | 960 | ;; File name primitives. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 7bb9e422a50..9314c437d29 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2450,7 +2450,9 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 2450 | "Load Tramp file name handler, and perform OPERATION." | 2450 | "Load Tramp file name handler, and perform OPERATION." |
| 2451 | (tramp-unload-file-name-handlers) | 2451 | (tramp-unload-file-name-handlers) |
| 2452 | (when tramp-mode | 2452 | (when tramp-mode |
| 2453 | (let ((default-directory (tramp-compat-temporary-file-directory))) | 2453 | ;; We cannot use `tramp-compat-temporary-file-directory' here due |
| 2454 | ;; to autoload. | ||
| 2455 | (let ((default-directory temporary-file-directory)) | ||
| 2454 | (load "tramp" 'noerror 'nomessage))) | 2456 | (load "tramp" 'noerror 'nomessage))) |
| 2455 | (apply operation args))) | 2457 | (apply operation args))) |
| 2456 | 2458 | ||