1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

213 Commits

Author SHA1 Message Date
Michael Albinus
5da241082e * net/tramp.el (tramp-handle-file-modes): Handle symlinks.
(tramp-convert-file-attributes): Convert symlinks only when
returned from `tramp-handle-file-attributes-with-stat'.
2008-06-28 10:17:22 +00:00
Glenn Morris
04bf5b655a American English spelling fix. 2008-06-27 02:14:52 +00:00
Michael Albinus
d8ac123e39 (tramp-open-connection-setup-interactive-shell): Flush cache, and
restart `tramp-maybe-open-connection' when the remote system has
been changed. Throw 'uname-changed event.
(tramp-maybe-open-connection): Catch it.
2008-06-15 16:59:25 +00:00
Michael Albinus
11c712173e * net/tramp.el (tramp-handle-start-file-process): Clear
modification time of the connection buffer.
(tramp-sh-file-name-handler): Reset `tramp-locked' in case of
error.
2008-06-15 13:36:30 +00:00
Michael Albinus
48846dc595 * net/tramp.el (top): Quote feature names. Remove
`tramp-rfn-eshadow-setup-minibuffer' from
`rfn-eshadow-setup-minibuffer-hook' when unloading.
(tramp-read-passwd): There is only one call to
`auth-source-user-or-password' needed.  Pacify byte compiler.
2008-06-08 10:49:19 +00:00
Glenn Morris
bcb04d981a (top-level): Load auth-source when compiling. 2008-05-17 20:10:06 +00:00
Michael Albinus
82f3844e66 * net/tramp.el (tramp-handle-write-region): Fix check for short
track.  Reported by Glenn Morris <rgm@gnu.org>.
2008-05-16 20:20:36 +00:00
Michael Albinus
5615d63fac * net/tramp.el: Load auth-source library.
(tramp-read-passwd): Use it for password, not login.
(tramp-file-name-for-operation): Add `make-temp-name'.
2008-05-15 21:06:59 +00:00
Michael Albinus
674da0287d * net/tramp.el (tramp-echo-mark): Update docstring.
(tramp-echo-mark-marker): New defconst.
(tramp-check-for-regexp): Use it.
2008-05-14 19:55:11 +00:00
Glenn Morris
874a927a02 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:31:51 +00:00
Michael Albinus
2e27119583 * net/tramp.el (tramp-mode): New defcustom.
(tramp-file-name-handler, tramp-completion-file-name-handler): Use
it.
(tramp-replace-environment-variables): Handle "$$".
2008-04-28 19:07:26 +00:00
Michael Albinus
87bdd2c7a5 * net/tramp.el (tramp-handle-make-symbolic-link)
(tramp-handle-file-name-directory)
(tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
(tramp-do-copy-or-rename-file-directly)
(tramp-handle-insert-directory, tramp-handle-expand-file-name)
(tramp-handle-substitute-in-file-name)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
* net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property)
* net/tramp-cpmpat.el (tramp-compat-make-temp-file)
* net/tramp-fish.el (tramp-fish-handle-expand-file-name): Disable
`file-name-handler-alist' when handling localname.  It could have
a remote file syntax, like a VMS file name.
2008-04-27 16:39:03 +00:00
Michael Albinus
c23c3394ae * net/tramp.el (tramp-replace-environment-variables): New defun.
(tramp-handle-substitute-in-file-name, tramp-file-name-handler):
Use it.
2008-04-27 09:30:36 +00:00
Michael Albinus
4ad216352e * net/tramp.el (tramp-get-remote-stat): Test whether stat supports
%s.  Reported by Loris Bennett <loris.bennett@fu-berlin.de>.
2008-04-24 19:37:01 +00:00
Michael Albinus
eb56296236 * net/tramp.el (tramp-find-file-name-coding-system-alist): New
defun.
(tramp-handle-insert-file-contents, tramp-handle-write-region):
Use it.
2008-04-09 20:04:14 +00:00
Michael Albinus
60f2c210c0 * net/tramp.el (tramp-methods): Fix again tramp-copy-args of
"pscp" and "psftp".  Reported by Gilles Pion <gpion@lfdj.com>.
2008-04-07 19:29:09 +00:00
Stefan Monnier
343bb7bdd1 (after-init-hook): Don't wrap a lambda around
tramp-register-completion-file-name-handler.
2008-04-04 17:38:44 +00:00
Glenn Morris
628c97b2cf (tramp-drop-volume-letter): Move definition before use. 2008-04-03 03:33:18 +00:00
Michael Albinus
113e2a8447 * net/tramp.el (tramp-make-tramp-temp-file): Use
`tramp-drop-volume-letter' for the local file name part.
2008-04-02 18:58:45 +00:00
Michael Albinus
da1975d727 * net/tramp.el (tramp-do-copy-or-rename-file): Fix check for
overwriting when NEWNAME is a local file.
2008-03-30 18:08:20 +00:00
Michael Albinus
12aeeb576a * tramp.el (tramp-methods): Fix tramp-copy-args of "pscp" and "psftp". 2008-03-21 18:04:42 +00:00
Stefan Monnier
cdd44874a7 Fix up encoding. 2008-03-20 13:42:38 +00:00
Michael Albinus
aff67808c1 * net/tramp.el (tramp-let-maybe): Removed.
(tramp-drop-volume-letter): Don't use `replace-regexp-in-string'.
It does not exist under XEmacs.
(tramp-handle-file-truename, tramp-handle-expand-file-name)
(tramp-completion-file-name-handler): Let-bind
`directory-sep-char'.
2008-03-19 21:06:37 +00:00
Glenn Morris
699a11fbb6 (tramp-drop-volume-letter): Evaluate when compiling. 2008-03-19 07:11:57 +00:00
Juanma Barranquero
78f8b19b35 Fix typos in comments. 2008-03-18 09:17:44 +00:00
Michael Albinus
57671b7218 * net/tramp.el (tramp-root-regexp): Simplify.
(tramp-completion-file-name-regexp-separate): Don't insist on
leading "[".  This prevents method or user or host completion.
(tramp-let-maybe): Autoload it.
(tramp-drop-volume-letter): Don't autoload.  When not on W32, it is
an alias for `identity'.
(tramp-handle-write-region): Protect `last-coding-system-used'
over the trailing statements.
(tramp-completion-file-name-handler-post-function): Removed.
(tramp-completion-file-name-handler): Let-bind
`directory-sep-char' instead of calling
`tramp-drop-volume-letter'.
(top): Move coding cookie at the end.
2008-03-17 22:57:15 +00:00
Stefan Monnier
800a97b891 (tramp-completion-mode-p): Don't use char-equal for
elements which may be something else than characters.
2008-03-17 20:19:00 +00:00
Michael Albinus
8a798e4193 * tramp.el (tramp-root-regexp): New defconst.
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Use it.
(tramp-do-copy-or-rename-file-via-buffer): Set
`enable-multibyte-characters' to nil.  Set `jka-compr-inhibit' to
t for `insert-file-contents-literally'.
(tramp-drop-volume-letter): Rewrite, using `tramp-root-regexp'.
Autoload it.
(tramp-completion-file-name-handler-post-function): New defconst.
(tramp-completion-file-name-handler): Use it.
(tramp-maybe-open-connection): Update calls to
`tramp-flush-connection-property' for removed 2nd argument.
2008-03-15 21:54:02 +00:00
Michael Olson
fd35d9d668 net/tramp.el (tramp-process-sentinel): Avoid error when process buffer killed. 2008-02-09 05:52:07 +00:00
Michael Albinus
cfb5c0dbc6 * net/tramp.el (tramp-process-sentinel): New defun.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use it as process sentinel.
(tramp-handle-delete-directory): Don't use the "-f" option; it
isn't portable.
(tramp-handle-start-file-process): Echo `tramp-end-of-output'
after the command.
(tramp-handle-shell-command): Set `mode-line-process' in the
asynchronous case.
2008-02-03 12:05:05 +00:00
Michael Albinus
42bc9b6d9d * net/tramp.el (tramp-methods): Use "-H" option for "sudo". Suggested
by Trent W. Buck <trentbuck@gmail.com>.  Make ("%h") a single
element in "plinkx".
(tramp-handle-shell-command): Reuse "*Async Shell Command*" or
"*Shell Command Output*" buffers.  Check, whether there is already
an asynchronous process running.  Display always the buffer of the
asynchronous process.
(tramp-compute-multi-hops): Adapt error message.
2008-01-29 21:14:04 +00:00
Michael Albinus
b8bfcf96e8 * net/tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for
the command.
2008-01-28 21:25:26 +00:00
Michael Albinus
2991e49f20 * net/tramp.el (tramp-compute-multi-hops): In case of su(do)?
methods, the host name must be a local host.
2008-01-27 16:20:57 +00:00
Michael Albinus
5d449a36cc * net/tramp.el (tramp-dissect-file-name): Raise an error when
Tramp 2.0 syntax is used.  Suggested by Trent W. Buck
<trentbuck@gmail.com>.
2008-01-26 14:54:55 +00:00
Michael Albinus
484ea0b6c9 * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
the source file in case of `rename'.  Reported by Pete Forman
<pete.forman@westerngeco.com>.
2008-01-24 21:28:56 +00:00
Michael Albinus
a0a5183aa3 * net/tramp.el (tramp-remote-process-environment): Set "LC_ALL=C".
(tramp-end-of-output): Add `tramp-rsh-end-of-line' into the
regexp.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Don't send `tramp-rsh-end-of-line' additionally, when setting the
prompt.
(tramp-wait-for-output): Distinguish different prompt formats.
(tramp-get-test-nt-command): Don't check for "\n" in the prompt.
(tramp-local-host-p): Check whether temp directory is writable.
2008-01-23 20:45:03 +00:00
Michael Albinus
c992abdbc6 * net/tramp.el (tramp-local-host-p): Use `tramp-file-name-host'
instead of `tramp-file-name-real-host'.
2008-01-14 19:36:07 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Michael Albinus
0664ff7221 * vc-git.el (vc-git--call): Apply `process-file' instead of
`call-process'.

