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