Re: [PATCH 1/1] Add a function....
authorTim Bielawa <tbielawa@redhat.com>
Wed, 7 Mar 2012 23:09:40 +0000 (18:09 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:18 +0000 (09:45 -0800)
d9/50c93f9d17d8c3c81c25d485b10c364576af89 [new file with mode: 0644]

diff --git a/d9/50c93f9d17d8c3c81c25d485b10c364576af89 b/d9/50c93f9d17d8c3c81c25d485b10c364576af89
new file mode 100644 (file)
index 0000000..2a86c7e
--- /dev/null
@@ -0,0 +1,120 @@
+Return-Path: <tbielawa@redhat.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 B4394431FB6\r
+       for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 15:09:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -4.99\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-4.99 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_HI=-5, T_MIME_NO_TEXT=0.01] 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 H1R1TDFHTbpZ for <notmuch@notmuchmail.org>;\r
+       Wed,  7 Mar 2012 15:09:49 -0800 (PST)\r
+Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\r
+       by olra.theworths.org (Postfix) with ESMTP id 08DD4431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 15:09:48 -0800 (PST)\r
+Received: from int-mx11.intmail.prod.int.phx2.redhat.com\r
+       (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])\r
+       by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q27N9lg6025721\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
+       for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 18:09:48 -0500\r
+Received: from dehydrator.rdu.redhat.com (spatula.rdu.redhat.com\r
+       [10.11.95.223])\r
+       by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP\r
+       id q27N9l3T027805\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
+       for <notmuch@notmuchmail.org>; Wed, 7 Mar 2012 18:09:47 -0500\r
+Received: from dehydrator.spatula.rdu.redhat.com (localhost [127.0.0.1])\r
+       by dehydrator.rdu.redhat.com (Postfix) with ESMTP id 1FA382328E\r
+       for <notmuch@notmuchmail.org>; Wed,  7 Mar 2012 18:09:47 -0500 (EST)\r
+Received: (from tbielawa@localhost)\r
+       by dehydrator.spatula.rdu.redhat.com (8.14.5/8.14.5/Submit) id\r
+       q27N9jkQ002562; Wed, 7 Mar 2012 18:09:45 -0500\r
+X-Authentication-Warning: dehydrator.spatula.rdu.redhat.com: tbielawa set\r
+       sender to tbielawa@redhat.com using -f\r
+From: Tim Bielawa <tbielawa@redhat.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/1] Add a function....\r
+In-Reply-To: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>\r
+References: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>\r
+User-Agent: Notmuch/0.12~rc1 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-redhat-linux-gnu)\r
+Date: Wed, 07 Mar 2012 18:09:40 -0500\r
+Message-ID: <87y5rct3d7.fsf@dehydrator.spatula.rdu.redhat.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24\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: Wed, 07 Mar 2012 23:09:49 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Sorry about the subject spam in that first message\r
+\r
+Backstory: When I switched to a newer 0.12 build the function I was\r
+using at the time stopped letting me tag messages while in search\r
+mode. notmuch-search-remove-tag had been changed to take 0\r
+arguments. Old function:\r
+\r
+> (defun notmuch-search-delete ()\r
+>   "Remove 'unread' tag"\r
+>   (interactive)\r
+>   (notmuch-search-remove-tag "unread")\r
+>   (forward-line))\r
+>\r
+> (define-key notmuch-search-mode-map "u" 'notmuch-search-delete)\r
+=20\r
+I don't typically go into threads to mark them unread. But that\r
+kind of functionality is all I could find on the updated emacstips, lots\r
+of "notmuch-show-*" functions. [0]\r
+\r
+This patch tries to remedy that by introducing a function,\r
+notmuch-search-tag-and-advance which allows you to apply a number of\r
+tags at once to the current thread under the point --\r
+non-interactively. It follows the form of the\r
+notmuch-search-archive-thread function.\r
+\r
+This github gist [1] is a .el file that I load with notmuch. It includes\r
+the new defun in full and demonstrates how to use it in a custom\r
+function mapped to a key.\r
+\r
+If this patch is accepted I would be happy to hash-out something to add\r
+to the emacs tips docs.\r
+\r
+\r
+[0] http://notmuchmail.org/emacstips/#index6h2\r
+[1] https://gist.github.com/1996899\r
+\r
+=2D-=20\r
+Tim Bielawa, Software Engineer/Scribe\r
+Production Control Team (RDU)\r
+919.332.6411 Cell | IRC: tbielawa\r
+1BA0 4FAB 4C13 FBA0 A036  4958 AD05 E75E 0333 AE37\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+\r
+iEYEARECAAYFAk9X6rQACgkQrQXnXgMzrjf77wCcCryprNbG3AAhTUsCOS+IAf5C\r
+VqkAnRaxkgjOHemkk38dhqlJIGy1jbAJ\r
+=6C+l\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r