From: Lars Ingebrigtsen Date: Sun, 31 Jul 2022 09:24:23 +0000 (+0200) Subject: tramp fixes for byte-compiling loaddefs.el X-Git-Tag: emacs-29.0.90~1447^2~619 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a0e1ed0e02431827dfd26014d9db9059f1ccc30;p=emacs.git tramp fixes for byte-compiling loaddefs.el * lisp/net/tramp-archive.el (tramp-archive-file-name-handler): Move to the main loaddefs file since it's referred to by functions there. * lisp/net/tramp.el (tramp-file-name-handler): Autoload to avoid warning when byte-compiling loaddefs.el. --- diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el index 4f106a6b593..b2244941102 100644 --- a/lisp/net/tramp-archive.el +++ b/lisp/net/tramp-archive.el @@ -322,7 +322,7 @@ arguments to pass to the OPERATION." (inhibit-file-name-operation operation)) (apply operation args)))) -;;;###tramp-autoload +;;;###autoload (defun tramp-archive-file-name-handler (operation &rest args) "Invoke the file archive related OPERATION. First arg specifies the OPERATION, second arg ARGS is a list of diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index faf3182d4aa..a808c79dd98 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2684,6 +2684,7 @@ Must be handled by the callers." res))) ;; Main function. +;;;###autoload (defun tramp-file-name-handler (operation &rest args) "Invoke Tramp file name handler for OPERATION and ARGS. Fall back to normal file name handler if no Tramp file name handler exists."