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 2AA50431FBC for ; Wed, 18 Apr 2012 07:42:16 -0700 (PDT) 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 ug5nCR+5Khlx for ; Wed, 18 Apr 2012 07:42:12 -0700 (PDT) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C0CBE431FAE for ; Wed, 18 Apr 2012 07:42:11 -0700 (PDT) Received: by eaa1 with SMTP id 1so3058985eaa.26 for ; Wed, 18 Apr 2012 07:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=M5eTMLoUBTWxb71uQZDOv5HurW2dx+6FZd8D3zZWNJU=; b=WBIdhF8e7KAma57CEvaWKKEOm+Nw/e8Fpuc0uU19y0AoeUL08jYPCogqfePIMy6yXo 25eytLpKMk6JRSnlAkHq6KfAP0eUazqC/F4mcuwfks0E3+GWGYE/rK3QBhXYuFvHgcmj CnNO22u11Kytk6G28CczcbPlZAhiWO3UpxecIFliznFR1viPO1++CWuxXh+2QEg0K25L Z1FO5wmLwS9M6td3jFHAoeuS4u3QoxVr9jRZoBbhYAcnm5YVXiy5YSqeUsQuGUrSdg/+ QtD2q6VwbG1oxbeP8pHiDYw0xJtRTrGPGRqmgiyE9C3MDFC6hLeIOWg6fp6rnoepyK7u A01g== MIME-Version: 1.0 Received: by 10.14.182.194 with SMTP id o42mr426985eem.50.1334760129272; Wed, 18 Apr 2012 07:42:09 -0700 (PDT) Received: by 10.213.19.67 with HTTP; Wed, 18 Apr 2012 07:42:09 -0700 (PDT) In-Reply-To: References: <20120114075443.27927.39754@daenerys.khirnov.net> Date: Wed, 18 Apr 2012 17:42:09 +0300 Message-ID: Subject: Re: [RFC] vim plugin rewrite II From: Felipe Contreras To: anton@khirnov.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org 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: Wed, 18 Apr 2012 14:42:16 -0000 On Wed, Apr 18, 2012 at 5:21 PM, Felipe Contreras wrote: > On Sat, Jan 14, 2012 at 9:54 AM, =C2=A0 wrote: >> branch vim. Simply copy vim/plugin/{nm_vim.py,notmuch-vimpy.vim} to the >> vim plugins dir and vim/syntax/{nm_vimpy*} to the vim syntax dir and run >> :NMVimpy() in vim. You'll need vim with python support and >> python-notmuch bindings. > > I gave this a try, copying those files makes vim crash for me. > > I probably need to install notmuch's python bindings, but either way > it shouldn't crash. All right, with the bindings it works, but if it cannot find the database, it crashes too. And this slows by 5 times the startup time of vim for me: vim -c 'quit' 0.47s user 0.02s system 99% cpu 0.501 total vim -c 'quit' 0.08s user 0.01s system 96% cpu 0.092 total It is interesting, but I personally I would not use if it's going to slow vim for everything else, there must be a way to solve that. Also, would be nice if you rebased your branch on top of the latest release. Cheers. --=20 Felipe Contreras