Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / e1 / 3789099ab27c7f3219ed32b108146dfd50f1f1
1 Return-Path: <tassilo@member.fsf.org>\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 50D44431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 28 Dec 2009 14:27:42 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id kqOUw77xJv6N for <notmuch@notmuchmail.org>;\r
11         Mon, 28 Dec 2009 14:27:40 -0800 (PST)\r
12 Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com\r
13         [66.111.4.25])\r
14         by olra.theworths.org (Postfix) with ESMTP id EB342431FAE\r
15         for <notmuch@notmuchmail.org>; Mon, 28 Dec 2009 14:27:39 -0800 (PST)\r
16 Received: from compute2.internal (compute2.internal [10.202.2.42])\r
17         by gateway1.messagingengine.com (Postfix) with ESMTP id 62416C92EE;\r
18         Mon, 28 Dec 2009 17:27:39 -0500 (EST)\r
19 Received: from heartbeat1.messagingengine.com ([10.202.2.160])\r
20         by compute2.internal (MEProxy); Mon, 28 Dec 2009 17:27:39 -0500\r
21 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;\r
22         h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type;  s=smtpout; bh=b6r1mbt4tBDvWtBwc/a0ChhzQwE=;\r
23         b=egf4HF2EhYyI48B5i0ADEUnWTJ38aX/y+I7oFgyjUZof6nOAOBe4EiOA9ESJdX4bJUjDI0xes/EGkSpcwzA3pVZtfWps1Nu5eIeZ1Avcl+f0Lo9Cw95D5eC1veM9/P3W8p9uiMiN0LwSSefEZvAzttBn26JjoHLJRQ/+UiSvztA=\r
24 X-Sasl-enc: xk7nK+li+TYPG4QKowtKRiiuFKrmIhYU9+5ObvZgIpPB 1262039258\r
25 Received: from thinkpad.tsdh.de (p54AF2046.dip0.t-ipconnect.de [84.175.32.70])\r
26         by mail.messagingengine.com (Postfix) with ESMTPA id 242A149B480;\r
27         Mon, 28 Dec 2009 17:27:37 -0500 (EST)\r
28 From: Tassilo Horn <tassilo@member.fsf.org>\r
29 To: Jameson Graef Rollins <jrollins@phys.columbia.edu>\r
30 In-Reply-To: <20091228211812.GA10885@finestructure.net> (Jameson Graef\r
31         Rollins's message of "Mon, 28 Dec 2009 16:18:12 -0500")\r
32 References: <20091228211812.GA10885@finestructure.net>\r
33 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)\r
34 Mail-Copies-To: never\r
35 Date: Mon, 28 Dec 2009 23:27:30 +0100\r
36 Message-ID: <87k4w691kd.fsf@thinkpad.tsdh.de>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 Cc: notmuch@notmuchmail.org\r
40 Subject: Re: [notmuch] modifying emacs keymap\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.12\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 28 Dec 2009 22:27:42 -0000\r
54 \r
55 Jameson Graef Rollins <jrollins@phys.columbia.edu> writes:\r
56 \r
57 Hi Jameson,\r
58 \r
59 > (add-hook 'notmuch-search-mode\r
60 >   (define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread)\r
61 > )\r
62 \r
63 `notmuch-search-mode' is no hook, and even if it was, you couldn't add\r
64 what you like, because that's no function.  You would need to define a\r
65 function that doesn that or wrap it in a lambda function.\r
66 \r
67 Anyway, this should do the trick:\r
68 \r
69 (define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread)\r
70 \r
71 Bye,\r
72 Tassilo\r