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 2123F431FBC for ; Thu, 2 Oct 2014 12:22:25 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 Ajgk-O0SmtO2 for ; Thu, 2 Oct 2014 12:22:21 -0700 (PDT) Received: from cmta5.telus.net (cmta5.telus.net [209.171.16.78]) by olra.theworths.org (Postfix) with ESMTP id 19F95431FB6 for ; Thu, 2 Oct 2014 12:22:21 -0700 (PDT) Received: from ovo.mains.priv ([207.102.88.62]) by cmta5.telus.net with TELUS id yKNJ1o00p1LiWEf01KNKRY; Thu, 02 Oct 2014 13:22:19 -0600 X-Authority-Analysis: v=2.0 cv=JvIvWrEC c=1 sm=2 a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10 a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=H0wNZic-ieGwve4HzE8A:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=EcQDfIwDZEqJA1f7rVUV8Q==:117 X-Telus-Outbound-IP: 207.102.88.62 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1]) by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s92JMBKR020539; Thu, 2 Oct 2014 12:22:12 -0700 Received: (from imain@localhost) by ovo.mains.priv (8.14.8/8.14.8/Submit) id s92JMAB7020538; Thu, 2 Oct 2014 12:22:10 -0700 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com using -f Date: Thu, 02 Oct 2014 12:22:10 -0700 From: Ian Main To: Sergei Shilovsky , notmuch@notmuchmail.org Message-ID: <542da5e2565b9_4f181359e94d@ovo.mains.priv.notmuch> In-Reply-To: References: Subject: RE: notmuch-vim doesn't respect notmuch config defaults Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 03 Oct 2014 14:04:56 -0700 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: Thu, 02 Oct 2014 19:22:25 -0000 Sergei Shilovsky wrote: > I would suggest to use `notmuch config list` to get configuration > values in vim if possible > > Reproduction example follows: > > /home/sh> cat .notmuch-config > [new] > tags=new;inbox;unread > ignore= > > [search] > exclude_tags=deleted;spam > > [maildir] > synchronize_flags=false > > /home/sh> notmuch config list > new.tags=new;inbox;unread > new.ignore= > search.exclude_tags=deleted;spam > maildir.synchronize_flags=false > database.path=/home/sh/mail > user.name=Sergei Shilovsky > user.primary_email=sshilovsky@gmail.com > > /home/sh> vim -c :NotMuch > Error detected while processing function > 13_NotMuch..13_folders.. > 13_new_buffer: > line 6: > TypeError: no implicit conversion of nil into String > Error detected while processing function 13_NotMuch..13_folders: > line 2: > NoMethodError: undefined method `query' for nil:NilClass > > Having explicit database.path=/home/sh/mail in the configuration file > makes it work Right, so you didn't have database.path in your config file before right? Doesn't the default notmuch setup set that for you? It wouldn't be too hard to change vim to use 'notmuch config list' to get its configuration information, but as mentioned a library would be much nicer. Anyone have any thoughts on this? How does the emacs client do it? If the config list method is superior I'll write up a patch for it. Ian