Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / d2 / 145df90411841db15ab8659c9971ed9e9d3302
1 Return-Path: <jrollins@finestructure.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 63F89431FD0\r
6         for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:19 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id L90pe2X8ygui for <notmuch@notmuchmail.org>;\r
16         Thu, 22 Dec 2011 20:59:19 -0800 (PST)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id E6862431FB6\r
20         for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:18 -0800 (PST)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id 92E293280EB\r
23         for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:16 -0800 (PST)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com\r
26         [76.174.137.84]) (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id DE14332807D\r
28         for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:14 -0800 (PST)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id 56880145B; Thu, 22 Dec 2011 20:59:12 -0800 (PST)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: [PATCH v2] emacs: call notmuch-show instead of notmuch-search in\r
34         buttonised id: links\r
35 Date: Thu, 22 Dec 2011 20:59:12 -0800\r
36 Message-Id: <1324616352-15337-1-git-send-email-jrollins@finestructure.net>\r
37 X-Mailer: git-send-email 1.7.7.3\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 23 Dec 2011 04:59:19 -0000\r
51 \r
52 Since message-ids necessarily match just a single message, there's no\r
53 reason to do a search for the id before viewing the actual message;\r
54 the search just becomes an extra screen to click through.  Clicking on\r
55 an id: links now just jumps straight to the message itself.\r
56 ---\r
57 This just fixes the subject of the patch, which had a typo.  Sorry.\r
58 \r
59  emacs/notmuch-show.el |    2 +-\r
60  1 files changed, 1 insertions(+), 1 deletions(-)\r
61 \r
62 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
63 index 98db8f2..623d521 100644\r
64 --- a/emacs/notmuch-show.el\r
65 +++ b/emacs/notmuch-show.el\r
66 @@ -803,7 +803,7 @@ a corresponding notmuch search."\r
67        (remove-overlays (match-beginning 0) (match-end 0) 'goto-address t)\r
68        (make-text-button (match-beginning 0) (match-end 0)\r
69                         'action `(lambda (arg)\r
70 -                                  (notmuch-search ,(match-string-no-properties 0)))\r
71 +                                  (notmuch-show ,(match-string-no-properties 0)))\r
72                         'follow-link t\r
73                         'help-echo "Mouse-1, RET: search for this message"\r
74                         'face goto-address-mail-face))))\r
75 -- \r
76 1.7.7.3\r
77 \r