]> git.notmuchmail.org Git - notmuch/commit
emacs: insert quotable parts in reply as they are displayed in show view
authorJani Nikula <jani@nikula.org>
Sun, 1 Sep 2013 17:59:53 +0000 (20:59 +0300)
committerDavid Bremner <bremner@debian.org>
Thu, 5 Sep 2013 09:38:24 +0000 (06:38 -0300)
commit5c19eb46a906819744a022463ee3fd7cdfaabbb9
treedcf705dfc464f568e11d4cd80734c6d2a63eb21a
parent75ddd1eb468b3d9c9d26c65bf8985ae7632f0d80
emacs: insert quotable parts in reply as they are displayed in show view

In reply, insert quotable parts using notmuch-show-insert-bodypart
instead of calling notmuch-mm-display-part-inline directly to render
the quoted parts as they are rendered in show view.

We use a temp buffer to not leak text properties from the show
renderer into the reply. This way we also don't need to worry about
narrowing or point placement. Credits to Mark Walters
<markwalters1009@gmail.com> and Austin Clements <amdragon@MIT.EDU> for
getting this part straight.

The notable change is that replies to text/calendar parts quote the
pretty printed output of icalendar-import-buffer rather than the ugly
raw vcalendar.
emacs/notmuch-mua.el
emacs/notmuch-show.el