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 2EF47431FBC for ; Wed, 17 Feb 2010 05:33:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.616 X-Spam-Level: X-Spam-Status: No, score=-0.616 tagged_above=-999 required=5 tests=[AWL=-0.617, BAYES_50=0.001] autolearn=ham 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 BZsMbOwu5GHK for ; Wed, 17 Feb 2010 05:33:15 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by olra.theworths.org (Postfix) with ESMTP id 36784431FAE for ; Wed, 17 Feb 2010 05:33:15 -0800 (PST) Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 5F6527A8063; Wed, 17 Feb 2010 05:33:13 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Wed, 17 Feb 2010 14:33:11 +0100 From: "Sebastian Spaeth" To: Jameson Rollins , Notmuch Mail list In-Reply-To: <87ska1vh7r.fsf@servo.finestructure.net> References: <87ska1vh7r.fsf@servo.finestructure.net> Date: Wed, 17 Feb 2010 14:33:11 +0100 Message-ID: <87ljes0yy0.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Wed, 17 Feb 2010 13:33:16 -0000 On Tue, 19 Jan 2010 17:54:16 -0500, Jameson Rollins wrote: > This patch is intended to greatly simplify the handling of the > "unread" tag in the emacs UI. This patch adds a new function > 'notmuch-show-mark-read', that removes the "unread" tag in > notmuch-show-mode. This function is then executed as a > notmuch-show-hook, and by notmuch-show-next-message. All of the > functions that explicitly marked messages as unread are removed or > renamed. Hi Jameson, I've been using this for quite some time now and I am pretty happy with it. However, there is a problem with this approach as this renders the function notmuch-show-next-unread-message useless. This proceeds to the next message, using notmuch-show-next-message, which your patch marks automatically as read. 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). Sebastian