1 Return-Path: <amthrax@awakening.csail.mit.edu>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 149F9429E25
\r
6 for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 16:58:34 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 5dOyJ8LAxOBg for <notmuch@notmuchmail.org>;
\r
16 Sun, 20 Nov 2011 16:58:33 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 86888431FD0
\r
20 for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 16:58:33 -0800 (PST)
\r
21 X-AuditID: 1209190d-b7f726d0000008d1-ed-4ec9a238450c
\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
23 by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 40.14.02257.832A9CE4; Sun, 20 Nov 2011 19:58:32 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id pAL0wVll015948;
\r
27 Sun, 20 Nov 2011 19:58:31 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pAL0wUVu014350
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Sun, 20 Nov 2011 19:58:31 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amthrax@awakening.csail.mit.edu>)
\r
36 id 1RSIFl-0002GX-88; Sun, 20 Nov 2011 20:00:57 -0500
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH] emacs: Don't record undo information for search or show
\r
41 Date: Sun, 20 Nov 2011 20:00:55 -0500
\r
42 Message-Id: <1321837255-8669-1-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.7.2
\r
44 X-Brightmail-Tracker:
\r
45 H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsUixCmqrGux6KSfwZYvPBbXb85kdmD0eLbq
\r
46 FnMAYxSXTUpqTmZZapG+XQJXRv+Lg2wFB7gqZh7kbGA8yNHFyMkhIWAicWTmCjYIW0ziwr31
\r
47 QDYXh5DAPkaJt49bGCGcDYwS2/9MA6sSEjjJJPHgsRdEYjOjxIw5X5lAEmwCGhLb9i9nBLFF
\r
48 BKQldt6dzdrFyMHBLKAm8adLBSQsLBAoMWvmJ7ASFgFViTfrvrGC2LwC9hKdP/YyQ1yhIDFj
\r
49 yhXGCYy8CxgZVjHKpuRW6eYmZuYUpybrFicn5uWlFuka6eVmluilppRuYgSHgCTvDsZ3B5UO
\r
50 MQpwMCrx8AoHnvATYk0sK67MPcQoycGkJMrbs/CknxBfUn5KZUZicUZ8UWlOavEhRgkOZiUR
\r
51 3hxnoBxvSmJlVWpRPkxKmoNFSZy3cIeDn5BAemJJanZqakFqEUxWhoNDSYJ39QygRsGi1PTU
\r
52 irTMnBKENBMHJ8hwHqDhO0AW8xYXJOYWZ6ZD5E8xKkqJ86aAJARAEhmleXC9sBh9xSgO9Iow
\r
53 r9pMoCoeYHzDdb8CGswENHja2hMgg0sSEVJSDYwl2UX2Vnem7I0/eOt5/I9/tdtfzTml7Xss
\r
54 xrJjymzdE1vlQl+UCmrfLNlrnL+FOSfFZU/E4qMWcpPtFk9rtPXwiSjJ/2f7Vzv795eva0Jc
\r
55 BAW3l3WbT+KuWrbk0U+XNX817tlz+e3w1tqzLGzqd4EtWY9TN4YpX9M5nv69fn/hcfUnujan
\r
56 FSKUWIozEg21mIuKEwFen4CXrAIAAA==
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Mon, 21 Nov 2011 00:58:34 -0000
\r
71 There's no reason to record undo information for read-only,
\r
72 programmatically-constructed buffers. The undo list just chews up
\r
73 memory keeping track of our calls to insert.
\r
75 emacs/notmuch-show.el | 2 ++
\r
76 emacs/notmuch.el | 2 ++
\r
77 2 files changed, 4 insertions(+), 0 deletions(-)
\r
79 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
80 index d5c95d8..7689867 100644
\r
81 --- a/emacs/notmuch-show.el
\r
82 +++ b/emacs/notmuch-show.el
\r
83 @@ -843,6 +843,8 @@ buffer."
\r
84 (inhibit-read-only t))
\r
85 (switch-to-buffer buffer)
\r
87 + ;; Don't track undo information for this buffer
\r
88 + (set 'buffer-undo-list t)
\r
90 (setq notmuch-show-thread-id thread-id)
\r
91 (setq notmuch-show-parent-buffer parent-buffer)
\r
92 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
93 index c1827cc..a8e4d62 100644
\r
94 --- a/emacs/notmuch.el
\r
95 +++ b/emacs/notmuch.el
\r
96 @@ -920,6 +920,8 @@ The optional parameters are used as follows:
\r
97 (let ((buffer (get-buffer-create (notmuch-search-buffer-title query))))
\r
98 (switch-to-buffer buffer)
\r
99 (notmuch-search-mode)
\r
100 + ;; Don't track undo information for this buffer
\r
101 + (set 'buffer-undo-list t)
\r
102 (set 'notmuch-search-query-string query)
\r
103 (set 'notmuch-search-oldest-first oldest-first)
\r
104 (set 'notmuch-search-target-thread target-thread)
\r