Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 7c / 1220735681745b63b391b9c9991310771b629b
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 83E22429E25\r
6         for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:35 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id HQNYIDDgi5h6 for <notmuch@notmuchmail.org>;\r
17         Sun, 20 Nov 2011 17:07:35 -0800 (PST)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id C22DF431FD0\r
22         for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:34 -0800 (PST)\r
23 Received: by bkaq10 with SMTP id q10so6604062bka.26\r
24         for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:33 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27         :mime-version:content-type;\r
28         bh=qACWkptNBI5EV/Cg9pS+uaWF945OB7rLc29+FlQeeQ4=;\r
29         b=CdjZXDS1K4kVEB/7x4jD1YHN3TuHNdStYg3KQ1okefIH1NRwouG5PiQvvN4ZGmj0tO\r
30         z+io62zh6s9YIGSSKuk0uO0uHnHL3ffRdobJkiBHNTBzg09cajIFgS351haCL7d1bjsf\r
31         fnThC0tTepiTsz4hQpR4QrsTSengAi26lu7HQ=\r
32 Received: by 10.205.135.129 with SMTP id ig1mr12260775bkc.106.1321837653190;\r
33         Sun, 20 Nov 2011 17:07:33 -0800 (PST)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id h7sm5961301bkw.12.2011.11.20.17.07.32\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Sun, 20 Nov 2011 17:07:32 -0800 (PST)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org\r
40 Subject: Re: [PATCH] emacs: Don't record undo information for search or show\r
41         buffers.\r
42 In-Reply-To: <1321837255-8669-1-git-send-email-amdragon@mit.edu>\r
43 References: <1321837255-8669-1-git-send-email-amdragon@mit.edu>\r
44 User-Agent: Notmuch/0.10~rc1+20~gec94ced (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Mon, 21 Nov 2011 05:07:15 +0400\r
47 Message-ID: <87d3cmp9ks.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 21 Nov 2011 01:07:35 -0000\r
63 \r
64 On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
65 > There's no reason to record undo information for read-only,\r
66 > programmatically-constructed buffers.  The undo list just chews up\r
67 > memory keeping track of our calls to insert.\r
68 \r
69 Makes sense and looks good!\r
70 \r
71 Regards,\r
72   Dmitry\r
73 \r
74 > ---\r
75 >  emacs/notmuch-show.el |    2 ++\r
76 >  emacs/notmuch.el      |    2 ++\r
77 >  2 files changed, 4 insertions(+), 0 deletions(-)\r
78\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
86 >      (notmuch-show-mode)\r
87 > +    ;; Don't track undo information for this buffer\r
88 > +    (set 'buffer-undo-list t)\r
89 >  \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
105 > -- \r
106 > 1.7.7.2\r
107\r
108 > _______________________________________________\r
109 > notmuch mailing list\r
110 > notmuch@notmuchmail.org\r
111 > http://notmuchmail.org/mailman/listinfo/notmuch\r