Re: [ANN] New awesome vim plug-in using Ruby bindings
authorFelipe Contreras <felipe.contreras@gmail.com>
Fri, 4 May 2012 11:55:15 +0000 (13:55 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:53 +0000 (09:46 -0800)
ad/8e0cc051d53e79560e573e473258c321f669aa [new file with mode: 0644]

diff --git a/ad/8e0cc051d53e79560e573e473258c321f669aa b/ad/8e0cc051d53e79560e573e473258c321f669aa
new file mode 100644 (file)
index 0000000..4057e41
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <felipe.contreras@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 27C85431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  4 May 2012 04:55:18 -0700 (PDT)\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 dqJ5kryalnPp for <notmuch@notmuchmail.org>;\r
+       Fri,  4 May 2012 04:55:17 -0700 (PDT)\r
+Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 356B0431FAE   for <notmuch@notmuchmail.org>; Fri,  4 May 2012 04:55:17 -0700\r
+ (PDT)\r
+Received: by wgbdt14 with SMTP id dt14so2157699wgb.2\r
+       for <notmuch@notmuchmail.org>; Fri, 04 May 2012 04:55:15 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
+       :cc:content-type:content-transfer-encoding;\r
+       bh=O+EqIGNwd0CIMA/5IjmMf+HmL8+mDIxg3nNAuL1gC90=;\r
+       b=F+tdCIf0pgrYv0yAPdD5IVmfB9jD1oJVkAQf0CGt5puC2osRKbmE7dYtkU/29tXmv6\r
+       rFppCvoL0VyTWV63JZ/DYhkEX18nhzPYC7v9myOLejEZo+1Q4HLlCddtmCcS13Nm6zyo\r
+       Jgp8J62VROjX8yDlJW8AJRcLMUUgx7kcOVILwF2rL1RFFmYgGwWSWrnIUE1TkTPhJ3ja\r
+       VzauTnIRncxNVP2VttgIvhDjVtQYFoJA5sShb5sl0SIPWlwcE1BKokz6SBlLSQIrHdHR\r
+       ANhFti8MedRyIrH3YRY/GksrgvHWNjrbC5x9vL0Qn6gXLsUzzY0BW+ETEd+NLb9FzFAd\r
+       BI9g==\r
+MIME-Version: 1.0\r
+Received: by 10.180.107.101 with SMTP id hb5mr12363336wib.7.1336132515827;\r
+       Fri, 04 May 2012 04:55:15 -0700 (PDT)\r
+Received: by 10.216.124.197 with HTTP; Fri, 4 May 2012 04:55:15 -0700 (PDT)\r
+In-Reply-To: <20120502204148.4214.85824@daenerys.khirnov.net>\r
+References:\r
+ <CAMP44s3gNrDnsqpdiHJAhJOkM1SYKMUTNL2LUO4QEUCPiFZARA@mail.gmail.com>\r
+       <20120502204148.4214.85824@daenerys.khirnov.net>\r
+Date: Fri, 4 May 2012 13:55:15 +0200\r
+Message-ID:\r
+ <CAMP44s1LvXNpasZohTgWHq2WPXNt6iy07hVjjhpbSn24Um54zQ@mail.gmail.com>\r
+Subject: Re: [ANN] New awesome vim plug-in using Ruby bindings\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: Anton Khirnov <anton@khirnov.net>\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\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: Fri, 04 May 2012 11:55:18 -0000\r
+\r
+On Wed, May 2, 2012 at 10:41 PM, Anton Khirnov <anton@khirnov.net> wrote:\r
+>\r
+> On Mon, 23 Apr 2012 04:12:32 +0300, Felipe Contreras <felipe.contreras@gm=\r
+ail.com> wrote:\r
+\r
+>> =C2=A0* Gradual searches; you don't have to wait for the whole search to=\r
+ finish,\r
+>> =C2=A0 =C2=A0sort of like the 'less' command\r
+>\r
+> How did you do that? When I tried to do this in my version, I got hit by\r
+> vim not being threadsafe.\r
+\r
+I first started with Ruby fibers, but stumbled upon a bug, and then I\r
+realized I didn't actually need them; in Ruby there is an Enumerable\r
+class, which the Notmuch::Threads class includes, and one of the\r
+methods allows to get only a certain number of items, so regardless of\r
+what happens in the back, I only get a certain number of items at a\r
+time. This is particularly easy thanks to Ruby blocks, but I guess you\r
+can achieve the same in Python somehow.\r
+\r
+Each time the cursor changes I check if a certain threshold of items\r
+has been passed, and if so, get one more chunk.\r
+\r
+Cheers.\r
+\r
+--=20\r
+Felipe Contreras\r