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 F3A69429E30 for ; Sun, 3 Jul 2011 23:52:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 BElHll0w3QyV for ; Sun, 3 Jul 2011 23:52:43 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id AF115429E2D for ; Sun, 3 Jul 2011 23:52:42 -0700 (PDT) Received: by mail-wy0-f181.google.com with SMTP id 22so3733696wyh.26 for ; Sun, 03 Jul 2011 23:52:42 -0700 (PDT) Received: by 10.216.229.93 with SMTP id g71mr3175993weq.70.1309762362333; Sun, 03 Jul 2011 23:52:42 -0700 (PDT) Received: from localhost ([109.131.160.67]) by mx.google.com with ESMTPS id t79sm2865148weq.29.2011.07.03.23.52.40 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 23:52:41 -0700 (PDT) From: Pieter Praet To: Austin Clements Subject: [PATCH 2/5] emacs: add some functions to fetch the matched-msgids of a (region of) search result(s) Date: Mon, 4 Jul 2011 08:51:55 +0200 Message-Id: <1309762318-4530-3-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309762318-4530-1-git-send-email-pieter@praet.org> References: <20110703171743.GL15901@mit.edu> <1309762318-4530-1-git-send-email-pieter@praet.org> Cc: Notmuch Mail 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: Mon, 04 Jul 2011 06:52:44 -0000 Signed-off-by: Pieter Praet --- emacs/notmuch.el | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 674deb7..2338044 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -402,6 +402,14 @@ Complete list of currently available key bindings: "Return a list of threads for the current region" (notmuch-search-properties-in-region 'notmuch-search-thread-id beg end)) +(defun notmuch-search-find-matched-msgids () + "Return the matched Message-Id's for the current thread" + (get-text-property (point) 'notmuch-search-matched-msgids)) + +(defun notmuch-search-find-matched-msgids-region (beg end) + "Return a list of matched Message-Id's for the current region" + (notmuch-search-properties-in-region 'notmuch-search-matched-msgids beg end)) + (defun notmuch-search-find-authors () "Return the authors for the current thread" (get-text-property (point) 'notmuch-search-authors)) -- 1.7.5.4