]> git.notmuchmail.org Git - notmuch/commit
emacs: Don't override mm-show-part in notmuch-show-view-part
authorAustin Clements <amdragon@MIT.EDU>
Sun, 26 May 2013 06:34:46 +0000 (02:34 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 26 May 2013 21:45:10 +0000 (18:45 -0300)
commitd4940d47168d0ec0b8ba2bde10c34e8d968cbfa6
tree11211c490b71da8f3e347e523c1ed730f36e364a
parentc3c4da7ba8ee3367e25d33e230460673f08079fc
emacs: Don't override mm-show-part in notmuch-show-view-part

Previously, notmuch-show-view-part overrode the function binding of
mm-show-part to redirect it to notmuch-show-save-part to get notmuch's
default file name handling in case mm-display-part decided to fall
back to saving the part.  In addition to being messy, this depended on
the now-deprecated dynamic binding behavior of flet.

This patch removes the mm-show-part override in favor of passing the
file name in to mm-show-part the way it expects, so we get its default
file name handling.  It's not clear why we didn't do this before;
mm-show-part has supported default file names since at least Emacs
23.1.
emacs/notmuch-show.el