mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs: ad-activate 'mm-shr after ad-disable-advice 'mm-shr
Imitated from "Enabling advice" in Emacs lisp manual... ad-disable-advice by itself only changes the enable flag for a piece of advice. To make the change take effect in the advised definition, the advice needs to be activated again.
This commit is contained in:
parent
3e1d7f6476
commit
9ac863c549
1 changed files with 2 additions and 1 deletions
|
@ -531,7 +531,8 @@ the given type."
|
|||
(if (>= emacs-major-version 24)
|
||||
(defadvice mm-shr (before load-gnus-arts activate)
|
||||
(require 'gnus-art nil t)
|
||||
(ad-disable-advice 'mm-shr 'before 'load-gnus-arts)))
|
||||
(ad-disable-advice 'mm-shr 'before 'load-gnus-arts)
|
||||
(ad-activate 'mm-shr)))
|
||||
|
||||
(defun notmuch-mm-display-part-inline (msg part nth content-type process-crypto)
|
||||
"Use the mm-decode/mm-view functions to display a part in the
|
||||
|
|
Loading…
Reference in a new issue