Adapt Tramp manual

* doc/misc/tramp.texi (Frequently Asked Questions): Do not use
`defadvice'.  Add indices.  (Bug#65481)
This commit is contained in:
Michael Albinus 2023-09-07 15:03:42 +02:00
parent d32f00a35b
commit 2e2a5f8118

View file

@ -5122,30 +5122,11 @@ How to get notified after @value{tramp} completes file transfers?
Make Emacs beep after reading from or writing to the remote host with Make Emacs beep after reading from or writing to the remote host with
the following code in @file{~/.emacs}. the following code in @file{~/.emacs}.
@vindex tramp-handle-write-region-hook
@vindex tramp-handle-file-local-copy-hook
@lisp @lisp
@group (add-hook 'tramp-handle-write-region-hook 'beep)
(defadvice tramp-handle-write-region (add-hook 'tramp-handle-file-local-copy-hook 'beep)
(after tramp-write-beep-advice activate)
"Make @value{tramp} beep after writing a file."
(interactive)
(beep))
@end group
@group
(defadvice tramp-handle-do-copy-or-rename-file
(after tramp-copy-beep-advice activate)
"Make @value{tramp} beep after copying a file."
(interactive)
(beep))
@end group
@group
(defadvice tramp-handle-insert-file-contents
(after tramp-insert-beep-advice activate)
"Make @value{tramp} beep after inserting a file."
(interactive)
(beep))
@end group
@end lisp @end lisp
@ -5416,9 +5397,8 @@ minibuffer:
@end group @end group
@group @group
(defadvice minibuffer-complete (advice-add 'minibuffer-complete
(before my-minibuffer-complete activate) :before 'expand-abbrev)
(expand-abbrev))
@end group @end group
@end lisp @end lisp
@ -5615,6 +5595,8 @@ If you find the cleanup disturbing, because the file names in
two forms in your @file{~/.emacs} after loading the @code{tramp} and two forms in your @file{~/.emacs} after loading the @code{tramp} and
@code{recentf} packages: @code{recentf} packages:
@vindex tramp-cleanup-connection-hook
@vindex tramp-cleanup-all-connections-hook
@lisp @lisp
@group @group
(remove-hook (remove-hook