[notmuch] [PATCH 1/3] Make mouse-1 click in search view show thread
authorKeith Packard <keithp@keithp.com>
Sat, 21 Nov 2009 07:15:06 +0000 (23:15 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:37 +0000 (09:35 -0800)
ee/602d138978a82f3e7ad226e0639466f7ef9820 [new file with mode: 0644]

diff --git a/ee/602d138978a82f3e7ad226e0639466f7ef9820 b/ee/602d138978a82f3e7ad226e0639466f7ef9820
new file mode 100644 (file)
index 0000000..c20d8aa
--- /dev/null
@@ -0,0 +1,72 @@
+Return-Path: <keithp@keithp.com>\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 9AA9B431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 23:15:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 973htybmOVnl for <notmuch@notmuchmail.org>;\r
+       Fri, 20 Nov 2009 23:15:15 -0800 (PST)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id CF4A6431FAE\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 23:15:14 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 285CB760222\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 23:15:14 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id lhU7c0IoGy4O; Fri, 20 Nov 2009 23:15:11 -0800 (PST)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id 66478B9404B; Fri, 20 Nov 2009 23:15:11 -0800 (PST)\r
+Received: from koto.keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 615B276012C;\r
+       Fri, 20 Nov 2009 23:15:11 -0800 (PST)\r
+Received: by koto.keithp.com (Postfix, from userid 1488)\r
+       id 08D561982A8; Fri, 20 Nov 2009 23:15:11 -0800 (PST)\r
+From: Keith Packard <keithp@keithp.com>\r
+To: notmuch@notmuchmail.org\r
+Date: Fri, 20 Nov 2009 23:15:06 -0800\r
+Message-Id: <1258787708-21121-1-git-send-email-keithp@keithp.com>\r
+X-Mailer: git-send-email 1.6.5.2\r
+Subject: [notmuch] [PATCH 1/3] Make mouse-1 click in search view show thread\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Sat, 21 Nov 2009 07:15:17 -0000\r
+\r
+Selecting text in the search view isn't all that useful, so instead,\r
+make mouse-1 clicks actually show the thread you click on. It's almost\r
+like direct manipulation or something.\r
+\r
+Signed-off-by: Keith Packard <keithp@keithp.com>\r
+---\r
+ notmuch.el |    1 +\r
+ 1 files changed, 1 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index feb84ad..4f369de 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -783,6 +783,7 @@ thread from that buffer can be show when done with this one)."\r
+     (define-key map "t" 'notmuch-search-filter-by-tag)\r
+     (define-key map "x" 'kill-this-buffer)\r
+     (define-key map (kbd "RET") 'notmuch-search-show-thread)\r
++    (define-key map [mouse-1] 'notmuch-search-show-thread)\r
+     (define-key map "+" 'notmuch-search-add-tag)\r
+     (define-key map "-" 'notmuch-search-remove-tag)\r
+     (define-key map "<" 'beginning-of-buffer)\r
+-- \r
+1.6.5.2\r
+\r