diff options
| author | Stephen Gildea | 2020-01-29 09:21:19 -0800 |
|---|---|---|
| committer | Stephen Gildea | 2020-02-01 09:06:34 -0800 |
| commit | d10be6bf281cda58f5f9a345d460efae909ab184 (patch) | |
| tree | 69303c1160a66c59a95697fcc2290d0f1e36682e | |
| parent | 42c1e606578b47a0d61ad8db44f73f746f64fe7b (diff) | |
| download | emacs-d10be6bf281cda58f5f9a345d460efae909ab184.tar.gz emacs-d10be6bf281cda58f5f9a345d460efae909ab184.zip | |
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.
| -rw-r--r-- | doc/emacs/misc.texi | 5 | ||||
| -rw-r--r-- | lisp/net/goto-addr.el | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 6b95b12a846..d097f4ee7d8 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -2939,9 +2939,8 @@ done by calling @code{browse-url} as a subroutine | |||
| 2939 | 2939 | ||
| 2940 | It can be useful to add @code{goto-address-mode} to mode hooks and | 2940 | It can be useful to add @code{goto-address-mode} to mode hooks and |
| 2941 | hooks for displaying an incoming message | 2941 | hooks for displaying an incoming message |
| 2942 | (e.g., @code{rmail-show-message-hook} for Rmail, and | 2942 | (e.g., @code{rmail-show-message-hook} for Rmail). This is not needed |
| 2943 | @code{mh-show-mode-hook} for MH-E). This is not needed for Gnus, | 2943 | for Gnus or MH-E, which have similar features of their own. |
| 2944 | which has a similar feature of its own. | ||
| 2945 | 2944 | ||
| 2946 | @node FFAP | 2945 | @node FFAP |
| 2947 | @subsection Finding Files and URLs at Point | 2946 | @subsection Finding Files and URLs at Point |
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el index 7dd778dc8d5..9436f45aa32 100644 --- a/lisp/net/goto-addr.el +++ b/lisp/net/goto-addr.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric Ding <ericding@alum.mit.edu> | 5 | ;; Author: Eric Ding <ericding@alum.mit.edu> |
| 6 | ;; Maintainer: emacs-devel@gnu.org | 6 | ;; Maintainer: emacs-devel@gnu.org |
| 7 | ;; Created: 15 Aug 1995 | 7 | ;; Created: 15 Aug 1995 |
| 8 | ;; Keywords: mh-e, www, mouse, mail | 8 | ;; Keywords: www, mouse, mail |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -32,10 +32,10 @@ | |||
| 32 | 32 | ||
| 33 | ;; INSTALLATION | 33 | ;; INSTALLATION |
| 34 | ;; | 34 | ;; |
| 35 | ;; To use goto-address in a particular mode (for example, while | 35 | ;; To use goto-address in a particular mode (this example uses |
| 36 | ;; reading mail in mh-e), add this to your init file: | 36 | ;; the fictional rich-text-mode), add this to your init file: |
| 37 | ;; | 37 | ;; |
| 38 | ;; (add-hook 'mh-show-mode-hook 'goto-address) | 38 | ;; (add-hook 'rich-text-mode-hook 'goto-address) |
| 39 | ;; | 39 | ;; |
| 40 | ;; The mouse click method is bound to [mouse-2] on highlighted URLs or | 40 | ;; The mouse click method is bound to [mouse-2] on highlighted URLs or |
| 41 | ;; e-mail addresses only; it functions normally everywhere else. To bind | 41 | ;; e-mail addresses only; it functions normally everywhere else. To bind |