Commit graph

129 commits

Author SHA1 Message Date
Glenn Morris
e7f767c25e Replace `iff' in doc-strings and comments. 2007-08-08 07:34:30 +00:00
Michael Albinus
d62c9a33c4 * net/tramp.el (tramp-handle-file-remote-p): Handle optional
parameters IDENTIFICATION and CONNECTED.
(tramp-handle-insert-file-contents): VISIT must be handled after
insertion of the local copy.  Reported by Peter Gordon
<peter@pg-consultants.com>.
(tramp-file-name-handler): No special handling for
`expand-file-name'.  But for `file-name-as-directory'.
(tramp-find-shell, tramp-open-connection-telnet)
(tramp-open-connection-rsh, tramp-open-connection-su)
(tramp-open-connection-multi)
(tramp-open-connection-setup-interactive-shell): Guard against
$PROMPT_COMMAND shell var.  Reported by Steve Youngs
<steve@sxemacs.org>.
(tramp-append-tramp-buffers): Replace "sensible" by "sensitive" in
the hint.

* net/trampver.el: Update release number.
2007-08-07 20:04:27 +00:00
Michael Albinus
6435918d3d * net/tramp.el (tramp-handle-file-remote-p): Return a string as
remote identification.
2007-08-05 12:43:06 +00:00
Glenn Morris
ceaeecb0c9 Switch license to GPLv3 or later. 2007-07-25 04:27:24 +00:00
Michael Albinus
9ee5e81e95 Sync with Tramp 2.0.56. 2007-06-07 20:14:45 +00:00
Michael Albinus
69cee87364 * net/tramp.el (tramp-register-file-name-handler)
(tramp-register-completion-file-name-handler): New defsubst,
derived from `tramp-register-file-name-handlers'.  The split is
necessary because Tramp's file name handlers must be registered at
different startup places.
2007-03-31 18:38:18 +00:00
Michael Albinus
bba31a09c8 * net/tramp.el (tramp-make-temp-file): New parameter FILENAME.
Append its extension to the resulting temporary file name.
(tramp-handle-file-local-copy, tramp-handle-write-region): Apply
it.

* net/tramp-smb.el (tramp-smb-handle-file-local-copy)
(tramp-smb-handle-write-region): Apply it.
2007-03-05 06:41:59 +00:00
Chong Yidong
e762677c59 (tramp-file-name-handler): Revert last change. 2007-02-28 22:22:20 +00:00
Chong Yidong
cd00d0a053 (tramp-file-name-handler): Inhibit modification hooks to avoid
confusion when combining after-change calls.
2007-02-28 01:35:20 +00:00
Michael Albinus
bf0503cba9 * net/tramp.el (tramp-get-ls-command, tramp-get-file-exists-command)
(tramp-get-remote-ln): Handle error case.  Reported by Chris Moore
<dooglus@gmail.com>.
2007-02-12 06:19:54 +00:00
Michael Albinus
00e10871c5 * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
default-directory to a sane value when calling start-process.
2007-01-27 14:40:08 +00:00
Glenn Morris
cbd12ed70a (tramp-perl-encode, tramp-perl-decode): Update copyrights. 2007-01-21 20:38:00 +00:00
Michael Albinus
d8bba37c56 * net/tramp.el (tramp-handle-file-local-copy): Set
`enable-multibyte-characters' to nil.  Reported by Chris Moore
<christopher.ian.moore@gmail.com>.
2007-01-11 20:08:04 +00:00
Michael Albinus
e64666972e * net/tramp.el: (tramp-process-one-action): Remove `with-timeout'.
(tramp-process-actions): Add optional parameter TIMEOUT.
(tramp-open-connection-telnet, tramp-open-connection-rsh)
(tramp-open-connection-su): Add timeout of 60".
2007-01-09 05:04:15 +00:00
Michael Albinus
496f830892 * net/tramp.el (tramp-default-method): Don't call `symbol-function'.
Apply `funcall' directly on 'executable-find.
2006-12-31 15:03:51 +00:00
Michael Albinus
658052a2ce Sync with Tramp 2.0.55. 2006-12-30 16:17:10 +00:00
Michael Albinus
83e20b5c89 * net/tramp.el (tramp-default-method): We still need to check for
`executable-find', because it is not bound under Emacs 20.
2006-12-20 21:29:46 +00:00
Michael Albinus
e1e17cae49 * net/ange-ftp.el (ange-ftp-file-name-completion): Handle optional
parameter PREDICATE.

