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 1B238431FBC; Fri, 27 Nov 2009 05:41:59 -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 fizH4apxXTzl; Fri, 27 Nov 2009 05:41:58 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0715F431FAE; Fri, 27 Nov 2009 05:41:58 -0800 (PST) From: Carl Worth To: Jed Brown , notmuch@notmuchmail.org In-Reply-To: <87my2bfyyj.fsf@59A2.org> References: <1259094131-32405-1-git-send-email-jed@59A2.org> <1259087712-18844-1-git-send-email-jed@59A2.org> <87my2bfyyj.fsf@59A2.org> Date: Fri, 27 Nov 2009 05:41:44 -0800 Message-ID: <87bpioqe3r.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] New function notmuch-show-kill-ring-save-message-id. 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: Fri, 27 Nov 2009 13:41:59 -0000 Thanks for the patch, Jed, I almost pushed it, but noticed that it's calling `called-interactively-p' with an argument even though that function does not accept an argument. Meanwhile, the documentation of called-interactively-p suggests that using (interactive "p") is an easier way to check whether the function is called interactively. Then, you also had one question: On Tue, 24 Nov 2009 21:29:56 +0100, Jed Brown wrote: > It turns out that this ID has id: prefixed (which I thought was fine > because I'm frequently doing another query with it). But git send-email > doesn't strip that, so this was not threaded correctly. Would this be > better with the id: prefix stripped? No, "git send-email" wouldn't strip that since it's a custom thing for notmuch. So for passing the thread ID to notmuch users, the "id:" prefix is convenient. For passing it not non-notmuch-based consumers it won't be desired. And that's hard to fix. I think long-term, a good solution would be to switch from "id:foo" to "" as the syntax for message-ID-based search strings. That's then a syntax that almost any consumer of a message ID should be prepared to accept. And that's something that will only really be possible when we bite the bullet and write our own query parser rather than using the default parser that Xapian provides. -Carl