Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 92 / 9134419ad71a2ad62981e2ebc8948ccbe8cf12
1 Return-Path: <alpine.art.de@gmail.com>\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 02463431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 10 Oct 2014 02:21:27 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 6H1U9xSXkkhu for <notmuch@notmuchmail.org>;\r
17         Fri, 10 Oct 2014 02:21:20 -0700 (PDT)\r
18 Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com\r
19         [209.85.217.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id BB182431FAF\r
22         for <notmuch@notmuchmail.org>; Fri, 10 Oct 2014 02:21:19 -0700 (PDT)\r
23 Received: by mail-lb0-f169.google.com with SMTP id 10so2717963lbg.14\r
24         for <notmuch@notmuchmail.org>; Fri, 10 Oct 2014 02:21:14 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=date:message-id:from:to:subject:in-reply-to:references:mime-version\r
27         :content-type:content-disposition:content-transfer-encoding;\r
28         bh=oOx98xBQsHr6pXKFo6nVUseezlmqsPNlCyz8l09w7bQ=;\r
29         b=ltig0/EbsCpZOEBDRmEh+8Wfaw0ruvbcNnZoT8RF/SmlpmXZ4olJItWKhLMVjcEVU1\r
30         GQuAu1QrkDNhgM1qXeNJlhtwCHK6KyAfuIJ3vSJEVnb/co7m6uYx/xstwzxAtMnRrCxC\r
31         8qbD8MI5/NPeajdd/sxAzYA3NYHeffBmXgSKZ4ESvBDCSpkwD7+c6ChGmiLAVPeZ4e5g\r
32         a433oejWUOtsZwgMV2PBD33p+AKJHU9IhbodHRHJZ3cjJi8UUclKmHUctvpJpOppXiiV\r
33         7xU885eLGeAWMiZi0li+SxJcFJu50v+QPtzK2JifmmU5G+iYtokzZDw8nVjfSCM6zxCJ\r
34         uG0w==\r
35 X-Received: by 10.152.23.99 with SMTP id l3mr3331395laf.39.1412932874579;\r
36         Fri, 10 Oct 2014 02:21:14 -0700 (PDT)\r
37 Received: from localhost (p5B00C9E6.dip0.t-ipconnect.de. [91.0.201.230])\r
38         by mx.google.com with ESMTPSA id ju7sm1669281lbc.0.2014.10.10.02.21.12\r
39         for <notmuch@notmuchmail.org>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Fri, 10 Oct 2014 02:21:13 -0700 (PDT)\r
42 Date: Fri, 10 Oct 2014 11:21:22 +0200\r
43 Message-ID: <20141010112122.GB28601@TP_L520.localdomain>\r
44 From: Franz Fellner <alpine.art.de@gmail.com>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: Re: [PATCH] VIM: Improve moving between messages in a thread\r
47 In-Reply-To: <1412618116-27586-1-git-send-email-imain@stemwinder.org>\r
48 References: <1412579537-7921-1-git-send-email-imain@stemwinder.org>\r
49         <1412618116-27586-1-git-send-email-imain@stemwinder.org>\r
50 MIME-Version: 1.0\r
51 Content-Type: text/plain; charset=utf-8\r
52 Content-Disposition: inline\r
53 Content-Transfer-Encoding: 8bit\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Fri, 10 Oct 2014 09:21:28 -0000\r
67 \r
68 Patch works fine for me. It also would be nice to have a "move to next\r
69 unread message" function.\r
70 Most beautiful would be a treeview of the thread structure. Currently\r
71 threads are rendered as plain list, so you can't immediately see and\r
72 jump to the quoted mail. Bower IMHO uses the best approach here. I tried\r
73 emacs treeview but did not really like it (partly because I failed badly\r
74 to implement a solution that shows treeview by default). Indent the\r
75 whole large Message view IMHO also is not a good (at least to me)\r
76 solution.\r
77 \r
78 On Mon,  6 Oct 2014 10:55:16 -0700, Ian Main <imain@stemwinder.org> wrote:\r
79 > @@ -113,6 +114,22 @@ EOF\r
80 >       call s:kill_this_buffer()\r
81 >  endfunction\r
82 >  \r
83 > +function! s:show_prev_msg()\r
84 > +ruby << EOF\r
85 > +     r, c = $curwin.cursor\r
86 > +     n = $curbuf.line_number\r
87 > +     i = $messages.index { |m| n >= m.start && n <= m.end }\r
88 > +     m = $messages[i - 1] if i > 0\r
89 \r
90 This one\r
91 > +     vim_puts ("messages index is #{i} and m is #{m}")\r
92 was missed ;)\r
93 \r
94 > +     if m\r
95 > +             r = m.body_start + 1\r
96 > +             scrolloff = VIM::evaluate("&scrolloff")\r
97 > +             VIM::command("normal #{m.start + scrolloff}zt")\r
98 > +             $curwin.cursor = r + scrolloff, c\r
99 > +     end\r
100 > +EOF\r
101 > +endfunction\r
102 > +\r
103 >  function! s:show_next_msg()\r
104 >  ruby << EOF\r
105 >       r, c = $curwin.cursor\r
106 > @@ -121,8 +138,9 @@ ruby << EOF\r
107 >       m = $messages[i + 1]\r
108 >       if m\r
109 >               r = m.body_start + 1\r
110 > -             VIM::command("normal #{m.start}zt")\r
111 > -             $curwin.cursor = r, c\r
112 > +             scrolloff = VIM::evaluate("&scrolloff")\r
113 > +             VIM::command("normal #{m.start + scrolloff}zt")\r
114 > +             $curwin.cursor = r + scrolloff, c\r
115 >       end\r
116 >  EOF\r
117 >  endfunction\r
118 > -- \r
119 > 1.9.3\r
120\r
121 > _______________________________________________\r
122 > notmuch mailing list\r
123 > notmuch@notmuchmail.org\r
124 > http://notmuchmail.org/mailman/listinfo/notmuch\r