[PATCH v2] emacs: call notmuch-show instead of notmuch-search in buttonised id: links
authorJameson Graef Rollins <jrollins@finestructure.net>
Fri, 23 Dec 2011 04:59:12 +0000 (20:59 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:12 +0000 (09:41 -0800)
d2/145df90411841db15ab8659c9971ed9e9d3302 [new file with mode: 0644]

diff --git a/d2/145df90411841db15ab8659c9971ed9e9d3302 b/d2/145df90411841db15ab8659c9971ed9e9d3302
new file mode 100644 (file)
index 0000000..e67bfb6
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 63F89431FD0\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id L90pe2X8ygui for <notmuch@notmuchmail.org>;\r
+       Thu, 22 Dec 2011 20:59:19 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id E6862431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:18 -0800 (PST)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 92E293280EB\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:16 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com\r
+       [76.174.137.84]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id DE14332807D\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 20:59:14 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 56880145B; Thu, 22 Dec 2011 20:59:12 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH v2] emacs: call notmuch-show instead of notmuch-search in\r
+       buttonised id: links\r
+Date: Thu, 22 Dec 2011 20:59:12 -0800\r
+Message-Id: <1324616352-15337-1-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.7.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 23 Dec 2011 04:59:19 -0000\r
+\r
+Since message-ids necessarily match just a single message, there's no\r
+reason to do a search for the id before viewing the actual message;\r
+the search just becomes an extra screen to click through.  Clicking on\r
+an id: links now just jumps straight to the message itself.\r
+---\r
+This just fixes the subject of the patch, which had a typo.  Sorry.\r
+\r
+ emacs/notmuch-show.el |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 98db8f2..623d521 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -803,7 +803,7 @@ a corresponding notmuch search."\r
+       (remove-overlays (match-beginning 0) (match-end 0) 'goto-address t)\r
+       (make-text-button (match-beginning 0) (match-end 0)\r
+                       'action `(lambda (arg)\r
+-                                 (notmuch-search ,(match-string-no-properties 0)))\r
++                                 (notmuch-show ,(match-string-no-properties 0)))\r
+                       'follow-link t\r
+                       'help-echo "Mouse-1, RET: search for this message"\r
+                       'face goto-address-mail-face))))\r
+-- \r
+1.7.7.3\r
+\r