Merge from origin/emacs-28
aab36e1895Fix error in tramp-archive-autoload-file-name-handler11a1f7817eMerge branch 'emacs-28' of git.sv.gnu.org:/srv/git/emacs i...93974198b6Commit missing file from previous commit
This commit is contained in:
commit
e495a3d79b
1 changed files with 7 additions and 8 deletions
|
|
@ -362,14 +362,13 @@ arguments to pass to the OPERATION."
|
|||
(progn (defun tramp-archive-autoload-file-name-handler (operation &rest args)
|
||||
"Load Tramp archive file name handler, and perform OPERATION."
|
||||
(defvar tramp-archive-autoload)
|
||||
(when tramp-archive-enabled
|
||||
;; We cannot use `tramp-compat-temporary-file-directory' here due
|
||||
;; to autoload. When installing Tramp's GNU ELPA package, there
|
||||
;; might be an older, incompatible version active. We try to
|
||||
;; overload this.
|
||||
(let ((default-directory temporary-file-directory)
|
||||
(tramp-archive-autoload t))
|
||||
(apply #'tramp-autoload-file-name-handler operation args)))))
|
||||
(let (;; We cannot use `tramp-compat-temporary-file-directory' here
|
||||
;; due to autoload. When installing Tramp's GNU ELPA package,
|
||||
;; there might be an older, incompatible version active. We
|
||||
;; try to overload this.
|
||||
(default-directory temporary-file-directory)
|
||||
(tramp-archive-autoload tramp-archive-enabled))
|
||||
(apply #'tramp-autoload-file-name-handler operation args))))
|
||||
|
||||
(put #'tramp-archive-autoload-file-name-handler 'tramp-autoload t)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue