aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2013-09-07 00:28:45 +0100
committerGravatar David Bremner <bremner@debian.org>2013-09-10 08:05:05 -0300
commitee8305b519abe26f9a6cab5f67b782ddc95a7a7c (patch)
tree7224cef82546a18fc493bfc9981883ae97ba20f5 /emacs
parentf3dc5be6f2c870ca9edf7d60a8c7b80984c37bbf (diff)
emacs: show: lazy part handling bugfix
The lazy part handler had a bug that it allowed the button to be toggled to be specified. During toggling it needs to save and restore the text-properties for the button but it actually saved the text properties at point rather than from the button. In almost all cases this didn't matter as as point had the same text properties as the button. However, it is a bug and did cause incorrect behaviour in some cases: see id:87txhz14z6.fsf@qmul.ac.uk for details.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 904b98e1..32c971a8 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -470,7 +470,7 @@ message at DEPTH in the current thread."
(new-start (button-start button))
(button-label (button-get button :base-label))
(old-point (point))
- (properties (text-properties-at (point)))
+ (properties (text-properties-at (button-start button)))
(inhibit-read-only t))
;; Toggle the button itself.
(button-put button :notmuch-part-hidden (not show))