aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2023-09-07 15:03:42 +0200
committerMichael Albinus2023-09-07 15:03:42 +0200
commit2e2a5f8118c73c36c06f527dc7b58d07a25644b6 (patch)
treed7c70255b58d526b948df54217895527585e8505 /doc/misc
parentd32f00a35bcd98c25f92e8b99196d32bb1c07c22 (diff)
downloademacs-2e2a5f8118c73c36c06f527dc7b58d07a25644b6.tar.gz
emacs-2e2a5f8118c73c36c06f527dc7b58d07a25644b6.zip
Adapt Tramp manual
* doc/misc/tramp.texi (Frequently Asked Questions): Do not use `defadvice'. Add indices. (Bug#65481)
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi34
1 files changed, 8 insertions, 26 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 7387dfcd1e4..7aea2795ba2 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -5122,30 +5122,11 @@ How to get notified after @value{tramp} completes file transfers?
5122Make Emacs beep after reading from or writing to the remote host with 5122Make Emacs beep after reading from or writing to the remote host with
5123the following code in @file{~/.emacs}. 5123the following code in @file{~/.emacs}.
5124 5124
5125@vindex tramp-handle-write-region-hook
5126@vindex tramp-handle-file-local-copy-hook
5125@lisp 5127@lisp
5126@group 5128(add-hook 'tramp-handle-write-region-hook 'beep)
5127(defadvice tramp-handle-write-region 5129(add-hook 'tramp-handle-file-local-copy-hook 'beep)
5128 (after tramp-write-beep-advice activate)
5129 "Make @value{tramp} beep after writing a file."
5130 (interactive)
5131 (beep))
5132@end group
5133
5134@group
5135(defadvice tramp-handle-do-copy-or-rename-file
5136 (after tramp-copy-beep-advice activate)
5137 "Make @value{tramp} beep after copying a file."
5138 (interactive)
5139 (beep))
5140@end group
5141
5142@group
5143(defadvice tramp-handle-insert-file-contents
5144 (after tramp-insert-beep-advice activate)
5145 "Make @value{tramp} beep after inserting a file."
5146 (interactive)
5147 (beep))
5148@end group
5149@end lisp 5130@end lisp
5150 5131
5151 5132
@@ -5416,9 +5397,8 @@ minibuffer:
5416@end group 5397@end group
5417 5398
5418@group 5399@group
5419(defadvice minibuffer-complete 5400(advice-add 'minibuffer-complete
5420 (before my-minibuffer-complete activate) 5401 :before 'expand-abbrev)
5421 (expand-abbrev))
5422@end group 5402@end group
5423@end lisp 5403@end lisp
5424 5404
@@ -5615,6 +5595,8 @@ If you find the cleanup disturbing, because the file names in
5615two forms in your @file{~/.emacs} after loading the @code{tramp} and 5595two forms in your @file{~/.emacs} after loading the @code{tramp} and
5616@code{recentf} packages: 5596@code{recentf} packages:
5617 5597
5598@vindex tramp-cleanup-connection-hook
5599@vindex tramp-cleanup-all-connections-hook
5618@lisp 5600@lisp
5619@group 5601@group
5620(remove-hook 5602(remove-hook