From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 658AE431FD2 for ; Wed, 25 Jan 2012 02:50:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 hsFNQJLblA35 for ; Wed, 25 Jan 2012 02:50:45 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id AB53A431FBC for ; Wed, 25 Jan 2012 02:50:45 -0800 (PST) Received: by werb10 with SMTP id b10so4289805wer.26 for ; Wed, 25 Jan 2012 02:50:44 -0800 (PST) Received: by 10.216.136.132 with SMTP id w4mr6813461wei.53.1327488644577; Wed, 25 Jan 2012 02:50:44 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id n5sm127073wiw.7.2012.01.25.02.50.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 02:50:43 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 6DF529FE67; Wed, 25 Jan 2012 10:50:41 +0000 (GMT) To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH v3 4/8] emacs: add message archiving functions In-Reply-To: <1327449983-23638-5-git-send-email-jrollins@finestructure.net> References: <87pqea24z0.fsf@servo.finestructure.net> <1327449983-23638-1-git-send-email-jrollins@finestructure.net> <1327449983-23638-2-git-send-email-jrollins@finestructure.net> <1327449983-23638-3-git-send-email-jrollins@finestructure.net> <1327449983-23638-4-git-send-email-jrollins@finestructure.net> <1327449983-23638-5-git-send-email-jrollins@finestructure.net> User-Agent: Notmuch/0.11+109~g03934e4 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Wed, 25 Jan 2012 10:50:41 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Gm-Message-State: ALoCoQlopB6jjk7/4mveeo2t6Q2RrcySHrewaBYCQfndOi7QJfbv+e/9HRSfOQuFTI2iwqjGn489 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, 25 Jan 2012 10:50:46 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 24 Jan 2012 16:06:19 -0800, Jameson Graef Rollins wrote: > This adds two new message archiving functions that parallel the thread > archiving functions: notmuch-show-archive-message{,-then-next}. The > former also takes a prefix argument to unarchive the message (ie. put > back in inbox). > --- > emacs/notmuch-show.el | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) >=20 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 071e662..0dc594b 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -1590,6 +1590,23 @@ buffer." > (notmuch-show-archive-thread) > (notmuch-show-next-thread)) >=20=20 > +(defun notmuch-show-archive-message (&optional unarchive) > + "Archive the current message. > + > +If a prefix argument is given, the message will be > +\"unarchived\" (ie. the \"inbox\" tag will be added instead of > +removed)." Same comments as for the previous patch - just reference "inbox" directly. > + (interactive "P") > + (if unarchive > + (notmuch-show-add-tag "inbox") > + (notmuch-show-remove-tag "inbox"))) > + > +(defun notmuch-show-archive-message-then-next () > + "Archive the current message, then show the next open message in the c= urrent thread." > + (interactive) > + (notmuch-show-archive-message) > + (notmuch-show-next-open-message)) > + > (defun notmuch-show-stash-cc () > "Copy CC field of current message to kill-ring." > (interactive) > --=20 > 1.7.8.3 >=20 > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8f3oEACgkQaezQq/BJZRYMOQCfQfjAtzgEhRUmb490noc/I890 WLAAn0v41u724fwU6q3LEms90KZem5yS =8JpF -----END PGP SIGNATURE----- --=-=-=--