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 AAD55431FBC for ; Wed, 25 Nov 2009 06:33:02 -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 1Xzj02e41KAF for ; Wed, 25 Nov 2009 06:33:02 -0800 (PST) Received: from mail-yw0-f200.google.com (mail-yw0-f200.google.com [209.85.211.200]) by olra.theworths.org (Postfix) with ESMTP id 1461F431FAE for ; Wed, 25 Nov 2009 06:33:02 -0800 (PST) Received: by ywh38 with SMTP id 38so6996638ywh.6 for ; Wed, 25 Nov 2009 06:33:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.115.14 with SMTP id s14mr4165208agm.16.1259159581284; Wed, 25 Nov 2009 06:33:01 -0800 (PST) In-Reply-To: <86fx83qirs.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> 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> Date: Wed, 25 Nov 2009 08:33:01 -0600 Message-ID: <935ead450911250633n62858038yfb1eeea98fd23bdc@mail.gmail.com> From: Jeffrey Ollie To: Alexander Botero-Lowry Content-Type: text/plain; charset=UTF-8 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 14:33:02 -0000 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 -- Jeff Ollie