Commit graph

826 commits

Author SHA1 Message Date
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
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