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