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.
This commit is contained in:
Stephen Gildea 2020-01-29 09:21:19 -08:00
parent 42c1e60657
commit d10be6bf28
2 changed files with 6 additions and 7 deletions

View file

@ -2939,9 +2939,8 @@ done by calling @code{browse-url} as a subroutine
It can be useful to add @code{goto-address-mode} to mode hooks and It can be useful to add @code{goto-address-mode} to mode hooks and
hooks for displaying an incoming message hooks for displaying an incoming message
(e.g., @code{rmail-show-message-hook} for Rmail, and (e.g., @code{rmail-show-message-hook} for Rmail). This is not needed
@code{mh-show-mode-hook} for MH-E). This is not needed for Gnus, for Gnus or MH-E, which have similar features of their own.
which has a similar feature of its own.
@node FFAP @node FFAP
@subsection Finding Files and URLs at Point @subsection Finding Files and URLs at Point

View file

@ -5,7 +5,7 @@
;; Author: Eric Ding <ericding@alum.mit.edu> ;; Author: Eric Ding <ericding@alum.mit.edu>
;; Maintainer: emacs-devel@gnu.org ;; Maintainer: emacs-devel@gnu.org
;; Created: 15 Aug 1995 ;; Created: 15 Aug 1995
;; Keywords: mh-e, www, mouse, mail ;; Keywords: www, mouse, mail
;; This file is part of GNU Emacs. ;; This file is part of GNU Emacs.
@ -32,10 +32,10 @@
;; INSTALLATION ;; INSTALLATION
;; ;;
;; To use goto-address in a particular mode (for example, while ;; To use goto-address in a particular mode (this example uses
;; reading mail in mh-e), add this to your init file: ;; the fictional rich-text-mode), add this to your init file:
;; ;;
;; (add-hook 'mh-show-mode-hook 'goto-address) ;; (add-hook 'rich-text-mode-hook 'goto-address)
;; ;;
;; The mouse click method is bound to [mouse-2] on highlighted URLs or ;; The mouse click method is bound to [mouse-2] on highlighted URLs or
;; e-mail addresses only; it functions normally everywhere else. To bind ;; e-mail addresses only; it functions normally everywhere else. To bind