1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

* tramp.texi (Overview): Mention also the PuTTY integration under

Win32.  Remove paragraphs about Tramp's experimental status.
(Frequently Asked Questions): Add code example for highlighting the
mode line.
This commit is contained in:
Michael Albinus 2007-11-07 20:43:59 +00:00
parent b08104a01d
commit e1176b472d
2 changed files with 44 additions and 22 deletions

View File

@ -1,3 +1,10 @@
2007-11-07 Michael Albinus <michael.albinus@gmx.de>
* tramp.texi (Overview): Mention also the PuTTY integration under
Win32. Remove paragraphs about Tramp's experimental status.
(Frequently Asked Questions): Add code example for highlighting the
mode line.
2007-11-03 Michael Olson <mwolson@gnu.org> 2007-11-03 Michael Olson <mwolson@gnu.org>
* remember.texi: Change mentions of remember-buffer to * remember.texi: Change mentions of remember-buffer to

View File

@ -260,6 +260,9 @@ box, one of the more common uses of the package. This allows
relatively secure access to machines, especially if @command{ftp} relatively secure access to machines, especially if @command{ftp}
access is disabled. access is disabled.
Under Windows, @value{tramp} is integrated with the PuTTY package,
using the @command{plink} program.
The majority of activity carried out by @value{tramp} requires only that The majority of activity carried out by @value{tramp} requires only that
the remote login is possible and is carried out at the terminal. In the remote login is possible and is carried out at the terminal. In
order to access remote files @value{tramp} needs to transfer their content order to access remote files @value{tramp} needs to transfer their content
@ -269,9 +272,9 @@ to the local machine temporarily.
The details are easy to select, depending on your needs and the The details are easy to select, depending on your needs and the
machines in question. machines in question.
The fastest transfer methods (for large files) rely on a remote file The fastest transfer methods for large files rely on a remote file
transfer package such as @command{rcp}, @command{scp} or transfer package such as @command{rcp}, @command{scp}, @command{rsync}
@command{rsync}. or (under Windows) @command{pscp}.
If the remote copy methods are not suitable for you, @value{tramp} also If the remote copy methods are not suitable for you, @value{tramp} also
supports the use of encoded transfers directly through the shell. supports the use of encoded transfers directly through the shell.
@ -279,15 +282,6 @@ This requires that the @command{mimencode} or @command{uuencode} tools
are available on the remote machine. These methods are generally are available on the remote machine. These methods are generally
faster for small files. faster for small files.
Within these limitations, @value{tramp} is quite powerful. It is worth
noting that, as of the time of writing, it is far from a polished
end-user product. For a while yet you should expect to run into rough
edges and problems with the code now and then.
It is finished enough that the developers use it for day to day work but
the installation and setup can be a little difficult to master, as can
the terminology.
@value{tramp} is still under active development and any problems you encounter, @value{tramp} is still under active development and any problems you encounter,
trivial or major, should be reported to the @value{tramp} developers. trivial or major, should be reported to the @value{tramp} developers.
@xref{Bug Reports}. @xref{Bug Reports}.
@ -2665,24 +2659,45 @@ remote host.
@lisp @lisp
(defadvice tramp-handle-write-region (defadvice tramp-handle-write-region
(after tramp-write-beep-advice activate) (after tramp-write-beep-advice activate)
" make tramp beep after writing a file." "Make tramp beep after writing a file."
(interactive) (interactive)
(beep)) (beep))
(defadvice tramp-handle-do-copy-or-rename-file (defadvice tramp-handle-do-copy-or-rename-file
(after tramp-copy-beep-advice activate) (after tramp-copy-beep-advice activate)
" make tramp beep after copying a file." "Make tramp beep after copying a file."
(interactive) (interactive)
(beep)) (beep))
(defadvice tramp-handle-insert-file-contents (defadvice tramp-handle-insert-file-contents
(after tramp-copy-beep-advice activate) (after tramp-insert-beep-advice activate)
" make tramp beep after copying a file." "Make tramp beep after inserting a file."
(interactive) (interactive)
(beep)) (beep))
@end lisp @end lisp
@ifset emacs
@item
I'ld like to get a Visual Warning when working in a sudo:ed context
When you are working with @samp{root} privileges, it might be useful
to get an indication in the buffer's modeline. The following code,
tested with @value{emacsname} 22.1, does the job. You should put it
into your @file{~/.emacs}:
@lisp
(defun my-mode-line-function ()
(when (string-match "^/su\\(do\\)?:" default-directory)
(setq mode-line-format
(format-mode-line mode-line-format 'font-lock-warning-face))))
(add-hook 'find-file-hooks 'my-mode-line-function)
(add-hook 'dired-mode-hook 'my-mode-line-function)
@end lisp
@end ifset
@ifset emacs @ifset emacs
@item @item
I'ld like to see a host indication in the mode line when I'm remote I'ld like to see a host indication in the mode line when I'm remote