]> git.cworth.org Git - obsolete/notmuch-old/commit
emacs: Fix applying stickiness to the :notmuch-part property
authorAustin Clements <amdragon@MIT.EDU>
Mon, 3 Jun 2013 15:17:59 +0000 (11:17 -0400)
committerDavid Bremner <bremner@debian.org>
Tue, 4 Jun 2013 11:39:42 +0000 (08:39 -0300)
commit109a0355d681b82715cf6fd6ca051c6b5b2c6714
tree44a6f8f545d2635cef7a0e81e1b81b873f1e7f71
parent5306b2b1e598e944a7e08cb9df8356acfb162f09
emacs: Fix applying stickiness to the :notmuch-part property

Previously, we simply called pushnew to add :notmuch-part to the
front-sticky and rear-nonsticky text property lists.  This works if
these are nil or lists, but they can also have the value t, meaning
that all properties are front-sticky/rear-nonsticky.  In this case,
pushnew will signal an error because t is not a list.  We never set
these properties to t ourselves, but since we apply these property
changes over arbitrary renderer output, we have to deal with this
possibility.
emacs/notmuch-show.el