From: Michael Albinus Date: Fri, 14 Dec 2012 09:02:34 +0000 (+0100) Subject: Explain, why `tramp-*-file-name-p' is a defsubst. X-Git-Tag: emacs-24.3.90~173^2~7^2~597 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b421decc52e07a3c56b2b259321867bc352f5173;p=emacs.git Explain, why `tramp-*-file-name-p' is a defsubst. --- diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 5d13d56f638..d34980fe22e 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el @@ -111,6 +111,8 @@ (start-file-process . tramp-adb-handle-start-file-process)) "Alist of handler functions for Tramp ADB method.") +;; It must be a `defsubst' in order to push the whole code into +;; tramp-loaddefs.el. Otherwise, there would be recursive autoloading. ;;;###tramp-autoload (defsubst tramp-adb-file-name-p (filename) "Check if it's a filename for ADB." diff --git a/lisp/net/tramp-ftp.el b/lisp/net/tramp-ftp.el index 44ae176c6c9..77e36292ef9 100644 --- a/lisp/net/tramp-ftp.el +++ b/lisp/net/tramp-ftp.el @@ -200,6 +200,8 @@ pass to the OPERATION." (inhibit-file-name-operation operation)) (apply 'ange-ftp-hook-function operation args))))))) +;; It must be a `defsubst' in order to push the whole code into +;; tramp-loaddefs.el. Otherwise, there would be recursive autoloading. ;;;###tramp-autoload (defsubst tramp-ftp-file-name-p (filename) "Check if it's a filename that should be forwarded to Ange-FTP." diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index a4b2e0fccff..1467aede2c3 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el @@ -432,6 +432,8 @@ Every entry is a list (NAME ADDRESS).") "Alist of handler functions for Tramp GVFS method. Operations not mentioned here will be handled by the default Emacs primitives.") +;; It must be a `defsubst' in order to push the whole code into +;; tramp-loaddefs.el. Otherwise, there would be recursive autoloading. ;;;###tramp-autoload (defsubst tramp-gvfs-file-name-p (filename) "Check if it's a filename handled by the GVFS daemon." diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index f52129919cc..d4386a5374c 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -265,6 +265,8 @@ This can be used to disable echo etc." :type 'string :version "24.3") +;; It must be a `defsubst' in order to push the whole code into +;; tramp-loaddefs.el. Otherwise, there would be recursive autoloading. ;;;###tramp-autoload (defsubst tramp-smb-file-name-p (filename) "Check if it's a filename for SMB servers."