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 A9FAC421197 for ; Tue, 17 Jan 2012 12:13:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 So95lSQeh0m8 for ; Tue, 17 Jan 2012 12:13:51 -0800 (PST) Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 214D9421192 for ; Tue, 17 Jan 2012 12:13:51 -0800 (PST) Received: by qadc10 with SMTP id c10so1218158qad.5 for ; Tue, 17 Jan 2012 12:13:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:content-transfer-encoding; bh=f7eCIEQQWvzA6Xp+QbjF+i57eJEZt1MUYkwzJP3vY98=; b=ujpS6KDUiiyXdUWp/dJAd9l5HYg8l21ZWeUvHdZ6cfjVwo1+Q5iWDOceRD4jMdUsnA ST54sLJ8Pb5aLl30sps0Qu5wEtlPsx8sUe8tXIK091jil3ueGg+qj/nzikNfjmipiWmm dsLx7ZQpOzjs/uYyMzVoNL/jfCi0/pwKX9rbA= Received: by 10.229.134.201 with SMTP id k9mr6889912qct.10.1326831230516; Tue, 17 Jan 2012 12:13:50 -0800 (PST) Received: from localhost (luw017.wlan.gapsa.upenn.edu. [128.91.230.146]) by mx.google.com with ESMTPS id r17sm45627211qap.11.2012.01.17.12.13.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 12:13:49 -0800 (PST) From: Aaron Ecay To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH 3/6] emacs: add message archiving functions In-Reply-To: <1326823531-14549-3-git-send-email-jrollins@finestructure.net> References: <871uqy19yo.fsf@servo.finestructure.net> <1326823531-14549-1-git-send-email-jrollins@finestructure.net> <1326823531-14549-2-git-send-email-jrollins@finestructure.net> <1326823531-14549-3-git-send-email-jrollins@finestructure.net> User-Agent: Notmuch/0.11+62~ge41b0d3 (http://notmuchmail.org) Emacs/24.0.92.1 (i386-apple-darwin10.8.0) Date: Tue, 17 Jan 2012 15:13:47 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 17 Jan 2012 20:13:51 -0000 On Tue, 17 Jan 2012 10:05:28 -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 ee9ef62..207949c 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -1485,6 +1485,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)." > + (interactive) If this function uses the prefix arg, its interactive call should be =E2=80=9C(interactive "P")=E2=80=9D. This applies equally to the -thread v= ariant in patch 2/6, but I made the comment here because that diff doesn=E2=80=99t sh= ow the function contiguously. --=20 Aaron Ecay