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 20C71431FB6 for ; Thu, 2 Oct 2014 12:32:20 -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 ktTql86AvrNo for ; Thu, 2 Oct 2014 12:32:16 -0700 (PDT) Received: from cmta11.telus.net (cmta11.telus.net [209.171.16.84]) by olra.theworths.org (Postfix) with ESMTP id 0F49A431FBC for ; Thu, 2 Oct 2014 12:32:15 -0700 (PDT) Received: from ovo.mains.priv ([207.102.88.62]) by cmta11.telus.net with TELUS id yKYE1o00d1LiWEf01KYF67; Thu, 02 Oct 2014 13:32:15 -0600 X-Authority-Analysis: v=2.0 cv=daReKwre c=1 sm=2 a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=IkcTkHD0fZMA:10 a=tsa3CZZnAAAA:8 a=pGLkceISAAAA:8 a=OQOlkEr0AAAA:8 a=gM4CmfTiCWTIJuLeQisA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=SO3WljcwdcsA: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 s92JWCvC020909 for ; Thu, 2 Oct 2014 12:32:13 -0700 Received: (from imain@localhost) by ovo.mains.priv (8.14.8/8.14.8/Submit) id s92JWBl0020908; Thu, 2 Oct 2014 12:32:11 -0700 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com using -f Date: Thu, 02 Oct 2014 12:32:11 -0700 From: Ian Main To: notmuch@notmuchmail.org Message-ID: <542da83bb9cd9_50b1171de9034@ovo.mains.priv.notmuch> In-Reply-To: <87zjdeaf4t.fsf@maritornes.cs.unb.ca> References: <87zjdeaf4t.fsf@maritornes.cs.unb.ca> 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-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:32:20 -0000 David Bremner wrote: > Sergei Shilovsky writes: > > > I would suggest to use `notmuch config list` to get configuration > > values in vim if possible > > I guess this is a general question we haven't really resolved, namely > sharing configuration information between various notmuch frontends. > .notmuch-config is really the configuration file for the notmuch CLI; it > isn't read by library, so clients using language bindings won't see it > at all by default. > > On a somewhat related note I've been thinking how to best associate > configuration information with a database (see e.g. the thread at > id:1411805835-3563-1-git-send-email-david@tethera.net ). Note that this > would not help this particular case. > > Offhand, I wouldn't be personally to some interface at the library level > wrapping the reading and writing of ~/.notmuch-config, although as I > mentioned before, the size and complexity of notmuch-config.c perturb me > a little as far as being suitable for library code. I could change the vim client to use notmuch config list easily enough. Any consensus here? How does the emacs client do it? I can make up a patch if this seems like the right way to go. Also, someone on IRC mentioned making it so config list could dump JSON which would make that more reasonable. Ian