From 3a3f6f0ab517109a60c0c1f8c08ae9b003c52a10 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sun, 20 Nov 2011 20:00:55 -0500 Subject: 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. --- emacs/notmuch.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emacs/notmuch.el') diff --git a/emacs/notmuch.el b/emacs/notmuch.el index c1827cc2..a8e4d622 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -920,6 +920,8 @@ The optional parameters are used as follows: (let ((buffer (get-buffer-create (notmuch-search-buffer-title query)))) (switch-to-buffer buffer) (notmuch-search-mode) + ;; Don't track undo information for this buffer + (set 'buffer-undo-list t) (set 'notmuch-search-query-string query) (set 'notmuch-search-oldest-first oldest-first) (set 'notmuch-search-target-thread target-thread) -- cgit v1.2.3