aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-show.el
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2011-11-20 20:00:55 -0500
committerGravatar David Bremner <bremner@debian.org>2011-11-24 08:31:44 -0400
commit3a3f6f0ab517109a60c0c1f8c08ae9b003c52a10 (patch)
tree94935fb237ee27047c565843cb768ef8dc1c3d81 /emacs/notmuch-show.el
parent23a54c4289e8e0b4d8be7b2850c8ebb2789c95a8 (diff)
emacs: Don't record undo information for search or show buffers.
There's no reason to record undo information for read-only, programmatically-constructed buffers. The undo list just chews up memory keeping track of our calls to insert.
Diffstat (limited to 'emacs/notmuch-show.el')
-rw-r--r--emacs/notmuch-show.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index a7f32631..7be88f82 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -843,6 +843,8 @@ buffer."
(inhibit-read-only t))
(switch-to-buffer buffer)
(notmuch-show-mode)
+ ;; Don't track undo information for this buffer
+ (set 'buffer-undo-list t)
(setq notmuch-show-thread-id thread-id)
(setq notmuch-show-parent-buffer parent-buffer)