diff options
| author | Jim Blandy | 1992-12-12 15:19:13 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-12-12 15:19:13 +0000 |
| commit | 9ca74466e311b7c77a9676d7af3deebfdd99f9a2 (patch) | |
| tree | 4c7458943a914247a2d2262816ad24e29752170e | |
| parent | 71715da973271729a9c02cfaeb548a570c0d1d8a (diff) | |
| download | emacs-9ca74466e311b7c77a9676d7af3deebfdd99f9a2.tar.gz emacs-9ca74466e311b7c77a9676d7af3deebfdd99f9a2.zip | |
* ange-ftp.el (ange-ftp-unhandled-file-name-directory): New
function. Set ange-ftp's `unhandled-file-name-property' to its
name.
| -rw-r--r-- | lisp/ange-ftp.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 37fead3c4ce..34610f87588 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -857,7 +857,7 @@ SIZE, if supplied, should be a prime number." | |||
| 857 | ;;;; Internal variables. | 857 | ;;;; Internal variables. |
| 858 | ;;;; ------------------------------------------------------------ | 858 | ;;;; ------------------------------------------------------------ |
| 859 | 859 | ||
| 860 | (defconst ange-ftp-version "$Revision: 1.11 $") | 860 | (defconst ange-ftp-version "$Revision: 1.12 $") |
| 861 | 861 | ||
| 862 | (defvar ange-ftp-data-buffer-name " *ftp data*" | 862 | (defvar ange-ftp-data-buffer-name " *ftp data*" |
| 863 | "Buffer name to hold directory listing data received from ftp process.") | 863 | "Buffer name to hold directory listing data received from ftp process.") |
| @@ -3612,6 +3612,11 @@ system TYPE.") | |||
| 3612 | (format "Getting %s" fn1)) | 3612 | (format "Getting %s" fn1)) |
| 3613 | tmp1)))) | 3613 | tmp1)))) |
| 3614 | 3614 | ||
| 3615 | ;; Calculate default-unhandled-directory for a given ange-ftp buffer. | ||
| 3616 | (defun ange-ftp-unhandled-file-name-directory (filename) | ||
| 3617 | (file-name-directory ange-ftp-tmp-name-template)) | ||
| 3618 | |||
| 3619 | |||
| 3615 | ;; Need the following functions for making filenames of compressed | 3620 | ;; Need the following functions for making filenames of compressed |
| 3616 | ;; files, because some OS's (unlike UNIX) do not allow a filename to | 3621 | ;; files, because some OS's (unlike UNIX) do not allow a filename to |
| 3617 | ;; have two extensions. | 3622 | ;; have two extensions. |
| @@ -3763,6 +3768,8 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 3763 | (put 'file-name-completion 'ange-ftp 'ange-ftp-file-name-completion) | 3768 | (put 'file-name-completion 'ange-ftp 'ange-ftp-file-name-completion) |
| 3764 | (put 'insert-directory 'ange-ftp 'ange-ftp-insert-directory) | 3769 | (put 'insert-directory 'ange-ftp 'ange-ftp-insert-directory) |
| 3765 | (put 'file-local-copy 'ange-ftp 'ange-ftp-file-local-copy) | 3770 | (put 'file-local-copy 'ange-ftp 'ange-ftp-file-local-copy) |
| 3771 | (put 'unhandled-file-name-directory 'ange-ftp | ||
| 3772 | 'ange-ftp-unhandled-file-name-directory) | ||
| 3766 | (put 'file-name-sans-versions 'ange-ftp 'ange-ftp-file-name-sans-versions) | 3773 | (put 'file-name-sans-versions 'ange-ftp 'ange-ftp-file-name-sans-versions) |
| 3767 | (put 'dired-uncache 'ange-ftp 'ange-ftp-dired-uncache) | 3774 | (put 'dired-uncache 'ange-ftp 'ange-ftp-dired-uncache) |
| 3768 | (put 'dired-compress-file 'ange-ftp 'ange-ftp-dired-compress-file) | 3775 | (put 'dired-compress-file 'ange-ftp 'ange-ftp-dired-compress-file) |