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 EDD33431FAF for ; Thu, 9 Aug 2012 01:49:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 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_NONE=-0.0001] 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 lgelTSHVxp02 for ; Thu, 9 Aug 2012 01:49:21 -0700 (PDT) Received: from nm14-vm0.bullet.mail.ird.yahoo.com (nm14-vm0.bullet.mail.ird.yahoo.com [77.238.189.193]) by olra.theworths.org (Postfix) with SMTP id 6070D431FAE for ; Thu, 9 Aug 2012 01:49:21 -0700 (PDT) Received: from [77.238.189.52] by nm14.bullet.mail.ird.yahoo.com with NNFMP; 09 Aug 2012 08:49:19 -0000 Received: from [212.82.108.254] by tm5.bullet.mail.ird.yahoo.com with NNFMP; 09 Aug 2012 08:49:19 -0000 Received: from [127.0.0.1] by omp1019.mail.ird.yahoo.com with NNFMP; 09 Aug 2012 08:49:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 792234.27172.bm@omp1019.mail.ird.yahoo.com Received: (qmail 80887 invoked by uid 60001); 9 Aug 2012 08:49:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1344502159; bh=1bTDjeDp2xf8ExySQi6y6jCC1u7C20mZiWHG3wBrmzY=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JgNKasVGmBv9cDcg1g3OpY+9EGabxxm/4t3b2ziOKmEt29x74AW3guW06Gz1nKfi0FJE3XPecEDcOiT8qqV/XjiFymaew5TvFSpv5DaZLujCnXGdDjIWlOqHh072V56DoFXPF1rPcyYCacbvwpHTdeUEgu6wJKQb4YTEYObOcrc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XQUOP5G++RtIDGZPGMkyHWZzD+j+GRisMCVwtNTH2Hk7b2x1oo2IFv69BO/Zjgn//qW7joKLTHKZlBzXC+Ncqwnl61tvYCtAQo9amMDvKRM6dvOWsFVRxXlczckpdyBXb51T+Q0Jd4l+CY/fv/ckpZrrmRwxkV68ZUBDSiVSUaw=; X-YMail-OSG: 83sPjU8VM1ndtU3.14VoasZRqXwR5P2Wbryirpw2vEKk.4_ TlHUkVESPUUXyq1M6ZQwWInG5KbE7pVcKQfHBlCZepoVq8PKKbGz2gu5Bpcm UR0Bhj1DaCKvLzCPpsBKyGBoJUa6FzakzhCVen4J5zJsA4x8P8lGFAOkE3lb 9_VQSCjEL0NuN.M_pHOrFMyLodfz..Vk4KKDcQZUD2BOcGDs.9ZGnoP3YAud 1Jl5kUAfFXdtF8ejtYIjmlfu6xDKn.PDz1fEZ2ecgc3wLON3S_R2VjlwetC7 24geZWl8uMP6Gp2BUlOoRI.jEk93o0oal6TQ0jinkJDX9ryo.xOwvvHyYQ3f FVRd8XQu474JdBzv3PaC8rjiFO8lnH1T6_WBOFVC591ozUaAaIJcTsTrwiqO 71wBG42_BsySRbhu9k.9thhKxVAgJisPYr3wGwTRsMDVw0M9LCT1bx7LTFCm kxH1sNoh1O.eO4C0tHW6EWFBAetF7n4Y- Received: from [134.176.252.124] by web171405.mail.ir2.yahoo.com via HTTP; Thu, 09 Aug 2012 09:49:19 BST X-Mailer: YahooMailWebService/0.8.120.356233 References: <1344174764.11525.YahooMailNeo@web171404.mail.ir2.yahoo.com> <20120806161738.7080.82028@daenerys.khirnov.net> <1344292148.78234.YahooMailNeo@web171405.mail.ir2.yahoo.com> <20120807044234.29222.72622@daenerys.khirnov.net> <1344328502.63480.YahooMailNeo@web171406.mail.ir2.yahoo.com> <20120807093905.29222.57092@daenerys.khirnov.net> Message-ID: <1344502159.57334.YahooMailNeo@web171405.mail.ir2.yahoo.com> Date: Thu, 9 Aug 2012 09:49:19 +0100 (BST) From: Sepp Tannhuber Subject: Re: Vim plugins To: Anton Khirnov , "notmuch@notmuchmail.org" In-Reply-To: <20120807093905.29222.57092@daenerys.khirnov.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Sepp Tannhuber List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2012 08:49:23 -0000 Dear Anton,=0A=0Afor some reason the file did not exist here. Perhaps I del= eted it accidentally. So I cloned the=0Arepository again. And there it is.= =0ANow I'm trying=A0if it is useful for me. I changed some code that I can = use python-ranger to=0Aattach files:=0A##########=0Afunction! s:NM_compose_= attach()=0A=0Aif filereadable('/tmp/chosendir')=0Asilent !ranger --choosefi= les=3D/tmp/chosenfiles --choosedir=3D/tmp/chosendir "$(cat /tmp/chosendir)"= =0Aelse=0Asilent !ranger --choosefiles=3D/tmp/chosenfiles --choosedir=3D/tm= p/chosendir=0Aendif=0Aif filereadable('/tmp/chosenfiles')=0Alet attachments= =3D readfile('/tmp/chosenfiles')=0Acall system('rm /tmp/chosenfiles')=0Afo= r attach in attachments=0Apython nm_vim.get_current_buffer().attach(vim.eva= l('attach'))=0Aendfor=0Acall append(10, map(attachments, '"Attach: ".escape= (v:val," \t\\")'))=0Aredraw!=0Aendif=0Aendfunction=0A##########=0AIt's even= possible to mark and attach multiple files at once.=0A=0AIs it possible su= ppress the message returned by=0A=A0 =A0 python nm_vim.get_current_buffer()= ?=0A=A0=0AAnd do you have=A0an idea=A0what's the reason for the following m= essage?=0A=0A##########=0A:call 33_NM_folders_show_search('') =A0 =A0 = =A0 Exception in thread Thread-1: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0=0ATraceback (most recent call last):=0A=A0 File "/u= sr/lib/python2.7/threading.py", line 551, in __bootstrap_inner=0A=A0 =A0 se= lf.run()=0A=A0 File "/usr/lib/python2.7/threading.py", line 504, in run=0A= =A0 =A0 self.__target(*self.__args, **self.__kwargs)=0A=A0 File "/home/sepp= /.vim/plugin/nm_vim.py", line 195, in _refresh_thread=0A=A0 =A0 authors, su= bj, tags)).encode('utf-8')=0AUnicodeDecodeError: 'ascii' codec can't decode= byte 0xc3 in position 1: ordinal not in range(128)=0A##########=0A=0AThank= s for your great work and support=0AJoseph