Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 44 / b9339df2101b3a17471e741242d207a1f1e3c0
1 Return-Path: <ukleinek@Chamillionaire.breakpoint.cc>\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 90883431FD0\r
6         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 12:42:48 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 4tHlN7TuYvdD for <notmuch@notmuchmail.org>;\r
16         Sun, 10 Jul 2011 12:42:48 -0700 (PDT)\r
17 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc\r
18         [85.10.199.196])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 19438431FB6\r
22         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 12:42:48 -0700 (PDT)\r
23 Received: id: ukleinek by Chamillionaire.breakpoint.cc authenticated by\r
24         ukleinek with local (easymta 1.00 BETA 1)\r
25         id 1Qfztu-0004h3-I7; Sun, 10 Jul 2011 21:42:46 +0200\r
26 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <ukleinek@strlen.de>\r
27 To: notmuch@notmuchmail.org\r
28 Subject: [PATCH] vim: skip trailing slash for g:notmuch_compose_temp_file_dir\r
29 Date: Sun, 10 Jul 2011 21:42:41 +0200\r
30 Message-Id: <1310326961-6914-1-git-send-email-ukleinek@strlen.de>\r
31 X-Mailer: git-send-email 1.7.5.4\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.13\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36         <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Sun, 10 Jul 2011 19:42:48 -0000\r
45 \r
46 With the trailing slash I get\r
47 \r
48         Error detected while processing function <SNR>10_NM_new_mail..<SNR>10_NM_cmd_compose..<SNR>10_NM_newComposeBuffer..<SNR>10_NM_newFileBuffer:\r
49         line    3:\r
50         E739: Cannot create directory: /home/ukleinek/.notmuch/compose/\r
51 \r
52 when hitting 'm' to compose a new mail. strace shows:\r
53 \r
54         stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314a10) = -1 ENOENT (No such file or directory)\r
55         stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314e30) = -1 ENOENT (No such file or directory)\r
56         stat("/home/ukleinek/.notmuch/compose", 0x7fffee315270) = -1 ENOENT (No such file or directory)\r
57         stat("/home/ukleinek/.notmuch", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\r
58         mkdir("/home/ukleinek/.notmuch/compose", 0755) = 0\r
59         mkdir("/home/ukleinek/.notmuch/compose/", 0755) = -1 EEXIST (File exists)\r
60 \r
61 so it seems vim's mkdir() isn't able to handle a trailing slash.\r
62 ---\r
63 Hello,\r
64 \r
65 is that a bug in vim? (BTW, I'm using vim 2:7.2.445+hg~cb94c42c0e1a-1 from Debian\r
66 squeeze)\r
67 \r
68 Best regards\r
69 Uwe\r
70 \r
71  vim/plugin/notmuch.vim |    2 +-\r
72  1 files changed, 1 insertions(+), 1 deletions(-)\r
73 \r
74 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
75 index 768a011..181e626 100644\r
76 --- a/vim/plugin/notmuch.vim\r
77 +++ b/vim/plugin/notmuch.vim\r
78 @@ -58,7 +58,7 @@ let s:notmuch_defaults = {\r
79          \\r
80          \ 'g:notmuch_compose_insert_mode_start':     1                            ,\r
81          \ 'g:notmuch_compose_header_help':           1                            ,\r
82 -        \ 'g:notmuch_compose_temp_file_dir':         '~/.notmuch/compose/'        ,\r
83 +        \ 'g:notmuch_compose_temp_file_dir':         '~/.notmuch/compose'         ,\r
84          \ }\r
85  \r
86  " defaults for g:notmuch_initial_search_words\r
87 -- \r
88 1.7.5.4\r
89 \r