diff options
| -rw-r--r-- | doc/misc/mh-e.texi | 6 | ||||
| -rw-r--r-- | etc/NEWS | 8 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 9 | ||||
| -rw-r--r-- | lisp/mh-e/mh-show.el | 2 |
4 files changed, 17 insertions, 8 deletions
diff --git a/doc/misc/mh-e.texi b/doc/misc/mh-e.texi index 0630b60ca6f..962f22af5d2 100644 --- a/doc/misc/mh-e.texi +++ b/doc/misc/mh-e.texi | |||
| @@ -2256,10 +2256,10 @@ signature block is more to your liking. | |||
| 2256 | Two hooks can be used to control how messages are displayed. The first | 2256 | Two hooks can be used to control how messages are displayed. The first |
| 2257 | hook, @code{mh-show-mode-hook}, is called early on in the process of | 2257 | hook, @code{mh-show-mode-hook}, is called early on in the process of |
| 2258 | the message display. It is usually used to perform some action on the | 2258 | the message display. It is usually used to perform some action on the |
| 2259 | message's content. The second hook, @code{mh-show-hook}, is the last | 2259 | message's buffer. The second hook, @code{mh-show-hook}, is the last |
| 2260 | thing called after messages are displayed. It's used to affect the | 2260 | thing called after messages are displayed. It's used to affect the |
| 2261 | behavior of MH-E in general or when @code{mh-show-mode-hook} is too | 2261 | message's content, the behavior of MH-E in general, or when |
| 2262 | early. | 2262 | @code{mh-show-mode-hook} is too early. |
| 2263 | 2263 | ||
| 2264 | @cindex MH-Show mode | 2264 | @cindex MH-Show mode |
| 2265 | @cindex modes, MH-Show | 2265 | @cindex modes, MH-Show |
| @@ -2630,6 +2630,14 @@ will be chosen even if you have an entry for "image/*" in your | |||
| 2630 | overrides all system and Emacs-provided defaults. To get the old | 2630 | overrides all system and Emacs-provided defaults. To get the old |
| 2631 | method back, set 'mailcap-prefer-mailcap-viewers' to nil. | 2631 | method back, set 'mailcap-prefer-mailcap-viewers' to nil. |
| 2632 | 2632 | ||
| 2633 | ** MH-E | ||
| 2634 | +++ | ||
| 2635 | *** The hook 'mh-show-mode-hook' is now called before the message is inserted. | ||
| 2636 | Functions that want to affect the message text (for example, to change | ||
| 2637 | highlighting) can no longer use 'mh-show-mode-hook', because the | ||
| 2638 | message contents will not yet have been inserted when the hook is | ||
| 2639 | called. Such functions should now be attached to 'mh-show-hook'. | ||
| 2640 | |||
| 2633 | ** URL | 2641 | ** URL |
| 2634 | 2642 | ||
| 2635 | --- | 2643 | --- |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 5c85b3907e6..dd05d691c91 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -3380,13 +3380,14 @@ used to affect the behavior of MH-E in general or when | |||
| 3380 | (defcustom-mh mh-show-mode-hook nil | 3380 | (defcustom-mh mh-show-mode-hook nil |
| 3381 | "Hook run upon entry to `mh-show-mode'. | 3381 | "Hook run upon entry to `mh-show-mode'. |
| 3382 | 3382 | ||
| 3383 | This hook is called early on in the process of the message | 3383 | This hook is called early on in the process of the message display, |
| 3384 | display. It is usually used to perform some action on the | 3384 | before the message contents have been inserted into the buffer. |
| 3385 | message's content. See `mh-show-hook'." | 3385 | It is usually used to perform some action on the |
| 3386 | buffer itself. See also `mh-show-hook'." | ||
| 3386 | :type 'hook | 3387 | :type 'hook |
| 3387 | :group 'mh-hooks | 3388 | :group 'mh-hooks |
| 3388 | :group 'mh-show | 3389 | :group 'mh-show |
| 3389 | :package-version '(MH-E . "6.0")) | 3390 | :package-version '(MH-E . "8.7")) |
| 3390 | 3391 | ||
| 3391 | (defcustom-mh mh-unseen-updated-hook nil | 3392 | (defcustom-mh mh-unseen-updated-hook nil |
| 3392 | "Hook run after the unseen sequence has been updated. | 3393 | "Hook run after the unseen sequence has been updated. |
diff --git a/lisp/mh-e/mh-show.el b/lisp/mh-e/mh-show.el index 952579fd3dd..00f0908f99a 100644 --- a/lisp/mh-e/mh-show.el +++ b/lisp/mh-e/mh-show.el | |||
| @@ -63,7 +63,7 @@ you wish to see all of them, use the command \\[mh-header-display]. | |||
| 63 | Two hooks can be used to control how messages are displayed. The | 63 | Two hooks can be used to control how messages are displayed. The |
| 64 | first hook, `mh-show-mode-hook', is called early on in the | 64 | first hook, `mh-show-mode-hook', is called early on in the |
| 65 | process of the message display. It is usually used to perform | 65 | process of the message display. It is usually used to perform |
| 66 | some action on the message's content. The second hook, | 66 | some action on the message's buffer. The second hook, |
| 67 | `mh-show-hook', is the last thing called after messages are | 67 | `mh-show-hook', is the last thing called after messages are |
| 68 | displayed. It's used to affect the behavior of MH-E in general or | 68 | displayed. It's used to affect the behavior of MH-E in general or |
| 69 | when `mh-show-mode-hook' is too early. | 69 | when `mh-show-mode-hook' is too early. |