mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 03:48:10 +01:00
emacs: save undisplayer function for MIME parts
For some kinds of MIME parts (at least images), our trickery with overlays will not work, so save the more drastic function created by Gnus that actually deletes the part from the buffer. In an ideal world we would return this function as (part of) a value, but here the call stack is too complicated for anything that simple, so we stash it in the part plist and rely on that being preserved (unlike the mm handle, which is transient).
This commit is contained in:
parent
1c10d91d8e
commit
b1129d905a
1 changed files with 1 additions and 0 deletions
|
@ -703,6 +703,7 @@ current buffer, if possible."
|
||||||
(when (mm-inlinable-p handle)
|
(when (mm-inlinable-p handle)
|
||||||
(set-buffer display-buffer)
|
(set-buffer display-buffer)
|
||||||
(mm-display-part handle)
|
(mm-display-part handle)
|
||||||
|
(plist-put part :undisplayer (mm-handle-undisplayer handle))
|
||||||
t))))))
|
t))))))
|
||||||
|
|
||||||
;;; Generic Utilities
|
;;; Generic Utilities
|
||||||
|
|
Loading…
Reference in a new issue