Skip to content

Commit d10be6b

Browse files
author
Stephen Gildea
committed
Example goto-addr hook: MH-E already uses goto-address
* lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the example of how to add a hook to goto-address, because MH-E calls goto-address internally.
1 parent 42c1e60 commit d10be6b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

doc/emacs/misc.texi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,9 +2939,8 @@ done by calling @code{browse-url} as a subroutine
29392939

29402940
It can be useful to add @code{goto-address-mode} to mode hooks and
29412941
hooks for displaying an incoming message
2942-
(e.g., @code{rmail-show-message-hook} for Rmail, and
2943-
@code{mh-show-mode-hook} for MH-E). This is not needed for Gnus,
2944-
which has a similar feature of its own.
2942+
(e.g., @code{rmail-show-message-hook} for Rmail). This is not needed
2943+
for Gnus or MH-E, which have similar features of their own.
29452944

29462945
@node FFAP
29472946
@subsection Finding Files and URLs at Point

lisp/net/goto-addr.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; Author: Eric Ding <[email protected]>
66
;; Maintainer: [email protected]
77
;; Created: 15 Aug 1995
8-
;; Keywords: mh-e, www, mouse, mail
8+
;; Keywords: www, mouse, mail
99

1010
;; This file is part of GNU Emacs.
1111

@@ -32,10 +32,10 @@
3232

3333
;; INSTALLATION
3434
;;
35-
;; To use goto-address in a particular mode (for example, while
36-
;; reading mail in mh-e), add this to your init file:
35+
;; To use goto-address in a particular mode (this example uses
36+
;; the fictional rich-text-mode), add this to your init file:
3737
;;
38-
;; (add-hook 'mh-show-mode-hook 'goto-address)
38+
;; (add-hook 'rich-text-mode-hook 'goto-address)
3939
;;
4040
;; The mouse click method is bound to [mouse-2] on highlighted URLs or
4141
;; e-mail addresses only; it functions normally everywhere else. To bind

0 commit comments

Comments
 (0)