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 0992A431FD0 for ; Sat, 16 Jul 2011 12:10:20 -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 aLWBLShqURRh for ; Sat, 16 Jul 2011 12:10:19 -0700 (PDT) Received: from mail-pv0-f181.google.com (mail-pv0-f181.google.com [74.125.83.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8CED1431FB6 for ; Sat, 16 Jul 2011 12:10:19 -0700 (PDT) Received: by pvg13 with SMTP id 13so2221376pvg.26 for ; Sat, 16 Jul 2011 12:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FR8LkibOo45CDWdVQT5u341hiVcnkG041WwNJFatIkM=; b=rxgYteBfJUyWk8fUzuPs7MFG8fQ1/zik4KViAM1OS/brnsV3zRNKvf55OzB3fy9SOG 0D+3AfQ98SlEJ+HY5VKehckpUFPCC7ZSy0UTqDyl+xK9GbQIG2lI6ld/aOCHk2XDaEv7 CPd0cIrAAGOWn+1pl4EiNBj4BX4ffw2xU9QhM= MIME-Version: 1.0 Received: by 10.68.30.2 with SMTP id o2mr6152923pbh.414.1310843418831; Sat, 16 Jul 2011 12:10:18 -0700 (PDT) Received: by 10.68.41.129 with HTTP; Sat, 16 Jul 2011 12:10:18 -0700 (PDT) In-Reply-To: <1310326961-6914-1-git-send-email-ukleinek@strlen.de> References: <1310326961-6914-1-git-send-email-ukleinek@strlen.de> Date: Sat, 16 Jul 2011 22:10:18 +0300 Message-ID: Subject: Re: [PATCH] vim: skip trailing slash for g:notmuch_compose_temp_file_dir From: Felipe Contreras To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= 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: Sat, 16 Jul 2011 19:10:20 -0000 2011/7/10 Uwe Kleine-K=C3=B6nig : > With the trailing slash I get > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Error detected while processing function = 10_NM_new_mail..10_NM_cmd_compose..10_NM_newComposeBuffer..1= 0_NM_newFileBuffer: > =C2=A0 =C2=A0 =C2=A0 =C2=A0line =C2=A0 =C2=A03: > =C2=A0 =C2=A0 =C2=A0 =C2=A0E739: Cannot create directory: /home/ukleinek/= .notmuch/compose/ > > when hitting 'm' to compose a new mail. strace shows: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0stat("/home/ukleinek/.notmuch/compose/", 0x7ff= fee314a10) =3D -1 ENOENT (No such file or directory) > =C2=A0 =C2=A0 =C2=A0 =C2=A0stat("/home/ukleinek/.notmuch/compose/", 0x7ff= fee314e30) =3D -1 ENOENT (No such file or directory) > =C2=A0 =C2=A0 =C2=A0 =C2=A0stat("/home/ukleinek/.notmuch/compose", 0x7fff= ee315270) =3D -1 ENOENT (No such file or directory) > =C2=A0 =C2=A0 =C2=A0 =C2=A0stat("/home/ukleinek/.notmuch", {st_mode=3DS_I= FDIR|0755, st_size=3D4096, ...}) =3D 0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir("/home/ukleinek/.notmuch/compose", 0755)= =3D 0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir("/home/ukleinek/.notmuch/compose/", 0755= ) =3D -1 EEXIST (File exists) > > so it seems vim's mkdir() isn't able to handle a trailing slash. > --- > Hello, > > is that a bug in vim? (BTW, I'm using vim 2:7.2.445+hg~cb94c42c0e1a-1 fro= m Debian > squeeze) Weird, it works fine for me with vim from F15 (7.3). Anyway, if it helps, I guess it should go in. Applied. Thanks. --=20 Felipe Contreras