]> git.notmuchmail.org Git - notmuch/commit
emacs: show: modify the way hidden state is recorded.
authorMark Walters <markwalters1009@gmail.com>
Mon, 10 Jun 2013 04:57:11 +0000 (05:57 +0100)
committerDavid Bremner <bremner@debian.org>
Wed, 12 Jun 2013 15:06:59 +0000 (00:06 +0900)
commit490b02345e5a33fa7906495def4a7b714f145f79
tree35958f2763fa95a1f84ee9e494c6920ccf7ae470
parent81c199c962e4e0d8d65be2f66444565ce5d28209
emacs: show: modify the way hidden state is recorded.

Previously, whether a part was hidden or shown was recorded in the
invisibility/visibility of the part overlay. Since we are going to
have lazily rendered parts with no overlay store the hidden/shown
state in the part button itself.

Additionally, in preparation for the invisible part handling move the
actual hiding of the hidden parts to insert-bodypart from
create-part-overlays.

Finally, we will need to know whether a part-insertion has done
anything (it won't if the invisible part cannot be displayed by emacs)
so we slightly rejig the code order in
notmuch-show-toggle-part-invisibility to make it easier for the
function to set an appropriate return value.
emacs/notmuch-show.el