]> code.delx.au - gnu-emacs/commitdiff
Explain, why `tramp-*-file-name-p' is a defsubst.
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 14 Dec 2012 09:02:34 +0000 (10:02 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 14 Dec 2012 09:02:34 +0000 (10:02 +0100)
lisp/net/tramp-adb.el
lisp/net/tramp-ftp.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-smb.el

index 5d13d56f638e4c978ed78a3794753dc1f5dab91b..d34980fe22ead5febb5ee99bbcebe6b887b3704d 100644 (file)
     (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."
index 44ae176c6c902378398b6727f3530a42fa0bbc02..77e36292ef91c2587590055f5c730f1bf9f59436 100644 (file)
@@ -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."
index a4b2e0fccff39d410842381e23ed3f46d436ccbb..1467aede2c3df5e73eec2c9c85021e210223d6a8 100644 (file)
@@ -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."
index f52129919ccc8210d6f8a16d60c99b43e662e78f..d4386a5374ccf52d6e31422adcb16bd7bc16beba 100644 (file)
@@ -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."