* lisp/tramp.el (tramp-handle-file-name-completion)
(tramp-completion-handle-file-name-completion): Handle optional
parameter PREDICATE.
(tramp-find-default-method): Add code for default values.
2006-12-20 05:57:41 +00:00
Michael Albinus
bb8792de32 *** empty log message *** 2006-12-19 07:26:25 +00:00
Michael Albinus
572b79d819 * net/tramp.el (tramp-methods): Introduce new method `scpc'.
Remove "ControlMaster" option from the other `scp*' methods.
(tramp-default-method): Check for ssh-agent before setting to
`scp'.
2006-12-19 06:56:27 +00:00
Michael Albinus
210a7c2c92 * net/tramp.el (tramp-default-method): Before setting to "pscp",
check whether package password.el is loaded, or Pageant is running.
2006-12-17 12:58:04 +00:00
Michael Albinus
5717642238 * net/tramp.el (tramp-methods): Add "ControlPath" and
"ControlMaster" to scp, scp1 and scp2 methods.  Suggested by
Andreas Schwab <schwab@suse.de>.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-open-connection-rsh): Compute format spec for ?t.
(tramp-process-actions): Trace command parameters.
2006-12-04 06:51:21 +00:00
Lars Hansen
6b2633cced (tramp-default-method): Under Windows, change from plink to pscp.
(tramp-copy-failed-regexp, tramp-action-copy-failed): Add.
(tramp-actions-copy-out-of-band): Add pair (tramp-copy-failed-regexp tramp-action-copy-failed).
(tramp-action-out-of-band): Move "Permission denied" handling to tramp-action-copy-failed.
(tramp-do-copy-or-rename-file-out-of-band): unwind-protect killing of process buffer.
2006-11-24 19:14:46 +00:00
Michael Albinus
d8d555f293 * net/tramp.el (top): cl and custom are always required. 2006-11-18 17:42:32 +00:00
Glenn Morris
95bb178f0c (tramp-unified-filenames): Improve previos doc fix. 2006-11-11 04:01:02 +00:00
Glenn Morris
3b004a2d9e (tramp-unified-filenames): Doc fix (Nil -> nil). 2006-11-10 09:10:07 +00:00
Michael Albinus
1d1c19ca25 * lisp/net/tramp.el (tramp-default-method): scp is the default method.
* man/tramp.texi (Configuration): scp is the default method.
(Default Method): Use ssh as example for another method.
2006-11-07 10:58:19 +00:00
Lars Hansen
8e7225a262 (with-parsed-tramp-file-name): Correct debug spec. Highlight as keyword.
(tramp-do-copy-or-rename-file): Correct data for 'file-already-exists.
Don't call tramp-method-out-of-band-p for local files.
(tramp-touch): Quote file name.
2006-10-29 12:55:35 +00:00
Michael Albinus
1a762140f1 Sync with Tramp 2.0.54. 2006-08-29 05:48:40 +00:00
Michael Albinus
d163f71e86 * net/tramp.el (tramp-handle-shell-command): Preserve current-buffer. 2006-07-02 20:29:20 +00:00
Michael Albinus
08b1eb21d5 * net/rcompile.el (remote-compile): Replace ange-ftp based
implementation by Tramp functions.  Based on a patch published by
Marc Abramowitz <msabramo@gmail.com>.

* net/tramp.el (tramp-unload-tramp): Provide a doc string.
2006-06-25 21:05:03 +00:00
Michael Albinus
8a7269eb1b * net/tramp.el (tramp-touch): Use UTC to express time. 2006-06-15 21:55:39 +00:00
Michael Albinus
b5bbf8f27d * net/tramp.el (tramp-register-file-name-handlers): Enable Tramp
completion also when ido is loaded.
2006-05-09 04:26:23 +00:00
Michael Albinus
a01b1e220c * net/tramp.el (tramp-completion-file-name-handler-alist)
(tramp-run-real-handler, tramp-completion-run-real-handler)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Autoload them.
(tramp-completion-handle-file-exists-p)
(tramp-completion-handle-file-name-directory)
(tramp-completion-handle-file-name-nondirectory)
(tramp-completion-handle-expand-file-name): Remove them.
(tramp-handle-file-name-directory): Return the real directory
name.  Returning "/" only doesn't need to be necessary any longer.
(tramp-file-name-handler): Make special attention when in hostname
completion mode.
(tramp-completion-file-name-handler): Revert patch from
2006-04-28.
(tramp-register-file-name-handlers): Register
`tramp-completion-file-name-handler' only when
`partial-completion-mode� is enabled.
(tramp-completion-handle-file-name-all-completions): Delete
directory part from results.
(tramp-get-completion-methods, tramp-get-completion-user-host):
Discard deleting "/", it doesn't work after the change of
`tramp-handle-file-name-directory' above.
2006-05-01 13:22:15 +00:00
Richard M. Stallman
41c8e348f2 tramp-file-name-handler-alist): Delete expand-file-name and other
operations that can cause spurious loading.
2006-04-29 15:58:42 +00:00
Michael Albinus
1ecc6145d8 * net/tramp.el (tramp-completion-file-name-handler): Disable
Tramp's functionality while loading Tramp itself.
(tramp-register-file-name-handlers): That's a defsubst now.  Code
from `tramp-repair-jka-compr' moved here.  Apply it via
`after-init-hook'.
(tramp-repair-jka-compr): Removed.
2006-04-28 04:06:16 +00:00
Michael Albinus
8c04e197f2 * net/tramp.el (tramp-register-file-name-handlers): New defun.
Added with autoload cookie.
(tramp-unload-file-name-handlers): Renamed from
`tramp-unload-file-name-handler-alist'.
2006-04-23 21:45:28 +00:00
Juanma Barranquero
aa04257e45 (tramp-completion-file-name-handler): Revert change of 2006-04-17. 2006-04-18 10:02:40 +00:00
Michael Albinus
8580639069 Sync with Tramp 2.0.53. 2006-04-17 12:56:56 +00:00
Michael Albinus
32f9593c7c * net/tramp.el (tramp-display-shell-command-buffer): New defvar.
(tramp-handle-shell-command): Display output buffer only when
`tramp-display-shell-command-buffer' is true.
(tramp-handle-process-file): Set `tramp-display-shell-command-buffer'.
2006-04-13 19:51:04 +00:00
Michael Albinus
7dbde7dd2e * net/tramp.el (tramp-remote-path): Add "/usr/xpg4/bin" on top,
because on Solaris a POSIX compatible "id" is needed.  Reported by
Magnus Henoch <mange@freemail.hu>.
2006-02-12 20:22:28 +00:00
Sam Steingold
df2a9b125d (tramp-maybe-open-connection): Do not wait for output from a dead connection. 2006-02-08 15:47:31 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
Michael Albinus
ca637b2a27 * net/tramp.el (tramp-convert-file-attributes): Set file's gid
change bit only when id-format is 'integer.  Reported by Matt
Hodges <M.P.Hodges@rl.ac.uk>.
2006-02-01 22:26:45 +00:00
Michael Albinus
a69c01a0b7 Sync with Tramp 2.0.52. 2006-01-22 21:59:55 +00:00
Lars Hansen
e89cd3e696 (tramp-action-out-of-band): Handle scp message "Permission denied". 2005-11-02 07:05:56 +00:00
Michael Albinus
55880756f1 * net/tramp.el (tramp-chunksize): Escape parentheses in docstring
starting at beginning of line.  Fontification is messed up when
`open-paren-in-column-0-is-defun-start' set to t.  Reported
by John Paul Wallington <jpw@pobox.com>.
2005-10-30 19:58:40 +00:00
Richard M. Stallman
8cee983d52 (tramp-completion-mode): defvar moved up. 2005-10-28 16:23:55 +00:00
Michael Albinus
c1253aade3 * net/tramp.el (tramp-completion-mode): New defvar. Used in
`tramp-completion-mode' for checking if we are in completion mode.
(tramp-completion-handle-file-name-all-completions): Reorder code
in order to complete for file names only in case there are no
method/user/host completions.  This is necessary for cooperation
with ido.  Reported by Kim F. Storm  <storm@cua.dk>.
2005-10-17 04:46:46 +00:00
Lars Hansen
8cb0a5590f (tramp-perl-directory-files-and-attributes): Add error handling.
(tramp-handle-directory-files-and-attributes): Handle error perl error message.
2005-10-08 18:26:14 +00:00