Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / a0 / fb72cb225ce1fc65da925f1aeb9a3a68826a7e
1 Return-Path: <bgamari@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 16910431FBC\r
6         for <notmuch@notmuchmail.org>; Fri,  8 Jan 2010 11:35:13 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id upD-0NqdsceN for <notmuch@notmuchmail.org>;\r
11         Fri,  8 Jan 2010 11:35:12 -0800 (PST)\r
12 Received: from mail-yx0-f187.google.com (mail-yx0-f187.google.com\r
13         [209.85.210.187])\r
14         by olra.theworths.org (Postfix) with ESMTP id 7EAB4431FAE\r
15         for <notmuch@notmuchmail.org>; Fri,  8 Jan 2010 11:35:12 -0800 (PST)\r
16 Received: by yxe17 with SMTP id 17so18753332yxe.33\r
17         for <notmuch@notmuchmail.org>; Fri, 08 Jan 2010 11:35:12 -0800 (PST)\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
19         h=domainkey-signature:received:received:content-type:subject:from:to\r
20         :date:message-id:user-agent:content-transfer-encoding;\r
21         bh=+gHthLPf/STBkEKiPOk6kmB0evtFng6365U3oGwvMj4=;\r
22         b=clqukBFrXgb4PuKJhiYrM8J5HOcpwOfVI6+1rLCwGdlJfvzFcCPIox3oXEAjOQQLQ2\r
23         3djDF/72IXlYd0QLKSmg0pGY09we+vjTF8N+pgXDodFWXhrWvwJuNinqX+gFtbuI5vGk\r
24         UP5WyasuE60ktjPZ4ZYjuvJN3g/iN8I81VfOE=\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
26         h=content-type:subject:from:to:date:message-id:user-agent\r
27         :content-transfer-encoding;\r
28         b=Uk4GU+Y4HsIxOvA2NJSeAyBvGSyW7Q6mQD11mtFxEWJRI+WWnGESXQMH7A2713iess\r
29         9LaVJeyzkicYjDvNH4WbjGa+IDQzKe/zk+V96Hxl6KtrPKZ3U/y0MsinyTtbri3czJyX\r
30         xu3Fqw4VC8EijF4O03QPEaeVXEEnahnbt/OOM=\r
31 Received: by 10.101.137.31 with SMTP id p31mr143858ann.27.1262979308027;\r
32         Fri, 08 Jan 2010 11:35:08 -0800 (PST)\r
33 Received: from localhost (amherst597.amherstma.gov [204.213.244.97])\r
34         by mx.google.com with ESMTPS id 5sm8072554ywd.23.2010.01.08.11.35.06\r
35         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
36         Fri, 08 Jan 2010 11:35:07 -0800 (PST)\r
37 Content-Type: text/plain; charset=UTF-8\r
38 From: Ben Gamari <bgamari@gmail.com>\r
39 To: vim-dev <vim-dev@vim.org>, notmuch <notmuch@notmuchmail.org>,\r
40         Marc Weber <marco-oweber@gmx.de>, Bart Trojanowski <bart@jukie.net>\r
41 Date: Fri, 08 Jan 2010 14:35:05 -0500\r
42 Message-Id: <1262979289-sup-6397@ben-laptop>\r
43 User-Agent: Sup/git\r
44 Content-Transfer-Encoding: 8bit\r
45 Subject: [notmuch] Streaming data from process into buffer\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Fri, 08 Jan 2010 19:35:13 -0000\r
59 \r
60 Hey all,\r
61 \r
62 I have recently been working on bringing Carl Worth's excellent\r
63 notmuch[1] mail indexing application into a state where I can rely on it\r
64 for everyday use. While most of the Intel folks developing notmuch use\r
65 emacs for both development and using notmuch, I prefer to avoid carpal\r
66 tunnel whenever possible and thus use vim. While there exists an\r
67 excellent notmuch frontend for vim, it suffers from the incredibly\r
68 annoying limitation of being unable to asynchronously stream data from\r
69 its notmuch subprocess. This can result in extremely long periods of\r
70 hanging during large searches.\r
71 \r
72 Looking at the emacs frontend, it seems that emacs provides an excellent\r
73 subprocess interface, where one can supply a callback to be called when\r
74 data is available from the process. This interface, amazingly enough,\r
75 resembles an interface proposed on this list only a few hours ago.[2]\r
76 \r
77 Has anyone examined what would be necessary to implement such an\r
78 interface in vim? Has anyone perhaps started work on such an interface?\r
79 Would this be a reasonable task for an experienced programmer unfamiliar\r
80 with the vi codebase to take on? I'll take a look at the code later\r
81 today.\r
82 \r
83 I hope things are going well.\r
84 \r
85 Cheers,\r
86 \r
87 - Ben\r
88 \r
89 \r
90 [1] http://www.notmuch-mail.org/\r
91 [2] http://article.gmane.org/gmane.editors.vim.devel/25108\r