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 DC077431FAF for ; Thu, 29 Mar 2012 22:51:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 EAgMYvY-m68V for ; Thu, 29 Mar 2012 22:51:13 -0700 (PDT) Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) by olra.theworths.org (Postfix) with ESMTP id F1973431FAE for ; Thu, 29 Mar 2012 22:51:12 -0700 (PDT) Received: by guru.guru-group.fi (Postfix, from userid 501) id 8BE0068055; Fri, 30 Mar 2012 08:51:09 +0300 (EEST) From: Tomi Ollila To: Jakob , notmuch@notmuchmail.org Subject: Re: [PATCH] vim: fix regex after "notmuch show" output change In-Reply-To: <1333058573-10120-1-git-send-email-jakob@pipefour.org> References: <20120329214953.GA8548@dalek.hsd1.wa.comcast.net> <1333058573-10120-1-git-send-email-jakob@pipefour.org>User-Agent: Notmuch/0.12+70~gce7ecf1 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 30 Mar 2012 05:51:14 -0000 On Fri, Mar 30 2012, Jakob wrote: > The new field "excluded" was added to the output and made this regex fail. > --- LGTM. Tomi > vim/plugin/notmuch.vim | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim > index 21985c7..8f27fb9 100644 > --- a/vim/plugin/notmuch.vim > +++ b/vim/plugin/notmuch.vim > @@ -48,7 +48,7 @@ let s:notmuch_defaults = { > \ 'g:notmuch_show_part_end_regexp': ' part}' , > \ 'g:notmuch_show_marker_regexp': ' \\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$', > \ > - \ 'g:notmuch_show_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$', > + \ 'g:notmuch_show_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([0-9]*\) filename:\(.*\)$', > \ 'g:notmuch_show_tags_regexp': '(\([^)]*\))$' , > \ > \ 'g:notmuch_show_signature_regexp': '^\(-- \?\|_\+\)$' , > @@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines) > let msg['id'] = m[1] > let msg['depth'] = m[2] > let msg['match'] = m[3] > - let msg['filename'] = m[4] > + let msg['excluded'] = m[4] > + let msg['filename'] = m[5] > endif > > let in_message = 1 > -- > 1.7.9.1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch