From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 939B56DE0A6C for ; Mon, 30 Dec 2019 04:17:07 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=dme-org.20150623.gappssmtp.com header.i=@dme-org.20150623.gappssmtp.com header.b="TJDNO3UT"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.252 X-Spam-Level: X-Spam-Status: No, score=0.252 tagged_above=-999 required=5 tests=[AWL=-0.400, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyJHhWUC_7Rd for ; Mon, 30 Dec 2019 04:17:06 -0800 (PST) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by arlo.cworth.org (Postfix) with ESMTPS id D85AA6DE0A42 for ; Mon, 30 Dec 2019 04:17:05 -0800 (PST) Received: by mail-wm1-f67.google.com with SMTP id c127so11488841wme.1 for ; Mon, 30 Dec 2019 04:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=to:cc:subject:in-reply-to:references:from:date:message-id :mime-version; bh=/V/g5rXn9tRVnmHGXhTYGaykRxKfK6pgcGJWYOLlG9M=; b=TJDNO3UT1dknyMWwfIUjCM7Ega1G5dIIYcmdKW487OmJRqNHyWLs+28DMT1Au02LtK LDFowLZlq57ZBc+nMgjM5U05O1SwhXscFrKsawgWmTGAE4bYJxV4gMOPxQl8RdBUPdt2 9zfShhmL6LUeOWha/KcmIjn9AZhsI28+eOtWOg/D+RA/nJiefGQVTSlo298pkr/vvCf1 9Z6eJ3m+8K+rbV5HXzRJYdnOFt9BWlewMrbazjMRl1gqDKQQDTWK4gqyQCmo7XPGy5Go stVcEHjLfHI0hIwM4zHQE3ghL2XurIXS5bpnQo3stZl4TDbyWeNuQ5GA18j1CMpWorxl TJ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date :message-id:mime-version; bh=/V/g5rXn9tRVnmHGXhTYGaykRxKfK6pgcGJWYOLlG9M=; b=f9d5B7txOMS0W6BZuHQNZMY6LTUezhBIRk5jmZx/esUDVoNxEK0CIZL/96xCLJMP1A ChPRwPJ89Bbwz6p15xKcx5zpwBuP9qqQvrw4K7/YIMymkKOiHSoStyzQChHqtSGQf94M ust1lWVk+oBxl6ckPJMwvnhpXmUB4BvaaX45A7rGpS98GHJg94lc/zv0sXLdY9ad6irj TXLNpftBHC3JOpE10k6gcy3Tq3P68rGT8+D8joASddJt+gW9k4N+RWp7J9mKZXhJpD8O szWf+5eKgX+AEh3/eAABiqrXsweMgzrZ6r2J3F1+PCoiSpQg7gBNQsq38o6uklWLhd09 yayA== X-Gm-Message-State: APjAAAVUCU7B9rVL+xdnDLS+Sagd32Kq7OnXgGoGUj950Etl8qk5rLiq Eq/WbSHxyPGT4EaVcX6sRB4ubQ== X-Google-Smtp-Source: APXvYqzUrh5V9CzY0ghsHUMqxwtYkTLuH/LL3AblZqzOSokGIe9qaZ61MreDhMW6/OKmX0PPOfCgjg== X-Received: by 2002:a7b:c759:: with SMTP id w25mr35817110wmk.15.1577708223034; Mon, 30 Dec 2019 04:17:03 -0800 (PST) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id n67sm20719975wmf.46.2019.12.30.04.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 04:17:02 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 4c944ae1; Mon, 30 Dec 2019 12:17:01 +0000 (UTC) To: William Casarin , notmuch@notmuchmail.org Subject: Re: [PATCH v3 1/7] emacs/tree: return true if a thread was found in next-thread In-Reply-To: <20191228150124.20630-2-jb55@jb55.com> References: <20191228150124.20630-1-jb55@jb55.com> <20191228150124.20630-2-jb55@jb55.com> X-HGTTG: heart-of-gold From: David Edmondson Date: Mon, 30 Dec 2019 12:17:01 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Mon, 30 Dec 2019 12:17:07 -0000 On Saturday, 2019-12-28 at 10:01:18 -05, William Casarin wrote: > This will allow us to pop back to parent buffers when there are no > more threads to jump to. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el > index c00315e8..d262ba26 100644 > --- a/emacs/notmuch-tree.el > +++ b/emacs/notmuch-tree.el > @@ -620,10 +620,13 @@ message will be \"unarchived\", i.e. the tag changes in > (notmuch-tree-thread-top)) > > (defun notmuch-tree-next-thread () > + "Get the next thread in the current tree. Returns t if a thread was > +found or nil if not." > (interactive) > (forward-line 1) > (while (not (or (notmuch-tree-get-prop :first) (eobp))) > - (forward-line 1))) > + (forward-line 1)) > + (not (eobp))) > > (defun notmuch-tree-thread-mapcar (function) > "Iterate through all messages in the current thread > -- > 2.24.0 dme. -- Why stay in college? Why go to night school?