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