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 B4ED4431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:55:55 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 igFZZmygKsPo for <notmuch@notmuchmail.org>;
\r
16 Thu, 22 Dec 2011 20:55:55 -0800 (PST)
\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id 50AA5431FB6
\r
20 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:55:55 -0800 (PST)
\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by earth-doxen-postvirus (Postfix) with ESMTP id D8C8466E0253
\r
23 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:55:52 -0800 (PST)
\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-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 earth-doxen-submit (Postfix) with ESMTP id 0EA4766E0039
\r
28 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:55:49 -0800 (PST)
\r
29 Received: by finestructure.net (Postfix, from userid 1000)
\r
30 id A3BB7145B; Thu, 22 Dec 2011 20:55:48 -0800 (PST)
\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH] emacs: call notmuch-show instead notmuch-search in buttonised
\r
35 Date: Thu, 22 Dec 2011 20:55:48 -0800
\r
36 Message-Id: <1324616148-14637-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
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:55:55 -0000
\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
57 emacs/notmuch-show.el | 2 +-
\r
58 1 files changed, 1 insertions(+), 1 deletions(-)
\r
60 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
61 index 98db8f2..623d521 100644
\r
62 --- a/emacs/notmuch-show.el
\r
63 +++ b/emacs/notmuch-show.el
\r
64 @@ -803,7 +803,7 @@ a corresponding notmuch search."
\r
65 (remove-overlays (match-beginning 0) (match-end 0) 'goto-address t)
\r
66 (make-text-button (match-beginning 0) (match-end 0)
\r
67 'action `(lambda (arg)
\r
68 - (notmuch-search ,(match-string-no-properties 0)))
\r
69 + (notmuch-show ,(match-string-no-properties 0)))
\r
71 'help-echo "Mouse-1, RET: search for this message"
\r
72 'face goto-address-mail-face))))
\r