1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Stefan Monnier
6e85ef5fd1 Use hash-tables.
(ange-ftp-make-hashtable, ange-ftp-map-hashtable)
(ange-ftp-make-hash-key, ange-ftp-get-hash-entry)
(ange-ftp-put-hash-entry, ange-ftp-del-hash-entry): Remove.
Replace with make-hash-table, maphash, gethash, puthash and remhash.
(ange-ftp-hash-entry-exists-p): Rewrite.
(ange-ftp-vms-delete-file-entry, ange-ftp-vms-add-file-entry):
Change mapatom -> maphash.
(ange-ftp-file-entry-active-p, ange-ftp-file-entry-not-ignored-p):
Update to new calling mode.
2002-07-13 22:10:02 +00:00
Kai Großjohann
65399e8313 Do not hook into file-name-handler-alist, this
is done by Tramp.
2002-07-13 18:08:11 +00:00
Richard M. Stallman
4494f50d12 (ange-ftp-write-region): Don't bind executing-kbd-macro; instead, pass
non-nil VISIT arg to ange-ftp-real-write-region.
2002-07-12 23:29:39 +00:00
Stefan Monnier
c8607dc71a Use add-hook and find-file-hook.
(ange-ftp-parse-netrc): Use run-hooks and find-file-hook.
(ange-ftp-ls-parser): Make it into a function.
Ignore trailing @ in symlink targets.
(ange-ftp-file-entry-p): Ignore FTP errors.
(ange-ftp-insert-directory): Use ange-ftp-expand-symlink
to correctly expand "/flint:/bla -> ./etc" to /flint:/etc.
2002-07-04 20:37:14 +00:00
Richard M. Stallman
06268b4ff9 (ange-ftp-hook-function): Add file-remote-p prop. 2002-07-02 19:20:42 +00:00
Kai Großjohann
d18322c5fc (backup-buffer): Delete `ange-ftp' property.
This is not a handled operation.
2002-06-21 20:41:59 +00:00
Stefan Monnier
f6de01c7fa (read-file-name-internal): Remove the `ange-ftp' property.
(ange-ftp-real-read-file-name-internal): Remove.
2002-05-24 22:01:56 +00:00
Stefan Monnier
76a98a5066 (ange-ftp-allow-child-lookup): Re-enable since
the last patch works around the wu-ftpd misfeature that prompted
the disabling of this optimization.
2002-05-21 23:23:08 +00:00
Stefan Monnier
7ca26b02cf (ange-ftp-generate-root-prefixes)
(ange-ftp-file-name-completion): Don't cons unnecessarily.
(ange-ftp-send-cmd): Always `cd' before doing `ls'.
2002-05-20 18:51:49 +00:00
Pavel Janík
84778d91c3 (ange-ftp-try-passive-mode)
(ange-ftp-passive-host-alist): Change :version attributes to be strings.
2002-05-12 20:36:50 +00:00
Eli Zaretskii
89e7ad5946 Change all post-21.1 :version attributes to 21.4. 2002-05-12 17:30:42 +00:00
Markus Rost
b2ce953f25 (ange-ftp-re-read-dir): Don't hide it behind the autoload-cookie.
Remove comment.
2002-05-07 19:34:35 +00:00
Richard M. Stallman
33ceea4f0e (ange-ftp-passive-host-alist)
(ange-ftp-bs2000-additional-pubsets):  Fix custom type.
2002-04-29 03:58:31 +00:00
Eli Zaretskii
5504af2259 (ange-ftp-process-handle-line, ange-ftp-set-xfer-size): If the file's
size is a float, divide by 1024 instead of using ash.
2002-02-08 12:37:02 +00:00
Richard M. Stallman
c392a090aa (ange-ftp-canonize-filename): Avoid duplicate slash if DIR is just slash. 2002-01-22 07:34:07 +00:00
Richard M. Stallman
00dc02800f (ange-ftp-bs2000-posix-hook-installed): Move defvar up. 2002-01-22 01:42:44 +00:00
Richard M. Stallman
9c35d70676 Added support for BS2000, and for raw ftp
login commands (needed in some circumstances).
(ange-ftp-raw-login): New custom var.
(ange-ftp-normal-login): Perform login with raw ftp commands, if
ange-ftp-raw-login is set and account password is needed.
(ange-ftp-host-type, ange-ftp-guess-host-type): Handle BS2000 hosts.
(ange-ftp-bs2000-filename-pubset-regexp)
(ange-ftp-bs2000-filename-username-regexp)
(ange-ftp-bs2000-filename-prefix-regexp)
(ange-ftp-bs2000-name-template): New consts.
(ange-ftp-bs2000-short-filename-regexp)
(ange-ftp-bs2000-fix-name-regexp-reverse)
(ange-ftp-bs2000-fix-name-regexp): New consts.
(ange-ftp-bs2000-special-prefix): New custom var.
(ange-ftp-fix-name-for-bs2000)
(ange-ftp-fix-dir-name-for-bs2000): New funs.
(ange-ftp-bs2000-host-regexp, ange-ftp-bs2000-posix-host-regexp)
(ange-ftp-bs2000-posix-hook-installed): New vars.
(ange-ftp-parse-bs2000-filename, ange-ftp-parse-bs2000-listing)
(ange-ftp-bs2000-host, ange-ftp-bs2000-posix-host)
(ange-ftp-add-bs2000-host, ange-ftp-add-bs2000-posix-host): New funs.
(ange-ftp-bs2000-filename-regexp): New const.
(ange-ftp-bs2000-additional-pubsets): New custom var.
(ange-ftp-bs2000-cd-to-posix): New fun.
2002-01-20 22:10:54 +00:00
Richard M. Stallman
31bcb0dc4d (ange-ftp-passive-mode): New arg PROC.
(ange-ftp-get-process): Pass that arg.
2002-01-17 01:40:23 +00:00
Stefan Monnier
ae0bec0b42 (ange-ftp-root-dir-p): New function.
(ange-ftp-file-name-all-completions, ange-ftp-file-name-completion): Use it.
(ange-ftp-hook-function): Preserve match-data.
(ange-ftp-insert-directory): Typo.
(ange-ftp-shell-command): Check if regexp matched.
2002-01-14 13:01:14 +00:00
Pavel Janík
110c171f4d Fix typo. 2002-01-13 10:09:20 +00:00
Pavel Janík
cdc51589d5 (ange-ftp-shell-command): Remove port specification from the hostname. 2002-01-03 08:39:44 +00:00
Richard M. Stallman
8839c4a651 (ange-ftp-insert-directory): Explicitly follow symlinks. 2001-12-29 02:50:51 +00:00
Richard M. Stallman
1d0653f8b6 (ange-ftp-allow-child-lookup): Always return nil.
This fixes a bug that treated all files as directories.
2001-12-29 00:46:26 +00:00
Richard M. Stallman
b52e05e242 (ange-ftp-file-modtime): Use save-match-data. 2001-12-21 23:57:20 +00:00
Gerd Moellmann
cfc3aed3fe (ange-ftp-send-cmd): Call fix-name-func for
`mdtm'.  From "Forrest Cahoon" <forrest.cahoon@merrillcorp.com>.
2001-10-27 07:53:11 +00:00
Stefan Monnier
67f300f817 (ange-ftp-raw-send-cmd, ange-ftp-wait-not-busy):
Use with-current-buffer.
(ange-ftp-cd): New arg `noerror' to prevent signalling an error.
(ange-ftp-send-cmd): If a `cd' is used (because of a space in the
filename), catch any error that occurs in `ange-ftp-cd'.
If an error happened, don't bother sending `cmd' at all.
Fix a parenthesis typo.
(ange-ftp-write-region): Don't blindly use binary if the remote host
is unix-like.
2001-10-13 18:40:46 +00:00
Sam Steingold
b878b8c30a (ange-ftp-copy-files-async): New function for
asynchronous multiple file copying.
2001-10-12 19:16:34 +00:00
Andreas Schwab
7d685c849a (ange-ftp-skip-msgs): Add 227 and 228 for Long
and Extended Passive Mode, resp.
2001-10-02 21:34:12 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Gerd Moellmann
524ac5b25a (ange-ftp-file-modtime): Check a 213 response
from the server for the format we expect.  Don't use it if it
doesn't look like what the Internet draft for FTP extensions
specifies.
2001-07-09 08:58:38 +00:00
Gerd Moellmann
6573d87f38 (ange-ftp-file-modtime): Ignore 226 responses
from the server.  Call encode-time only when we are sure that we
got a 213 response.
2001-07-06 14:03:09 +00:00
Gerd Moellmann
a724ed38f5 (ange-ftp-fix-name-for-vms): Reverse args of
subst-char-in-string.
(ange-ftp-after-parse-ls-hook): New variable.
(ange-ftp-ls): Run that hook.
From Peter Milliken <Peter.Milliken@GTECH.COM>.
2001-05-18 13:21:11 +00:00
Gerd Moellmann
2ca0d5f113 (ange-ftp-write-region): Make sure to record the
last coding system used before calling set-buffer-modified-p
because that function changes last-coding-system.
2001-05-17 11:26:56 +00:00
Miles Bader
1389a414e0 (ange-ftp-file-modtime): Don't use `caddr'. 2000-11-16 06:52:43 +00:00
Gerd Moellmann
0e14fe9f16 (ange-ftp-file-writable-p)
(ange-ftp-file-readable-p, ange-ftp-file-executable-p): Bind
ange-ftp-process-verbose to nil.
2000-11-16 06:13:09 +00:00
Sam Steingold
9d45313983 Ange-ftp handles the output of the w32-style clients 2000-07-28 16:27:41 +00:00
Sam Steingold
a1f84f6d16 use float-time 2000-07-26 18:44:36 +00:00
Sam Steingold
25759a92ce Get modtime over the net 2000-07-25 23:26:01 +00:00
Stefan Monnier
aeb1822825 (ange-ftp-vms-delete-file-entry)
(ange-ftp-vms-add-file-entry): Don't quote lambda.
2000-06-12 05:20:23 +00:00
Gerd Moellmann
a8a3541c8e (ange-ftp-skip-msgs): Include 500 code.for
handling FTP security extensions.
2000-05-12 18:38:28 +00:00
Gerd Moellmann
8749abea43 Moved here from lisp. 2000-03-20 13:12:14 +00:00