X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9f46df23a3d01f82a24f2a3dd8730f0263fa9fde..924d6997866a444f833ea0a2f0da25058a351564:/lisp/net/tramp-ftp.el diff --git a/lisp/net/tramp-ftp.el b/lisp/net/tramp-ftp.el index 73bc687811..7d266d4d17 100644 --- a/lisp/net/tramp-ftp.el +++ b/lisp/net/tramp-ftp.el @@ -1,6 +1,6 @@ ;;; tramp-ftp.el --- Tramp convenience functions for Ange-FTP -;; Copyright (C) 2002-2012 Free Software Foundation, Inc. +;; Copyright (C) 2002-2013 Free Software Foundation, Inc. ;; Author: Michael Albinus ;; Keywords: comm, processes @@ -49,9 +49,8 @@ (defun tramp-disable-ange-ftp () "Turn Ange-FTP off. This is useful for unified remoting. See -`tramp-file-name-structure-unified' and -`tramp-file-name-structure-separate' for details. Requests suitable -for Ange-FTP will be forwarded to Ange-FTP. Also see the variables +`tramp-file-name-structure' for details. Requests suitable for +Ange-FTP will be forwarded to Ange-FTP. Also see the variables `tramp-ftp-method', `tramp-default-method', and `tramp-default-method-alist'. @@ -201,11 +200,13 @@ 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." - (let ((v (tramp-dissect-file-name filename))) - (string= (tramp-file-name-method v) tramp-ftp-method))) + (string= (tramp-file-name-method (tramp-dissect-file-name filename)) + tramp-ftp-method)) ;;;###tramp-autoload (unless (featurep 'xemacs)