[PATCH 1/4] emacs: Retain text properties when toggling buttons

2013-05-27 Thread Austin Clements
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

[PATCH 1/4] emacs: Retain text properties when toggling buttons

2013-05-27 Thread Austin Clements
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