Commit graph

261 commits

Author SHA1 Message Date
Michael Albinus
aa485f7ca5 * net/tramp.el (all): Replace "'(lambda" by "(lambda".
(tramp-handle-file-local-copy): Unset `file-name-handler-alist'
when writing the temp file.  Otherwise, epa-file gets confused.
(tramp-register-file-name-handlers): Make it a defun.  Move also
`epa-file-handler' to the front of `file-name-handler-alist'.

* net/tramp.el (tramp-shell-prompt-pattern): Allow a prompt to
start right after a ^M.
(tramp-root-regexp, tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Use \\` and \\'.
(tramp-handle-file-attributes, tramp-set-file-uid-gid): Don't
modify last-coding-system-used by accident.
(tramp-completion-file-name-handler): Apply the checks here,
instead during registration.
(tramp-register-file-name-handlers) Renamed from
`tramp-register-file-name-handler'.  Register both
`tramp-file-name-handler' and `tramp-completion-file-name-handler'.
(tramp-register-completion-file-name-handler): Removed.
2009-08-28 12:11:58 +00:00
Michael Albinus
946a5aeb7d * net/tramp.el (tramp-methods): New method "rsyncc".
(top): Add completion function for "rsyncc".
(tramp-message-show-message): New defvar.
(tramp-message, tramp-error): Use it.
(tramp-do-copy-or-rename-file-directly): Extend check for direct
remote copying.
(tramp-do-copy-or-rename-file-out-of-band): Handle new
`tramp-methods' entry `copy-env' of "rsyncc".
((tramp-handle-process-file): Do not flush all
caches when `process-file-side-effects' is set.
tramp-vc-registered-read-file-names): New defconst.
(tramp-vc-registered-file-names): New defvar.
(tramp-handle-vc-registered): Implement optimization strategy.
(tramp-run-real-handler): Add `tramp-vc-file-name-handler'.
(tramp-vc-file-name-handler): New defun.
(tramp-get-ls-command, tramp-get-test-command)
(tramp-get-file-exists-command, tramp-get-remote-ln)
(tramp-get-remote-perl, tramp-get-remote-stat)
(tramp-get-remote-id): Remove
superfluous `with-current-buffer'.
2009-08-27 13:47:55 +00:00
Michael Albinus
56c195afd0 * net/tramp.el (tramp-register-completion-file-name-handler):
Check also for (member 'partial-completion completion-styles).
2009-08-17 19:12:10 +00:00
Michael Albinus
8e754ea218 * net/tramp.el (tramp-get-ls-command-with-dired): New defun.
(tramp-handle-insert-directory): Handle "--dired".  (Bug#4075)
2009-08-09 14:29:11 +00:00
Michael Albinus
2ac338048e * net/tramp.el (top): Make check for tramp-gvfs loading more
robust.
(tramp-handle-insert-file-contents): `unwind-protect' must be
inside `with-parsed-tramp-file-name'.
2009-08-04 03:32:33 +00:00
Michael Albinus
adcbca532b * net/tramp.el (tramp-rfn-eshadow-update-overlay-regexp) New
defconst.
(tramp-rfn-eshadow-update-overlay): Use it.
2009-08-03 08:22:04 +00:00
Michael Albinus
736ac90f59 * net/tramp.el (tramp-debug-message): Print also microseconds.
(tramp-handle-insert-file-contents): Optimize, when BEG
or END is non-nil.
(tramp-handle-vc-registered): Use `tramp-cache-inhibit-cache'.
(tramp-get-debug-buffer): Change `outline-regexp' according to new
format.
2009-08-02 17:16:39 +00:00
Michael Albinus
905fb90eb1 * net/tramp.el (tramp-do-copy-or-rename-file): Add messages.
Simplify check for out-of-band methods.
(tramp-do-copy-or-rename-file-out-of-band): Allow both files to be
remote.  Remove messages which are in `tramp-do-copy-or-rename-file'.
2009-07-28 20:36:57 +00:00
Michael Albinus
bede3e9f87 * net/tramp.el (tramp-wait-for-output): Handle the case when
commands do not return a newline but a null byte before the shell
prompt.  (Bug#3858)
2009-07-16 10:24:07 +00:00
Michael Albinus
93c3eb7c61 * net/tramp.el (tramp-set-file-uid-gid): Handle the case the
remote user is root, on the local host.
(tramp-local-host-p): Either the local user or the remote user
must be root.
2009-07-08 12:43:42 +00:00
Michael Albinus
3e2fa35354 * net/tramp.el (tramp-handle-write-region): Flush file properties
in case of short track.
2009-07-06 13:37:29 +00:00
Michael Albinus
551b8e0b8c Remove todo items. 2009-06-30 21:10:55 +00:00
Michael Albinus
974647ac91 * net/tramp.el (tramp-default-file-modes) Remove execute permissions. 2009-06-30 15:23:50 +00:00
Michael Albinus
4f4126e6a3 * net/tramp.el (tramp-do-copy-or-rename-file-directly): Handle
also the 'rename case, when setting file modes.  (Bug#3712)
2009-06-30 11:55:41 +00:00
Michael Albinus
1f107aed49 * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file
modes mandatory.  (Bug#3712)
2009-06-29 20:41:17 +00:00
Michael Albinus
70c11b0be3 * net/tramp.el (top): Require tramp-gvfs. Catch `tramp-loading',
when a loading of a package fails.  Completion function for rsync
is `tramp-completion-function-alist-ssh'.
(all): Replace all calls of `split-string' and
`tramp-split-string' by `tramp-compat-split-string'.
(tramp-default-method): Use `tramp-compat-process-running-p'.
(tramp-default-proxies-alist): Allow also Lisp forms.
(tramp-remote-path): Add choice "Private Directories".
(tramp-wrong-passwd-regexp): Remove "Tramp connection closed"
option.
(tramp-domain-regexp): Allow also "-", "_" and ".".
(tramp-end-of-output): Remove newlines, and add "$" at the end.
(tramp-file-name-handler-alist): Add handler for `dired-uncache'.
(tramp-debug-message): Insert header line in debug buffer.
(tramp-handle-directory-files-and-attributes-with-stat): Care
about filenames with spaces, or starting with "-".
(tramp-handle-dired-uncache): New defun.
(tramp-handle-insert-directory): Don't flush the directory from
cache, this is handled by `dired-uncache' now.
(tramp-handle-insert-file-contents): Improve error handling.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Quote `tramp-end-of-output'.
(tramp-action-password): Improve trace message.
(tramp-check-for-regexp): Both echoes must be present, before
removing.
(tramp-open-connection-setup-interactive-shell): Trace coding
system.
(tramp-compute-multi-hops): Eval cons cells of
`tramp-default-proxies-alist'.
(tramp-maybe-open-connection): Use the same command pattern for
first hop and further hops.
(tramp-wait-for-output): Remove handling of newlines.
(tramp-get-remote-path): Handle also `tramp-own-remote-path'.
(tramp-split-string): Remove function.  It is handled in
tramp-compat now.
2009-06-22 21:05:54 +00:00
Michael Albinus
917b89a691 * net/tramp.el (tramp-do-copy-or-rename-file-directly): Make direct
copy more robust, especially when "chown" is not applicable.
2009-06-07 16:17:03 +00:00
Michael Albinus
661aaece10 * tramp.el (tramp-open-connection-setup-interactive-shell): Apply
workaround for OpenSolaris bug.
2009-06-06 23:25:56 +00:00
Michael Albinus
65a099b679 * net/tramp.el (tramp-handle-directory-files-and-attributes-with-stat)
(tramp-handle-file-name-all-completions): Don't use "-b" as ls
arg.  It does not work on OpenBSD.  Reported by Taylor Venable
<taylor@metasyntax.net>.
2009-04-24 13:54:50 +00:00
Michael Albinus
260821d3d5 * net/tramp.el (tramp-handle-dired-recursive-delete-directory):
Fix an error in flushing cache data.
(tramp-handle-process-file): Flush all file cache values for the
connection, because the remote process could have changed them.
Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
Handle QUIT.
2009-04-14 14:36:38 +00:00
Michael Albinus
5ab38c3c5a * tramp.el (tramp-do-copy-or-rename-file-directly): Overwrite
always the tmpfile.  (Bug#2962).
2009-04-12 19:26:36 +00:00
Michael Albinus
4909640742 * net/tramp.el (tramp-file-name-handler-alist): Add
`vc-registered'.
(tramp-handle-vc-registered ): New defun.  (Bug#1741).
2009-04-09 13:46:27 +00:00
Michael Albinus
b86c1cd8d3 * net/tramp.el (tramp-default-file-modes) New defun. Replace all
calls of `file-modes' by this.
(tramp-handle-find-backup-file-name): Use `symbol-value' instead
of `boundp'.
2009-04-05 18:06:55 +00:00
Michael Albinus
3dc847a379 * net/tramp.el (tramp-remote-coding-commands): Add "base64". (Bug#2463) 2009-02-26 14:31:00 +00:00
Michael Albinus
cb85dcd0dc * net/tramp.el (tramp-read-passwd): Cached passwords shall still be used. 2009-02-01 10:48:12 +00:00
Michael Albinus
5c7043a248 * net/tramp.el (tramp-process-actions, tramp-read-passwd): Allow
correction of passwords.
2009-01-29 16:26:53 +00:00
Michael Albinus
e0b6e3b945 * net/tramp.el (tramp-ipv6-regexp): The regexp shall cover also
IPv4 mapped IPv6 addresses.
2009-01-19 06:52:50 +00:00
Michael Albinus
c28f19e5ac * net/tramp.el: Revert previous patch. `last-command-char' is
used in code used only for XEmacs, where it is different from
`last-command-event'.
2009-01-09 08:15:27 +00:00
Glenn Morris
61a846fbec Replace last-command-char with last-command-event. 2009-01-09 04:29:16 +00:00
Michael Albinus
2c418c5bbf * net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file): Delete temporary file in case of
quit.
2009-01-06 07:56:42 +00:00
Michael Albinus
2988341a84 * net/tramp.el (tramp-do-copy-or-rename-file-directly)
(tramp-handle-file-local-copy, tramp-handle-write-region)
Delete temporary file in case of quit.
2009-01-06 07:51:09 +00:00
Michael Albinus
ce2cc72811 * net/tramp.el (tramp-handle-load)
(tramp-do-copy-or-rename-file-directly)
(tramp-handle-file-local-copy, tramp-handle-insert-file-contents)
(tramp-handle-write-region): Delete temporary file in case of
error.
2009-01-05 19:37:01 +00:00
Glenn Morris
46932a8db5 (tramp-perl-encode, tramp-perl-decode): Update copyrights for 2009. 2009-01-05 02:00:02 +00:00
Michael Albinus
b96e689991 * net/tramp.el (tramp-local-host-regexp)
(tramp-prefix-domain-format)
(tramp-prefix-domain-regexp, tramp-domain-regexp)
(tramp-user-with-domain-regexp, tramp-prefix-ipv6-format)
(tramp-prefix-ipv6-regexp, tramp-ipv6-regexp)
(tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp): New
defconst.
(tramp-file-name-structure, tramp-file-name-regexp-unified)
(tramp-completion-dissect-file-name, tramp-parse-hosts-group)
(tramp-dissect-file-name, tramp-make-tramp-file-name)
(tramp-completion-make-tramp-file-name): Handle IPv6 addresses.
(tramp-handle-insert-file-contents): Fix setting of
`buffer-read-only'.
(tramp-compute-multi-hops, tramp-local-host-p): Use
`tramp-local-host-regexp'.
(tramp-file-name-real-user, tramp-file-name-domain): Use
`tramp-user-with-domain-regexp'.
2009-01-03 14:58:15 +00:00
Michael Albinus
dea31ca610 * net/tramp.el (tramp-rfn-eshadow-update-overlay): Move overlay to
end, before updating.
(tramp-convert-file-attributes): Add "l" indicator to file modes.
(tramp-file-name-real-user, tramp-file-name-domain): New defuns.
2008-12-22 16:40:14 +00:00
Juanma Barranquero
a512e1a234 * net/tramp.el (top): Don't fail if there is no current message. 2008-12-10 10:21:03 +00:00
Michael Albinus
ccb4a48152 * net/tramp.el (top): Write a message, when loading Tramp. 2008-12-04 20:44:11 +00:00
Michael Albinus
1d7e9a015e * net/tramp.el (tramp-handle-write-region): Improve the check for
calling direct copy.
(tramp-find-inline-encoding): Don't raise an error but a warning,
when no inline encoding is found.
(tramp-get-remote-coding): Check for a symbol.  The negative check
for a string fails, when there is an empty string.
2008-11-26 06:09:17 +00:00
Michael Albinus
c0fc617049 * net/tramp.el (tramp-handle-file-name-as-directory): New defun.
(tramp-file-name-handler-alist): Handle `file-name-as-directory'.
2008-11-16 14:14:03 +00:00
Juanma Barranquero
8fc29035f3 * w32-fns.el (w32-shell-dos-semantics):
* calendar/diary-lib.el (diary-face-attrs):
* international/mule-cmds.el (set-default-coding-systems)
  (prefer-coding-system):
* net/tramp.el (tramp-set-completion-function):
* progmodes/vhdl-mode.el (vhdl-file-header):
* term/pc-win.el (msdos-show-help): Fix typos in docstrings.

* emacs-lisp/authors.el (authors-fixed-entries): Fix typo in value.

* files.el (enable-local-eval, not-modified, kill-buffer-ask)
  (kill-matching-buffers, save-buffers-kill-emacs)
  (save-buffers-kill-terminal): Fix typos in docstrings.
  (switch-to-buffer-other-window): Reflow docstring.
  (revert-buffer): Doc fix.
  (define-project-bindings): Rename arg LIST to SETTINGS.
  (project-find-settings-file): Use `let', not `let*'.  Use `when'.
2008-11-14 13:05:18 +00:00
Michael Albinus
95d610cb98 * net/tramp.el (tramp-process-one-action): Embed regexp in
parentheses, before adding end-of-buffer construct.  Suggested by
Markus Triska <markus.triska@gmx.at>.
2008-10-14 05:53:56 +00:00
Michael Albinus
97c696d53f * net/tramp.el (tramp-remote-process-environment): Add "EMACS=t"
and "INSIDE_EMACS=...".  Reported by Tassilo Horn <tassilo@member.fsf.org>.
2008-08-22 19:22:55 +00:00
Andreas Schwab
f34db3167f (tramp-handle-shell-command): Handle output going
to current buffer like shell-command.  Don't disable undo.
2008-08-13 19:33:36 +00:00
Andreas Schwab
5d2ebd96ec (tramp-handle-shell-command): Correctly handle
output going to current buffer.  Don't disable undo.
2008-08-13 19:09:10 +00:00
Michael Albinus
b946a4567c * net/tramp.el (tramp-perl-directory-files-and-attributes)
(tramp-get-device): Make device number a cons cell.
(tramp-convert-file-attributes): Make inode a cons cell.
2008-07-28 03:47:00 +00:00
Michael Albinus
6ce63faf37 * net/tramp.el (tramp-handle-start-file-process): Set
query-on-exit flag. Kill temporary buffer.
(tramp-process-sentinel): Remove defun.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):Don't call it.
2008-07-26 18:43:51 +00:00
Michael Albinus
38d63e6af4 * net/tramp.el (tramp-handle-start-file-process): Make NAME a unique
process name.  Reported by Markus Triska <markus.triska@gmx.at>.
2008-07-24 21:46:20 +00:00
Michael Albinus
2296b54d60 * net/tramp.el (tramp-methods): Add "-q" for "scp", "scp1",
"scp2", "ssh", "ssh1", "ssh2", "scpc", "scpx", "sshx".
(tramp-temp-buffer-name): New defconst.
(tramp-handle-start-file-process): Use it.  Apply "exec", for the
command.  No trailing prompt.
(tramp-process-sentinel): Remove temporary buffer, if existing.
Don't handle trailing prompt.
(tramp-open-connection-setup-interactive-shell): Use
`tramp-temp-buffer-name'.
2008-07-23 19:17:55 +00:00
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