Re: [PATCH] emacs: Don't record undo information for search or show buffers.
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Mon, 21 Nov 2011 01:07:15 +0000 (05:07 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:20 +0000 (09:40 -0800)
7c/1220735681745b63b391b9c9991310771b629b [new file with mode: 0644]

diff --git a/7c/1220735681745b63b391b9c9991310771b629b b/7c/1220735681745b63b391b9c9991310771b629b
new file mode 100644 (file)
index 0000000..b5f8be8
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 83E22429E25\r
+       for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:35 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id HQNYIDDgi5h6 for <notmuch@notmuchmail.org>;\r
+       Sun, 20 Nov 2011 17:07:35 -0800 (PST)\r
+Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id C22DF431FD0\r
+       for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:34 -0800 (PST)\r
+Received: by bkaq10 with SMTP id q10so6604062bka.26\r
+       for <notmuch@notmuchmail.org>; Sun, 20 Nov 2011 17:07:33 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type;\r
+       bh=qACWkptNBI5EV/Cg9pS+uaWF945OB7rLc29+FlQeeQ4=;\r
+       b=CdjZXDS1K4kVEB/7x4jD1YHN3TuHNdStYg3KQ1okefIH1NRwouG5PiQvvN4ZGmj0tO\r
+       z+io62zh6s9YIGSSKuk0uO0uHnHL3ffRdobJkiBHNTBzg09cajIFgS351haCL7d1bjsf\r
+       fnThC0tTepiTsz4hQpR4QrsTSengAi26lu7HQ=\r
+Received: by 10.205.135.129 with SMTP id ig1mr12260775bkc.106.1321837653190;\r
+       Sun, 20 Nov 2011 17:07:33 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id h7sm5961301bkw.12.2011.11.20.17.07.32\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 20 Nov 2011 17:07:32 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: Don't record undo information for search or show\r
+       buffers.\r
+In-Reply-To: <1321837255-8669-1-git-send-email-amdragon@mit.edu>\r
+References: <1321837255-8669-1-git-send-email-amdragon@mit.edu>\r
+User-Agent: Notmuch/0.10~rc1+20~gec94ced (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 21 Nov 2011 05:07:15 +0400\r
+Message-ID: <87d3cmp9ks.fsf@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 21 Nov 2011 01:07:35 -0000\r
+\r
+On Sun, 20 Nov 2011 20:00:55 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> There's no reason to record undo information for read-only,\r
+> programmatically-constructed buffers.  The undo list just chews up\r
+> memory keeping track of our calls to insert.\r
+\r
+Makes sense and looks good!\r
+\r
+Regards,\r
+  Dmitry\r
+\r
+> ---\r
+>  emacs/notmuch-show.el |    2 ++\r
+>  emacs/notmuch.el      |    2 ++\r
+>  2 files changed, 4 insertions(+), 0 deletions(-)\r
+> \r
+> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+> index d5c95d8..7689867 100644\r
+> --- a/emacs/notmuch-show.el\r
+> +++ b/emacs/notmuch-show.el\r
+> @@ -843,6 +843,8 @@ buffer."\r
+>       (inhibit-read-only t))\r
+>      (switch-to-buffer buffer)\r
+>      (notmuch-show-mode)\r
+> +    ;; Don't track undo information for this buffer\r
+> +    (set 'buffer-undo-list t)\r
+>  \r
+>      (setq notmuch-show-thread-id thread-id)\r
+>      (setq notmuch-show-parent-buffer parent-buffer)\r
+> diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+> index c1827cc..a8e4d62 100644\r
+> --- a/emacs/notmuch.el\r
+> +++ b/emacs/notmuch.el\r
+> @@ -920,6 +920,8 @@ The optional parameters are used as follows:\r
+>    (let ((buffer (get-buffer-create (notmuch-search-buffer-title query))))\r
+>      (switch-to-buffer buffer)\r
+>      (notmuch-search-mode)\r
+> +    ;; Don't track undo information for this buffer\r
+> +    (set 'buffer-undo-list t)\r
+>      (set 'notmuch-search-query-string query)\r
+>      (set 'notmuch-search-oldest-first oldest-first)\r
+>      (set 'notmuch-search-target-thread target-thread)\r
+> -- \r
+> 1.7.7.2\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r