* net/tramp.el (tramp-remote-process-environment): Add "LC_CTYPE=C".
Reported by Pete Forman <pete.forman@westerngeco.com>.
(tramp-perl-encode, tramp-perl-decode): Update copyrights.
(tramp-handle-process-file): Handle the case where DESTINATION is
a consp with t as car.
(tramp-wait-for-output): We shall remove exactly what has been
find by the search.
2008-01-08 20:07:21 +00:00
Glenn Morris
2f043267ee Add 2008 to copyright years. 2008-01-07 02:00:47 +00:00
Michael Albinus
adb671295c Sync with Tramp 2.1.12.
* net/tramp.el: New todo item.

* net/tramp-smb.el (tramp-smb-handle-insert-directory): Handle "-F"
switch.  Reported by Mark T. Kennedy <mkennedy@diamondbackcap.com>.

* net/trampver.el: Update release number.
2007-12-23 13:25:27 +00:00
Michael Albinus
9fa0d3aabb * files.el (cd-absolute): Set `list-buffers-directory' in order to
show correct path in buffer list.

* net/tramp.el (tramp-open-connection-setup-interactive-shell)
(tramp-find-shell): Send only single prompt setting commands, in
order to avoid double-prompt.

* net/tramp-compat.el (top): Require cl only when compiling.
Reported by Glenn Morris <rgm@gnu.org>.
2007-12-18 21:02:53 +00:00
Glenn Morris
fd48cd1850 Require password-cache or password. 2007-12-04 04:32:47 +00:00
Michael Albinus
8950769ab6 * net/tramp.el (tramp-open-connection-setup-interactive-shell):
Still some tuning in case of an echoing shell.
(tramp-send-command): Connection property "remote-echo" is not
persistent; cache key is the process therefore.
2007-11-19 20:04:51 +00:00
Dan Nicolaescu
282e1e37cb * net/tramp.el (tramp-terminal-type): Remove duplicated
definition.
2007-11-19 00:25:31 +00:00
Michael Albinus
b50dd0d2b6 * net/tramp.el (tramp-completion-reread-directory-timeout): New
defcustom.
(tramp-handle-file-name-all-completions): Flush directory contents
from cache regularly.
(tramp-set-auto-save-file-modes): Check also for
`buffer-modified-p'.
(tramp-open-connection-setup-interactive-shell): Call
`tramp-cleanup-connection' via funcall.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Temp file is already
created when copying.
2007-11-18 10:24:51 +00:00
Michael Albinus
e42c6bbc41 * net/tramp.el (tramp-open-connection-setup-interactive-shell): Check
whether the output of "uname -sr" has been changed.
2007-11-12 20:04:13 +00:00
Michael Albinus
67932d9460 * net/tramp.el (tramp-maybe-open-connection): Use a local copy of
`process-environment'.
2007-11-08 20:15:25 +00:00
Michael Albinus
b08104a01d * net/tramp.el (tramp-handle-substitute-in-file-name): Don't
expand the remote connection identification.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Set also $PS2 and $PS3 when setting $PS1.  Check for shell echoing
before calling stty.

* net/tramp-cache.el (tramp-cache-print)
(tramp-dump-connection-properties): Fix docstring.
(tramp-list-connections): Renamed from
`tramp-cache-list-connections'.

* net/tramp-cmds.el (tramp-cleanup-connection): Apply it.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Don't expand the
remote connection identification when setting connection property.

* net/tramp-smb.el (tramp-smb-handle-substitute-in-file-name):
"//" substitutes only in the local filename part.
2007-11-07 20:41:15 +00:00
Michael Albinus
726f027253 * net/tramp.el (top): Don't autoload `tramp-cache-print'.
* net/tramp-cache (tramp-cache-print): Move down.
(tramp-cache-list-connections): New defun.

* net/tramp-cmds.el (tramp-cleanup-connection): Use it.
2007-11-06 21:17:36 +00:00