Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 66 / c7ec27c285df6376283d6913839c221799cdf6
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 8FD4A431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 29 Mar 2012 13:27:42 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 YdOpFz8LXqvt for <notmuch@notmuchmail.org>;\r
16         Thu, 29 Mar 2012 13:27:40 -0700 (PDT)\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 358B2431FAE\r
20         for <notmuch@notmuchmail.org>; Thu, 29 Mar 2012 13:27:40 -0700 (PDT)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id DB22F328064;\r
23         Thu, 29 Mar 2012 13:27:39 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (DHCP-123-229.caltech.edu [131.215.123.229])\r
26         (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id 20FE32E50CC1;\r
28         Thu, 29 Mar 2012 13:27:37 -0700 (PDT)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id EC5F8139; Thu, 29 Mar 2012 13:27:36 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Mark Anderson <MarkR.Anderson@amd.com>,\r
33         Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: Re: Goto command for existing search windows\r
35 In-Reply-To: <3wdmx6z5rzx.fsf@testarossa.amd.com>\r
36 References: <3wd1uod7px7.fsf@testarossa.amd.com>\r
37         <3wdmx6z5rzx.fsf@testarossa.amd.com>\r
38 User-Agent: Notmuch/0.12+78~g127fa56 (http://notmuchmail.org) Emacs/23.3.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Thu, 29 Mar 2012 13:27:36 -0700\r
41 Message-ID: <87iphn40g7.fsf@servo.finestructure.net>\r
42 MIME-Version: 1.0\r
43 Content-Type: multipart/signed; boundary="=-=-=";\r
44         micalg=pgp-sha256; protocol="application/pgp-signature"\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Thu, 29 Mar 2012 20:27:42 -0000\r
58 \r
59 --=-=-=\r
60 Content-Transfer-Encoding: quoted-printable\r
61 \r
62 On Thu, Mar 29 2012, Mark Anderson <MarkR.Anderson@amd.com> wrote:\r
63 > On Tue, 27 Mar 2012 14:24:36 -0600, Mark Anderson <MarkR.Anderson@amd.com=\r
64 > wrote:\r
65 >> I was looking for a function which would find a buffer based on one of\r
66 >> my saved searches, and perform the search if it didn't exist.\r
67 >>=20\r
68 >> I've gotten it a bit closer, if I perform the search that matches a\r
69 >> saved search, then this routine will find it because of the magic in\r
70 >> notmuch-search-buffer-title, but perhaps someone else feels up to\r
71 >> searching through the saved searches directly?\r
72 \r
73 Hey, Mark.  I think you can be a little simpler.  The title for search\r
74 buffers is based on the search, so a buffer will always be reused for an\r
75 identical search.  You don't need to do any fancy buffer searching.  For\r
76 instance, the following works perfectly for me, and I believe produces\r
77 the same results as your technique:\r
78 \r
79 (defun jnotmuch-inbox ()\r
80   "Search: inbox"\r
81   (interactive)\r
82   (notmuch-search "tag:inbox" t))\r
83 (define-key notmuch-hello-mode-map "2" 'jnotmuch-inbox)\r
84 (define-key notmuch-search-mode-map "2" 'jnotmuch-inbox)\r
85 (define-key notmuch-show-mode-map "2" 'jnotmuch-inbox)\r
86 \r
87 jamie.\r
88 \r
89 --=-=-=\r
90 Content-Type: application/pgp-signature\r
91 \r
92 -----BEGIN PGP SIGNATURE-----\r
93 Version: GnuPG v1.4.12 (GNU/Linux)\r
94 \r
95 iQIcBAEBCAAGBQJPdMW4AAoJEO00zqvie6q8ZYYP+gJfYFM8ndCeQkKYebrTwoA8\r
96 Q7KkQ2a4f7FF6/6/iyOclGACzzEHEudciykqbT4ig3J1k221r2lCMUgTJpY4PFIi\r
97 b4c24LhBSlO0gx4V+T2assWN3QqILk3CSfOefvLzMZr5Rmiuw/4i0knnHeG/a1fA\r
98 ZJmbec2VY2nOwcP4388DMi+ktr9Ms7VnJsJ4Sr5JrwEGukDzv1AMNaAX9aqEY+ES\r
99 sFvQ7N6K48dnaV6P0rzRyfmW9/Vt96KkmkKkLmm45656/y9lkECpWCrKu0uT9I7t\r
100 KmJdGwV5f2b3KgPBpexCkjEEeh4ss7/ygwY+qQACQucHnL3/VhBVEZ3ISljQSSrx\r
101 QxY6qCceLUKBdw+1s+8udjJxTPpsRT4nJnE3gWsgkNH1mv/skJYqQqVn6ir5LeTa\r
102 8uBcFHt8adIFinvRqmHUxJcnLLFdXKuBb9QFIq78IMHmu+kmZhxN21G0+TOT++TI\r
103 JJTEd2cmsZC7AtWyufM1WQGZTTozz+c6aQ5rgYL45bZx5zgGnqddEKulvIyooOCy\r
104 k6Gc1YUeAF/NMACkT4BHEN72YD1VoM36bGlM9lIe236gcehMQmeNIuZev4U2lFoo\r
105 PCGB2D3fpJm6DLStflztxOROLYPcYWur5c9VPJfH6w9pBCIrCjcgv9qaMJleqTiW\r
106 UIocEOOrPdDeDhmdISP3\r
107 =LwmH\r
108 -----END PGP SIGNATURE-----\r
109 --=-=-=--\r