diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2011-07-04 14:12:38 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2011-07-04 14:12:38 +0200 |
commit | 6d95bd466439906b67b9c06647f3d20857c30599 (patch) | |
tree | ad7faf504f697ee76927dcb786908c730f56103d /lisp/net/tramp-cmds.el | |
parent | 909e6b672d29759956482ba89d5591432c7370e3 (diff) | |
download | emacs-6d95bd466439906b67b9c06647f3d20857c30599.tar.gz |
* net/tramp-cmds.el (tramp-cleanup-this-connection): New command.
* net/tramp-sh.el (tramp-color-escape-sequence-regexp): New defconst.
(tramp-sh-handle-insert-directory, tramp-convert-file-attributes):
Use it.
(tramp-remote-path): Add "/bin" and "/usr/bin". On busyboxes,
`tramp-default-remote-path' does not exist.
(tramp-send-command-and-read): New optional argument NOERROR.
(tramp-open-connection-setup-interactive-shell)
(tramp-get-remote-path, tramp-get-remote-stat): Use it.
(tramp-get-remote-readlink): Do not mask with `ignore-errors'.
(tramp-process-sentinel): Flush also process' connection property.
(tramp-sh-handle-start-file-process): Do not set process
sentinel. It is done now ...
(tramp-maybe-open-connection): ... here. (Bug#8929)
Diffstat (limited to 'lisp/net/tramp-cmds.el')
-rw-r--r-- | lisp/net/tramp-cmds.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el index 764ee35d45b..fcf523a7068 100644 --- a/lisp/net/tramp-cmds.el +++ b/lisp/net/tramp-cmds.el @@ -100,6 +100,15 @@ When called interactively, a Tramp connection has to be selected." (when (bufferp buf) (kill-buffer buf))))) ;;;###tramp-autoload +(defun tramp-cleanup-this-connection () + "Flush all connection related objects of the current buffer's connection." + (interactive) + (and (stringp default-directory) + (file-remote-p default-directory) + (tramp-cleanup-connection + (tramp-dissect-file-name default-directory 'noexpand)))) + +;;;###tramp-autoload (defun tramp-cleanup-all-connections () "Flush all Tramp internal objects. This includes password cache, file cache, connection cache, buffers." |