mu4e: use mu4e-view-rendered-hook

Instead of the older mu4e-after-view-message-hook; update version where
it go obsolete.
This commit is contained in:
Dirk-Jan C. Binnema 2022-12-15 11:52:50 +02:00
parent 83ed407dbc
commit 34815a1961
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@
"1.5.12")
(define-obsolete-variable-alias 'mu4e-after-view-message-hook
'mu4e-view-rendered-hook "1.6.7")
'mu4e-view-rendered-hook "1.9.7")
;; mu4e-org

View File

@ -637,7 +637,7 @@ As a side-effect, a message that is being viewed loses its
(mu4e-error "Cannot get a message view"))
(select-window mu4e~headers-view-win)))
(with-current-buffer gnus-article-buffer
(run-hooks 'mu4e-after-view-message-hook)))
(run-hooks 'mu4e-view-rendered-hook)))
(defun mu4e-view-message-text (msg)
"Return the pristine MSG as a string."

View File

@ -297,7 +297,7 @@ and `mu4e-headers-visible-lines' or
`mu4e-headers-visible-columns'.
This function is best called from the hook
`mu4e-after-view-message-hook'."
`mu4e-view-rendered-hook'."
(unless (mu4e-current-buffer-type-p 'view)
(mu4e-error "Cannot resize as this is not a valid view buffer."))
(when-let (win (and mu4e-linked-headers-buffer