[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 2e2a5f8118c: Adapt Tramp manual
From: |
Michael Albinus |
Subject: |
emacs-29 2e2a5f8118c: Adapt Tramp manual |
Date: |
Thu, 7 Sep 2023 09:03:55 -0400 (EDT) |
branch: emacs-29
commit 2e2a5f8118c73c36c06f527dc7b58d07a25644b6
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Adapt Tramp manual
* doc/misc/tramp.texi (Frequently Asked Questions): Do not use
`defadvice'. Add indices. (Bug#65481)
---
doc/misc/tramp.texi | 34 ++++++++--------------------------
1 file 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?
Make Emacs beep after reading from or writing to the remote host with
the following code in @file{~/.emacs}.
+@vindex tramp-handle-write-region-hook
+@vindex tramp-handle-file-local-copy-hook
@lisp
-@group
-(defadvice tramp-handle-write-region
- (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
+(add-hook 'tramp-handle-write-region-hook 'beep)
+(add-hook 'tramp-handle-file-local-copy-hook 'beep)
@end lisp
@@ -5416,9 +5397,8 @@ minibuffer:
@end group
@group
-(defadvice minibuffer-complete
- (before my-minibuffer-complete activate)
- (expand-abbrev))
+(advice-add 'minibuffer-complete
+ :before 'expand-abbrev)
@end group
@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
@code{recentf} packages:
+@vindex tramp-cleanup-connection-hook
+@vindex tramp-cleanup-all-connections-hook
@lisp
@group
(remove-hook
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 2e2a5f8118c: Adapt Tramp manual,
Michael Albinus <=