]> git.cworth.org Git - obsolete/notmuch-old/commit
emacs: Retain text properties when toggling buttons
authorAustin Clements <amdragon@MIT.EDU>
Thu, 30 May 2013 01:13:44 +0000 (21:13 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 1 Jun 2013 01:00:44 +0000 (22:00 -0300)
commit6bbb91f8b64c20a491cc3501b625753f97e52882
treed8f7d0723f0e6e2a3fe377480224cee85c12c046
parent195aaa623261cc877889a27bc4804a37593656a6
emacs: Retain text properties when toggling buttons

Previously, we lost any text properties applied to part buttons or
wash buttons when they were toggled because `insert' directly copies
the text properties of the string being inserted.  Fix this by
capturing the properties applied to the button beforehand and
re-applying them after inserting the new text.
emacs/notmuch-show.el
emacs/notmuch-wash.el