Re: Goto command for existing search windows
authorJani Nikula <jani@nikula.org>
Thu, 29 Mar 2012 21:57:44 +0000 (00:57 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:52 +0000 (09:45 -0800)
60/ddaa5096ea9ab6b0f460d9506670b74f910fe2 [new file with mode: 0644]

diff --git a/60/ddaa5096ea9ab6b0f460d9506670b74f910fe2 b/60/ddaa5096ea9ab6b0f460d9506670b74f910fe2
new file mode 100644 (file)
index 0000000..5792420
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <jani@nikula.org>\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 4B241431FAF\r
+       for <notmuch@notmuchmail.org>; Thu, 29 Mar 2012 14:57:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 1O6p4Q-nTAOY for <notmuch@notmuchmail.org>;\r
+       Thu, 29 Mar 2012 14:57:53 -0700 (PDT)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-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 3E511431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 29 Mar 2012 14:57:53 -0700 (PDT)\r
+Received: by bkwj4 with SMTP id j4so3032bkw.26\r
+       for <notmuch@notmuchmail.org>; Thu, 29 Mar 2012 14:57:51 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type:x-gm-message-state;\r
+       bh=ImMo1QS/r7/+19ZrUmSqvxkKaED3J5vdZ568MYwf1f0=;\r
+       b=mtoVsraBruarecd1tJmeGxHPwrLE+9P2xbP7ZGfA3TAtRvan/z+kz8x0GN1FT7IddD\r
+       Q+xqbKZdHYQ91+/1f80MdXBrFz25azC7KFtmwq7Db+N9Lh5Nv38uaE9FblBMFNE1Fi++\r
+       OIlmvdojNteLvojJA/Jy8bmqTFnPP+3FG3Yl7MBpcMmFcyxUAv+JKToFqnxb2mafgvzG\r
+       4r64Fj2HSaKKc7anX3qQNb9L4f+qo4r3W/+6h7Lt3tEbsjXlU2rHsoPxL4VD7GJcQw0E\r
+       sElK0xliRbaJsgjdODq7G2DSNEMdVvEJ/AQzrLd1q9n5wpK68zuSul4Xd1twpdXclioI\r
+       nc8g==\r
+Received: by 10.204.154.28 with SMTP id m28mr14546419bkw.102.1333058271489;\r
+       Thu, 29 Mar 2012 14:57:51 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+       [84.248.80.253]) by mx.google.com with ESMTPS id\r
+       jr13sm16493050bkb.14.2012.03.29.14.57.48\r
+       (version=SSLv3 cipher=OTHER); Thu, 29 Mar 2012 14:57:50 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+       Mark Anderson <MarkR.Anderson@amd.com>,\r
+       Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: Goto command for existing search windows\r
+In-Reply-To: <87iphn40g7.fsf@servo.finestructure.net>\r
+References: <3wd1uod7px7.fsf@testarossa.amd.com>\r
+       <3wdmx6z5rzx.fsf@testarossa.amd.com>\r
+       <87iphn40g7.fsf@servo.finestructure.net>\r
+User-Agent: Notmuch/0.11.1+295~g780f284 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Fri, 30 Mar 2012 00:57:44 +0300\r
+Message-ID: <87vcln9ijr.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQlqemXdKSaeidQMKA2GI6UGRN8e3lm76UafwqUpuy5+EyeYk/jQgqp5uSBjLPbaXcI9q9wu\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: Thu, 29 Mar 2012 21:57:57 -0000\r
+\r
+On Thu, 29 Mar 2012 13:27:36 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
+> On Thu, Mar 29 2012, Mark Anderson <MarkR.Anderson@amd.com> wrote:\r
+> > On Tue, 27 Mar 2012 14:24:36 -0600, Mark Anderson <MarkR.Anderson@amd.com> wrote:\r
+> >> I was looking for a function which would find a buffer based on one of\r
+> >> my saved searches, and perform the search if it didn't exist.\r
+> >> \r
+> >> I've gotten it a bit closer, if I perform the search that matches a\r
+> >> saved search, then this routine will find it because of the magic in\r
+> >> notmuch-search-buffer-title, but perhaps someone else feels up to\r
+> >> searching through the saved searches directly?\r
+> \r
+> Hey, Mark.  I think you can be a little simpler.  The title for search\r
+> buffers is based on the search, so a buffer will always be reused for an\r
+> identical search.  You don't need to do any fancy buffer searching.\r
+\r
+Hi, I believe Mark's point was just switching to the buffer if it\r
+exists, *without* refreshing or doing the query, and only doing regular\r
+notmuch-search if a buffer doesn't exist yet.\r
+\r
+BR,\r
+Jani.\r