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 ADCAD431FC0 for ; Thu, 25 Feb 2010 02:23:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.661 X-Spam-Level: X-Spam-Status: No, score=-0.661 tagged_above=-999 required=5 tests=[AWL=-0.662, BAYES_50=0.001] autolearn=unavailable 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 3eOpaXIFEukG for ; Thu, 25 Feb 2010 02:23:48 -0800 (PST) Received: from homiemail-a19.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id CE0B2431FAE for ; Thu, 25 Feb 2010 02:23:48 -0800 (PST) Received: from sspaeth.de (unknown [195.190.178.84]) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id 8BAD2604061; Thu, 25 Feb 2010 02:23:43 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Thu, 25 Feb 2010 11:23:41 +0100 From: "Sebastian Spaeth" To: Jameson Rollins , Carl Worth , Notmuch Mail list In-Reply-To: <87r5oa1lvo.fsf@servo.finestructure.net> References: <87ska1vh7r.fsf@servo.finestructure.net> <87ljes0yy0.fsf@SSpaeth.de> <87vddmwkuw.fsf@yoom.home.cworth.org> <87r5oa1lvo.fsf@servo.finestructure.net> Date: Thu, 25 Feb 2010 11:23:40 +0100 Message-ID: <87hbp5bolv.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [notmuch] [PATCH] Simplify "unread" tag handling in emacs UI. 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: Thu, 25 Feb 2010 10:23:49 -0000 On Wed, 24 Feb 2010 14:20:27 -0500, Jameson Rollins wrote: > On Wed, 24 Feb 2010 10:26:47 -0800, Carl Worth wrote: > > > It then checks the unread status in order to decide whether to proceed > > > to the next again. So with your patch notmuch-show-next-unread-message > > > will skip through all messages in a thread thinking they are all read > > > (and actually marking all as read). > >=20 > > ...that seems like a fatal bug in this script. Thanks for noting that > > Sebastian. >=20 > I certainly don't see it as fatal, but it is something we should > resolve. I think the simplification that the patch provides is worth > it. Well, it is fatal in the sense that it makes that function useless. But it's not as bad as it is currently unused. You will only notice it if you make the "skip to next unread" (interactive) and bind it to a key (which is what I have done). I still think it's worth taking this patch and fixing= it then. The solutions I can see are:=20 - split into a "notmuch-show-next-message" and a notmuch-show-show-next-message (what a naming!) function.=20 One would merely skip to the next and one actually show and mark unread. - Introduce a second argument option whether we should mark as unread or no= t. - rework "notmuch-show-next-unread-message" to not make use of "notmuch-show-next-message" but e.g. to just use "notmuch-show-find-next-message" or so. Does this make any sense? > I'm seeing the notmuch-show-next-unread-message as a non-interactive > function that's not currently called by any other functions, and is > therefore not being used. Sebastian, are you using that in a private > function, or am I misreading the code? Touch=C3=A9. As explained above. I made it interactive and bound it to 'n'. Sebastian