Re: [PATCH] vim: skip trailing slash for g:notmuch_compose_temp_file_dir
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 16 Jul 2011 19:10:18 +0000 (22:10 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:08 +0000 (09:39 -0800)
ea/5f06ec436e6fc45d4b007132494932901bd1ac [new file with mode: 0644]

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