Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d9 / 50c93f9d17d8c3c81c25d485b10c364576af89
1 Return-Path: <tbielawa@redhat.com>\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 B4394431FB6\r
6         for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 15:09:49 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -4.99\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.99 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_HI=-5, 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 H1R1TDFHTbpZ for <notmuch@notmuchmail.org>;\r
16         Wed,  7 Mar 2012 15:09:49 -0800 (PST)\r
17 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\r
18         by olra.theworths.org (Postfix) with ESMTP id 08DD4431FAE\r
19         for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 15:09:48 -0800 (PST)\r
20 Received: from int-mx11.intmail.prod.int.phx2.redhat.com\r
21         (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])\r
22         by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q27N9lg6025721\r
23         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
24         for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 18:09:48 -0500\r
25 Received: from dehydrator.rdu.redhat.com (spatula.rdu.redhat.com\r
26         [10.11.95.223])\r
27         by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP\r
28         id q27N9l3T027805\r
29         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
30         for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 18:09:47 -0500\r
31 Received: from dehydrator.spatula.rdu.redhat.com (localhost [127.0.0.1])\r
32         by dehydrator.rdu.redhat.com (Postfix) with ESMTP id 1FA382328E\r
33         for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 18:09:47 -0500 (EST)\r
34 Received: (from tbielawa@localhost)\r
35         by dehydrator.spatula.rdu.redhat.com (8.14.5/8.14.5/Submit) id\r
36         q27N9jkQ002562; Wed, 7 Mar 2012 18:09:45 -0500\r
37 X-Authentication-Warning: dehydrator.spatula.rdu.redhat.com: tbielawa set\r
38         sender to tbielawa@redhat.com using -f\r
39 From: Tim Bielawa <tbielawa@redhat.com>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: Re: [PATCH 1/1] Add a function....\r
42 In-Reply-To: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>\r
43 References: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>\r
44 User-Agent: Notmuch/0.12~rc1 (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-redhat-linux-gnu)\r
46 Date: Wed, 07 Mar 2012 18:09:40 -0500\r
47 Message-ID: <87y5rct3d7.fsf@dehydrator.spatula.rdu.redhat.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: multipart/signed; boundary="=-=-=";\r
50         micalg=pgp-sha1; protocol="application/pgp-signature"\r
51 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Wed, 07 Mar 2012 23:09:49 -0000\r
65 \r
66 --=-=-=\r
67 Content-Transfer-Encoding: quoted-printable\r
68 \r
69 Sorry about the subject spam in that first message\r
70 \r
71 Backstory: When I switched to a newer 0.12 build the function I was\r
72 using at the time stopped letting me tag messages while in search\r
73 mode. notmuch-search-remove-tag had been changed to take 0\r
74 arguments. Old function:\r
75 \r
76 > (defun notmuch-search-delete ()\r
77 >   "Remove 'unread' tag"\r
78 >   (interactive)\r
79 >   (notmuch-search-remove-tag "unread")\r
80 >   (forward-line))\r
81 >\r
82 > (define-key notmuch-search-mode-map "u" 'notmuch-search-delete)\r
83 =20\r
84 I don't typically go into threads to mark them unread. But that\r
85 kind of functionality is all I could find on the updated emacstips, lots\r
86 of "notmuch-show-*" functions. [0]\r
87 \r
88 This patch tries to remedy that by introducing a function,\r
89 notmuch-search-tag-and-advance which allows you to apply a number of\r
90 tags at once to the current thread under the point --\r
91 non-interactively. It follows the form of the\r
92 notmuch-search-archive-thread function.\r
93 \r
94 This github gist [1] is a .el file that I load with notmuch. It includes\r
95 the new defun in full and demonstrates how to use it in a custom\r
96 function mapped to a key.\r
97 \r
98 If this patch is accepted I would be happy to hash-out something to add\r
99 to the emacs tips docs.\r
100 \r
101 \r
102 [0] http://notmuchmail.org/emacstips/#index6h2\r
103 [1] https://gist.github.com/1996899\r
104 \r
105 =2D-=20\r
106 Tim Bielawa, Software Engineer/Scribe\r
107 Production Control Team (RDU)\r
108 919.332.6411 Cell | IRC: tbielawa\r
109 1BA0 4FAB 4C13 FBA0 A036  4958 AD05 E75E 0333 AE37\r
110 \r
111 --=-=-=\r
112 Content-Type: application/pgp-signature\r
113 \r
114 -----BEGIN PGP SIGNATURE-----\r
115 \r
116 iEYEARECAAYFAk9X6rQACgkQrQXnXgMzrjf77wCcCryprNbG3AAhTUsCOS+IAf5C\r
117 VqkAnRaxkgjOHemkk38dhqlJIGy1jbAJ\r
118 =6C+l\r
119 -----END PGP SIGNATURE-----\r
120 --=-=-=--\r