Commit graph

5558 commits

Author SHA1 Message Date
Richard M. Stallman
6309b0e19c (ange-ftp-skip-msgs): Skip the 530 response
given by vsFTPd when accessed with a kerberised FTP client.
2002-08-27 21:21:24 +00:00
Kai Großjohann
821e6e360b Version 2.0.14 released.
(tramp-shell-prompt-pattern): New variable.
(tramp-actions-before-shell, tramp-multi-actions)
(tramp-find-shell, tramp-open-connection-multi)
(tramp-open-connection-setup-interactive-shell): Use it.
(tramp-open-connection-telnet, tramp-open-connection-rsh)
(tramp-open-connection-su): Mention `tramp-shell-prompt-pattern'
in the docstring.
(tramp-bug): Report `tramp-shell-prompt-pattern'.
(tramp-process-one-multi-action, tramp-process-one-action): Make
message clearer so people don't confuse it with Emacs asking them
a question if the regexp happens to end with "?".
(tramp-verbose): Change default value from 10 to 9.  Also change
some logging levels so that 10 is reserved for stuff which is
needed for debugging only, but 9 catches everything that people
might like to see in order to see that Tramp is actually working.
2002-08-22 15:16:08 +00:00
Kai Großjohann
3cdaec13e7 Version 2.0.13 released.
(tramp-handle-write-region): Don't check to see if remote end is
awake after sending data to remote host: we want to send "EOF" not
"echo are you awake"...
(tramp-maybe-open-connection): Swap args for tramp-time-diff.
(tramp-yn-prompt-regexp): New variable.
(tramp-action-yn): New function, using it.
(tramp-feature-write-region-fix): New internal variable.  Not yet
used.  Should be used in `tramp-handle-write-region'.
2002-08-21 15:04:29 +00:00
David Kastrup
7adee48a65 (ange-ftp-wipe-file-entries): Fix type mismatch;
use `hash-table-size' instead of `length'.
2002-08-14 22:43:46 +00:00
Kai Großjohann
685f58582f Version 2.0.12 released.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Comment out possibly obsolete "echo hello" commands.
(tramp-run-real-handler): If operation is
`ange-ftp-hook-function', use first arg as the real operation.
(tramp-check-ls-commands): Use / instead of \ as directory
separator.  (Relevant for XEmacs on Windows.)
(tramp-maybe-open-connection): Use tramp-wait-for-output when
waiting for the "are you awake" command.  Use a different string
for the "are you awake" command.
(tramp-send-command): New optional arg NEVEROPEN means to never
invoke tramp-maybe-open-connection.
(tramp-maybe-open-connection): Use it
2002-08-07 14:54:05 +00:00
Richard M. Stallman
0101f7e178 (ange-ftp-smart-gateway): Doc fix. 2002-08-05 16:27:07 +00:00
Kai Großjohann
5beaf83194 Version 2.0.11 released.
(tramp-perl-file-attributes): Print uid and gid as signed
integers.
(tramp-invoke-ange-ftp): Correct check for Ange-FTP being loaded.
Invoke Ange-FTP with tramp-run-real-handler to avoid Ange-FTP
calling Tramp again.
(tramp-find-file-exists-command): Check for `ls -d' last, after
all the variants on `test -e'.
(tramp-post-connection): Erase buffer before finding a command to
check if file exists.
2002-08-05 14:58:21 +00:00
Kai Großjohann
fabf2143a8 Version 2.0.10 released.
(tramp-uudecode): New shell function `tramp_uudecode' to decode to
standard output even if `uudecode -p' and `uudecode -o -' don't
work.
(tramp-post-connection): After finding the right shell, wait a
bit.  This is a kludge to avoid a race condition, even though I
don't understand why there is a race condition in the first place.
(tramp-post-connection): Install the `tramp_uudecode' shell
function on the remote host.
(tramp-coding-commands): Add an alternative for `tramp_uudecode'.
(tramp-bug): Include more variables in the report.
2002-08-04 13:58:44 +00:00
Kai Großjohann
89509ea00a Version 2.0.9 released.
(tramp-bug): Add wording about additional info to include in bug
report.
(tramp-find-shell): Set $PS1 for invocation of second shell (for
tilde expansion).
(tramp-find-shell): Shell prompt must match at end of buffer.  Do
this also for fallback shell prompt.
(tramp-find-shell): More debugging output.
(tramp-find-inline-encoding): When checking the decoding command,
some commands fail when reading from /dev/null.  So we pass a
known string through the encoding command and pass that through
the decoding command.  So we know whether the decoding command can
deal with some real input.
2002-08-04 11:41:38 +00:00
Andreas Schwab
ccf29586ca (tramp-perl-encode, tramp-perl-decode): Doc fix. 2002-08-03 23:26:26 +00:00
Kai Großjohann
3654170140 Version 2.0.8.
(tramp-perl-encode, tramp-perl-encode): Double the backslashes.
2002-08-03 20:54:52 +00:00
Kai Großjohann
fa32e96a13 Version 2.0.7.
(tramp-perl-encode-with-module, tramp-perl-decode-with-module)
(tramp-perl-encode, tramp-perl-decode): Escape `%' characters
because of `format' and say so in the docstring.
2002-08-03 17:04:43 +00:00
Kai Großjohann
b1d06e759a Version 2.0.6.
(tramp-default-method): Change to "ssh" from "sm".
(tramp-wrong-passwd-regexp): Restructure.  Add additional
alternative.
(tramp-su-program): New internal variable for method parameter.
(tramp-perl-encode-with-module, tramp-perl-decode-with-module):
New variables.  Very short Perl one-liner, but requires Perl
module MIME::Base64 to be installed on the remote site.
(tramp-perl-encode, tramp-perl-decode): New base64
encoder/decoder.  From Juanma Barranquero <lektu@terra.es>.
(tramp-handle-file-truename): Invoke Ange-FTP properly (even
though Ange-FTP doesn't do anything for this operation).
(tramp-handle-set-visited-file-modtime): Comment change.
(tramp-handle-make-directory): Save-excursion.
(tramp-handle-expand-many-files): Don't try to invoke Ange-FTP
twice, once is enough.
(tramp-action-permission-denied): Show *tramp/foo* buffer so the
user knows what's wrong.
(tramp-post-connection): Support the two Perl encoders and
decoders.
(tramp-coding-commands): Ditto.  Add some todo items.
2002-08-03 09:23:25 +00:00
Kai Großjohann
ac474af158 New version 2.0.5.
(tramp-methods): Remove inline encoding method parameters.  The
encoding is now autodetected.  Also shorten the list of
methods (u/m distinction gone) and rename the remaining methods to
have longer, but more mnemonic, names.
(tramp-login-prompt-regexp, tramp-password-prompt-regexp)
(tramp-wrong-passwd-regexp): Trailing `$' not needed, regexp is
matched at end of buffer anyway.
(tramp-yesno-prompt-regexp): New variable, for questions where the
user should say "yes" or "no".
(tramp-file-name-structure-unified)
(tramp-file-name-structure-separate): Allow dash in method names.
(tramp-actions-before-shell): New variable, contains list of
pattern/action pairs.  Output sent by remote end is scanned for
the patterns, then the actions are executed.
(tramp-multi-actions): Like `tramp-actions-before-shell', but
executed for each hop in a multi-hop connection.
(tramp-last-cmd-time): New variable.  If nothing has been sent to
remote end for 60 seconds, look to see if the remote end is still
alive.
(tramp-perl-mime-encode, tramp-perl-mime-decode): Remove.  It
didn't work.
(tramp-perl-encode, tramp-perl-decode): New variables, these
require the MIME::Base64 module on the remote end.
(tramp-handle-file-attributes): Restructure logic.
(tramp-handle-file-attributes-with-ls)
(tramp-handle-file-attributes-with-perl): More debugging.
(tramp-handle-directory-files): Grok fifth arg `files-only' for
XEmacs.
(tramp-handle-make-directory, tramp-handle-delete-directory)
(tramp-handle-delete-file, tramp-handle-insert-directory): Expand
file name.
(tramp-handle-shell-command): Use `when', not `if'.
(tramp-handle-file-local-copy, tramp-handle-write-region): Adapt
to autodetection of inline encoding.
(tramp-invoke-ange-ftp): Require ange-ftp to make sure that
variable ange-ftp-name-format is defined before binding it.
(tramp-action-login, tramp-action-password, tramp-action-succeed)
(tramp-action-permission-denied, tramp-action-yesno): Functions
called from `tramp-actions-before-shell'.
(tramp-multi-action-login, tramp-multi-action-password)
(tramp-multi-action-succeed)
(tramp-multi-action-permission-denied): Functions called from
`tramp-multi-actions'.
(tramp-process-one-action, tramp-process-actions): Pattern
matching and action invocation code for
`tramp-actions-before-shell'.
(tramp-process-one-multi-action, tramp-process-multi-actions):
Same for `tramp-multi-actions'.
(tramp-open-connection-telnet, tramp-open-connection-rsh)
(tramp-open-connection-su): Process actions instead of hardwired
logic.
(tramp-multi-connect-telnet, tramp-multi-connect-rlogin)
(tramp-multi-connect-su): Ditto.
(tramp-post-connection): New method for tramp_encode and
tramp_decode scripts.
(tramp-post-connection): Invoke inline autodetection code.
(tramp-coding-commands): List of inline codings.
(tramp-find-inline-encoding): This is the inline autodetection
code.
(tramp-maybe-open-connection): If nothing was sent to connection
for 60 seconds, look if it connection is still alive.
(tramp-send-command): Remember that something was sent to the
connection.
(tramp-make-tramp-file-name, tramp-make-tramp-multi-file-name):
Use backticks for constructing alist.
(tramp-get-encoding-command, tramp-set-encoding-command)
(tramp-get-decoding-command, tramp-set-decoding-command)
(tramp-get-encoding-function, tramp-set-encoding-function)
(tramp-get-decoding-function, tramp-set-decoding-function): Use
for results of inline autodetection.
(tramp-get-encoding-command, tramp-get-decoding-command)
(tramp-get-encoding-function, tramp-get-decoding-function):
Remove these old functions.
2002-07-30 20:24:27 +00:00
Richard M. Stallman
64f6f48618 (browse-url-lynx-input-attempts): Use defcustom.
(browse-url-lynx-input-delay): Add custom type and group.
2002-07-22 15:21:41 +00:00
Kai Großjohann
90dc758dc0 Bump version to 2.0.2.
(tramp-methods): Rename methods invoking "ssh1" or "ssh2" to
longer names.  Use old names "sm1", "sm2" and so on for methods
invoking "ssh -1" or "ssh -2".
(tramp-multi-file-name-structure-separate): Typo, its name was set
to "tramp-file-name-structure-separate".  Trivial patch.  From
Steve Youngs <youngs@xemacs.org>.
(tramp-multi-sh-program): New variable.
(tramp-open-connection-multi): Use it.  Now you can use multi
methods from Windows (at least in principle).
(tramp-do-copy-or-rename-via-buffer): New function.
(tramp-do-copy-or-rename-file): Use it.  Change and simplify
logic.  Omit special case of invoking rcp directly to copy the
files.
(tramp-open-connection-su, tramp-multi-connect-telnet)
(tramp-multi-connect-rlogin, tramp-multi-connect-su)
(tramp-make-tramp-file-name, tramp-make-tramp-multi-file-name):
Use backticks in format-spec for brevity and to avoid
character/number confusion in XEmacs.
2002-07-21 13:49:06 +00:00
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
Kai Großjohann
b29019f876 (tramp-multi-file-name-structure-unified): Add
missing slash and move colon from start to end of each hop.
(tramp-multi-file-name-hop-structure-unified): Move colon from
start to end of each hop.
2002-07-13 17:41:01 +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
Kai Großjohann
cebb4ec6c5 (tramp-handle-make-symbolic-link): Implement. 2002-07-11 20:26:19 +00:00
Kai Großjohann
505edaeb0e (tramp-default-method): New default method "sm"
which I guess to be good for most people.
(tramp-default-method-alist): Use "ftp" method (ie, forwarding to
Ange-FTP) for some user/host combinations.
(tramp-file-name-structure, tramp-file-name-regexp)
(tramp-make-tramp-file-format)
(tramp-make-tramp-file-user-nil-format)
(tramp-multi-file-name-structure)
(tramp-multi-file-name-hop-structure)
(tramp-make-multi-tramp-file-format): New default value which
unifies the filename syntax between Tramp and Ange-FTP.  The new
syntax is "/method:user@host:path".  Note the colon after the
method.
(tramp-handle-file-name-directory): Don't return "/" when
completing a remote root directory (where the filename looks like
"/method:user@host:/").
(tramp-handle-ange-ftp): Deleted.
(tramp-disable-ange-ftp): New function, called at toplevel,
deletes Ange-FTP from file-name-handler-alist.
2002-07-11 19:59:07 +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
Andreas Schwab
210accc8a7 (tramp-handle-ange-ftp): Move interactive spec
after doc string.
2002-07-03 18:42:34 +00:00
Juanma Barranquero
25f78d1872 (tramp-send-eof): Fix typo.
(tramp-kill-process): Likewise.
2002-07-03 10:00:41 +00:00
Richard M. Stallman
06268b4ff9 (ange-ftp-hook-function): Add file-remote-p prop. 2002-07-02 19:20:42 +00:00
Andreas Schwab
cdf4ead8ad (tramp-handle-ange-ftp): Fix typo. 2002-06-27 16:50:06 +00:00
Kai Großjohann
487fa986ae (tramp-file-name-structure)
(tramp-multi-file-name-hop-structure): Split for easier
readability.
(tramp-handle-make-symbolic-link): Use user/host/method/... from
LINKNAME, not FILENAME.
(tramp-handle-verify-visited-file-modtime): Call
tramp-ange-ftp-file-name-p with right parameters.
(tramp-handle-verify-visited-file-modtime): `insert' does not
work for integers, convert them to strings first.
(tramp-handle-ange-ftp): New function to perform setup for
replacing Ange-FTP with Tramp.
(tramp-repair-jka-compr): New function to factor out some
previously top-level code.  Call the function at top-level.
2002-06-27 15:52:51 +00:00
Kai Großjohann
8e3a1104c1 (tramp-open-connection-rsh): Support a kludgy feature for the
"-p" option to ssh.  If host name is given as "host#42", uses the
"-p 42" option.
2002-06-25 20:11:34 +00:00
Kai Großjohann
c62c9d08c7 (tramp-ftp-method): New user option.
(tramp-invoke-ange-ftp): New function to forward calls to
Ange-FTP.

(with-parsed-tramp-file-name): New macro for the usual big `let'
statement to dissect a file-name.

(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-handle-file-name-directory)
(tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
(tramp-handle-file-truename, tramp-handle-file-directory-p)
(tramp-handle-file-regular-p, tramp-handle-file-symlink-p)
(tramp-handle-file-writable-p, tramp-handle-file-writable-p):

Use the new macro and forward call to Ange-FTP if applicable.

(tramp-make-ange-ftp-file-name): New helper function to convert a
file name into an Ange-FTP file name, used by
`tramp-invoke-ange-ftp'.

(tramp-default-method-alist): New user option.
(tramp-find-default-method): Use it.

(tramp-sh-extra-args): New variable.
(tramp-find-shell): Use it.
2002-06-25 18:15:03 +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
Richard M. Stallman
857356cb69 (browse-url-at-mouse): Don't pass an arg to browse-url-at-point. 2002-06-21 09:58:32 +00:00
Kai Großjohann
fb7933a389 *** empty log message *** 2002-06-17 11:47:23 +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
Pavel Janík
74d40d47e8 (ldap-search-internal): Unfold folded lines before parsing. 2002-05-12 16:42:19 +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
f1b693270a (zone-mode): Add write-file-hooks hook locally. 2002-04-30 03:28:48 +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
Richard M. Stallman
97b913ad8b New file. 2002-04-24 16:09:22 +00:00
Richard M. Stallman
1665be4714 Put * in user option doc strings.
(browse-url-mosaic-pidfile): New variable.
(browse-url-mosaic): Use it.

(browse-url-filename-alist): Don't begin docstring with *, you don't
want to set this one with M-x set-variable.
2002-03-18 04:24:09 +00:00
Miles Bader
cf232e4dec (rlogin-mode): Use `define-derived-mode'. 2002-03-14 11:52:39 +00:00
Miles Bader
0fd2d581b7 (rlogin-carriage-filter): Function removed.
(rlogin): Don't install the `rlogin-carriage-filter' filter, as
comint removes carriage returns itself now.
2002-03-14 08:52:01 +00:00
Richard M. Stallman
b77784f7d9 (browse-url-galeon): Specify --existing for an existing window.
Use --noraise rather than --no-raise.  Don't use -x.
2002-03-08 09:56:30 +00:00
Pavel Janík
1d09ce772e Require tempo when compiling to prevent warnings. Update copyright notice. 2002-03-04 09:43:40 +00:00
Eli Zaretskii
f1ec000756 (browse-url-maybe-new-window): Reverse the sense of the comparison,
to match the doc strings of functions that use this macro.
2002-02-19 11:16:06 +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