diff options
| author | Michael Albinus | 2004-05-29 22:43:24 +0000 |
|---|---|---|
| committer | Michael Albinus | 2004-05-29 22:43:24 +0000 |
| commit | e28c0668252a06f20ae3a81ad62accba51146d8a (patch) | |
| tree | 63369293b09a18c88747954fb6a7535024534fd0 | |
| parent | 04621aaa0c85151039564d1a732f202306fa4b5f (diff) | |
| download | emacs-e28c0668252a06f20ae3a81ad62accba51146d8a.tar.gz emacs-e28c0668252a06f20ae3a81ad62accba51146d8a.zip | |
(ange-ftp-file-remote-p): New defun.
(top): Remove setting of `file-remote-p' property for
`ange-ftp-hook-function'. Add `ange-ftp' property to
`file-remote-p'.
| -rw-r--r-- | lisp/net/ange-ftp.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 8e1068a5bed..09448e87329 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -4116,6 +4116,9 @@ directory, so that Emacs will know its current contents." | |||
| 4116 | (format "Getting %s" fn1)) | 4116 | (format "Getting %s" fn1)) |
| 4117 | tmp1)))) | 4117 | tmp1)))) |
| 4118 | 4118 | ||
| 4119 | (defun ange-ftp-file-remote-p (file) | ||
| 4120 | (when (ange-ftp-ftp-name file) t)) | ||
| 4121 | |||
| 4119 | (defun ange-ftp-load (file &optional noerror nomessage nosuffix) | 4122 | (defun ange-ftp-load (file &optional noerror nomessage nosuffix) |
| 4120 | (if (ange-ftp-ftp-name file) | 4123 | (if (ange-ftp-ftp-name file) |
| 4121 | (let ((tryfiles (if nosuffix | 4124 | (let ((tryfiles (if nosuffix |
| @@ -4257,9 +4260,6 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 4257 | (let ((fn (get operation 'ange-ftp))) | 4260 | (let ((fn (get operation 'ange-ftp))) |
| 4258 | (if fn (save-match-data (apply fn args)) | 4261 | (if fn (save-match-data (apply fn args)) |
| 4259 | (ange-ftp-run-real-handler operation args)))) | 4262 | (ange-ftp-run-real-handler operation args)))) |
| 4260 | ;;;###autoload | ||
| 4261 | ;;; These file names are remote file names. | ||
| 4262 | (put 'ange-ftp-hook-function 'file-remote-p t) | ||
| 4263 | 4263 | ||
| 4264 | ;; The following code is commented out because Tramp now deals with | 4264 | ;; The following code is commented out because Tramp now deals with |
| 4265 | ;; Ange-FTP filenames, too. | 4265 | ;; Ange-FTP filenames, too. |
| @@ -4327,6 +4327,7 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 4327 | (put 'file-name-completion 'ange-ftp 'ange-ftp-file-name-completion) | 4327 | (put 'file-name-completion 'ange-ftp 'ange-ftp-file-name-completion) |
| 4328 | (put 'insert-directory 'ange-ftp 'ange-ftp-insert-directory) | 4328 | (put 'insert-directory 'ange-ftp 'ange-ftp-insert-directory) |
| 4329 | (put 'file-local-copy 'ange-ftp 'ange-ftp-file-local-copy) | 4329 | (put 'file-local-copy 'ange-ftp 'ange-ftp-file-local-copy) |
| 4330 | (put 'file-remote-p 'ange-ftp 'ange-ftp-file-remote-p) | ||
| 4330 | (put 'unhandled-file-name-directory 'ange-ftp | 4331 | (put 'unhandled-file-name-directory 'ange-ftp |
| 4331 | 'ange-ftp-unhandled-file-name-directory) | 4332 | 'ange-ftp-unhandled-file-name-directory) |
| 4332 | (put 'file-name-sans-versions 'ange-ftp 'ange-ftp-file-name-sans-versions) | 4333 | (put 'file-name-sans-versions 'ange-ftp 'ange-ftp-file-name-sans-versions) |