aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2007-11-07 20:43:59 +0000
committerMichael Albinus2007-11-07 20:43:59 +0000
commite1176b472d91d5ef62507ed9005769fdaed1d6c4 (patch)
tree4903389425f96db55cd4e1771d0c482dc96a595b /doc/misc
parentb08104a01d188359cad1244e25f76b84956a3e75 (diff)
downloademacs-e1176b472d91d5ef62507ed9005769fdaed1d6c4.tar.gz
emacs-e1176b472d91d5ef62507ed9005769fdaed1d6c4.zip
* 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.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog7
-rw-r--r--doc/misc/tramp.texi59
2 files changed, 44 insertions, 22 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 409692bdeb3..c9e77908619 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,10 @@
12007-11-07 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Overview): Mention also the PuTTY integration under
4 Win32. Remove paragraphs about Tramp's experimental status.
5 (Frequently Asked Questions): Add code example for highlighting the
6 mode line.
7
12007-11-03 Michael Olson <mwolson@gnu.org> 82007-11-03 Michael Olson <mwolson@gnu.org>
2 9
3 * remember.texi: Change mentions of remember-buffer to 10 * remember.texi: Change mentions of remember-buffer to
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index e208f54b38b..591122640fe 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -260,6 +260,9 @@ box, one of the more common uses of the package. This allows
260relatively secure access to machines, especially if @command{ftp} 260relatively secure access to machines, especially if @command{ftp}
261access is disabled. 261access is disabled.
262 262
263Under Windows, @value{tramp} is integrated with the PuTTY package,
264using the @command{plink} program.
265
263The majority of activity carried out by @value{tramp} requires only that 266The majority of activity carried out by @value{tramp} requires only that
264the remote login is possible and is carried out at the terminal. In 267the remote login is possible and is carried out at the terminal. In
265order to access remote files @value{tramp} needs to transfer their content 268order to access remote files @value{tramp} needs to transfer their content
@@ -269,9 +272,9 @@ to the local machine temporarily.
269The details are easy to select, depending on your needs and the 272The details are easy to select, depending on your needs and the
270machines in question. 273machines in question.
271 274
272The fastest transfer methods (for large files) rely on a remote file 275The fastest transfer methods for large files rely on a remote file
273transfer package such as @command{rcp}, @command{scp} or 276transfer package such as @command{rcp}, @command{scp}, @command{rsync}
274@command{rsync}. 277or (under Windows) @command{pscp}.
275 278
276If the remote copy methods are not suitable for you, @value{tramp} also 279If the remote copy methods are not suitable for you, @value{tramp} also
277supports the use of encoded transfers directly through the shell. 280supports the use of encoded transfers directly through the shell.
@@ -279,15 +282,6 @@ This requires that the @command{mimencode} or @command{uuencode} tools
279are available on the remote machine. These methods are generally 282are available on the remote machine. These methods are generally
280faster for small files. 283faster for small files.
281 284
282Within these limitations, @value{tramp} is quite powerful. It is worth
283noting that, as of the time of writing, it is far from a polished
284end-user product. For a while yet you should expect to run into rough
285edges and problems with the code now and then.
286
287It is finished enough that the developers use it for day to day work but
288the installation and setup can be a little difficult to master, as can
289the terminology.
290
291@value{tramp} is still under active development and any problems you encounter, 285@value{tramp} is still under active development and any problems you encounter,
292trivial or major, should be reported to the @value{tramp} developers. 286trivial or major, should be reported to the @value{tramp} developers.
293@xref{Bug Reports}. 287@xref{Bug Reports}.
@@ -2665,22 +2659,43 @@ remote host.
2665@lisp 2659@lisp
2666(defadvice tramp-handle-write-region 2660(defadvice tramp-handle-write-region
2667 (after tramp-write-beep-advice activate) 2661 (after tramp-write-beep-advice activate)
2668 " make tramp beep after writing a file." 2662 "Make tramp beep after writing a file."
2669 (interactive) 2663 (interactive)
2670 (beep)) 2664 (beep))
2671 2665
2672(defadvice tramp-handle-do-copy-or-rename-file 2666(defadvice tramp-handle-do-copy-or-rename-file
2673 (after tramp-copy-beep-advice activate) 2667 (after tramp-copy-beep-advice activate)
2674 " make tramp beep after copying a file." 2668 "Make tramp beep after copying a file."
2675 (interactive) 2669 (interactive)
2676 (beep)) 2670 (beep))
2677 2671
2678(defadvice tramp-handle-insert-file-contents 2672(defadvice tramp-handle-insert-file-contents
2679 (after tramp-copy-beep-advice activate) 2673 (after tramp-insert-beep-advice activate)
2680 " make tramp beep after copying a file." 2674 "Make tramp beep after inserting a file."
2681 (interactive) 2675 (interactive)
2682 (beep)) 2676 (beep))
2677@end lisp
2678
2679
2680@ifset emacs
2681@item
2682I'ld like to get a Visual Warning when working in a sudo:ed context
2683
2684When you are working with @samp{root} privileges, it might be useful
2685to get an indication in the buffer's modeline. The following code,
2686tested with @value{emacsname} 22.1, does the job. You should put it
2687into your @file{~/.emacs}:
2688
2689@lisp
2690(defun my-mode-line-function ()
2691 (when (string-match "^/su\\(do\\)?:" default-directory)
2692 (setq mode-line-format
2693 (format-mode-line mode-line-format 'font-lock-warning-face))))
2694
2695(add-hook 'find-file-hooks 'my-mode-line-function)
2696(add-hook 'dired-mode-hook 'my-mode-line-function)
2683@end lisp 2697@end lisp
2698@end ifset
2684 2699
2685 2700
2686@ifset emacs 2701@ifset emacs