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 50A85431FBC for ; Wed, 25 Nov 2009 07:32:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 PmC3wLxyFoUx for ; Wed, 25 Nov 2009 07:32:16 -0800 (PST) Received: from tau.jukie.net (tau.jukie.net [216.239.93.128]) by olra.theworths.org (Postfix) with ESMTP id 38C2A431FAE for ; Wed, 25 Nov 2009 07:32:16 -0800 (PST) Received: by tau.jukie.net (Postfix, from userid 1000) id 774B7C0090B; Wed, 25 Nov 2009 10:32:15 -0500 (EST) Date: Wed, 25 Nov 2009 10:32:15 -0500 From: Bart Trojanowski To: Jeffrey Ollie Message-ID: <20091125153215.GE29312@jukie.net> References: <1259125080-18708-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <86fx83qirs.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> <935ead450911250633n62858038yfb1eeea98fd23bdc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <935ead450911250633n62858038yfb1eeea98fd23bdc@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH -v4] notmuch.el: Add face support to search and show mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 25 Nov 2009 15:32:17 -0000 * Jeffrey Ollie [091125 09:33]: > On Tue, Nov 24, 2009 at 11:24 PM, Alexander Botero-Lowry > wrote: > > > > This way of detecting the tags seems ok, but I think it would be nicer > > if it could be done even more deterministically. :) One idea that be > > neat is to have a --format=sexp for notmuch search, which exports sexps > > (probably alists, but could be some other format) for the search results > > that can just be eval'd and processed in a cleaner way (and would also > > make for nicer APIs in emacs for querying notmuch itself). Actually I > > really like the idea of a sexp output mode for show too, instead of the > > markers.... *plots* > > Along the same lines, I was thinking that it would be nice to be able > to get output formatted in JSON as well for possible use in a web > front-end. Actually, it looks like Emacs has support for JSON as > well[1]. Not sure what release it was introduced in, but I see that > it's in 23.1. > > http://edward.oconnor.cx/2006/03/json.el Would it be possible to make templates for output? notmuch show --format=json would have notmuch follow rules from .notmuch/json.template (or somesuch) -Bart -- WebSig: http://www.jukie.net/~bart/sig/