aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2012-12-05 12:11:49 +0000
committerGravatar David Bremner <bremner@debian.org>2012-12-06 17:13:23 -0400
commit776e21d953326f1d7c3317215d11c53ad6eaaf08 (patch)
tree0ed2c97af90e476fa723716b5c13e4e28b070efa /emacs
parent5382eebcdcdb50625c038c6caa89968d2f403bd1 (diff)
emacs: show: refresh buffer did not remove overlays
Previously refreshing the notmuch show buffer did not remove overlays which meant that if the user refreshed a message with images the images would remain and then the new text was added after. One might have guessed that erase-buffer would have removed them but it seems not. Thus force the removal of overlays with remove-overlays.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 4d6c014b..20f89970 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1185,6 +1185,10 @@ reset based on the original query."
(let ((inhibit-read-only t)
(state (unless reset-state
(notmuch-show-capture-state))))
+ ;; erase-buffer does not seem to remove overlays, which can lead
+ ;; to weird effects such as remaining images, so remove them
+ ;; manually.
+ (remove-overlays)
(erase-buffer)
(notmuch-show-build-buffer)
(if state