]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Don't record undo information for search or show buffers.
[notmuch] / emacs / notmuch.el
index c1827cc2691f66cb0f566668fede9116bfb62776..a8e4d6225963d25aaeba2c7b3484461264b71869 100644 (file)
@@ -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)