From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0AIZN5a04mMXiQAAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 21:29:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0BoVN5a04mPnOwEAauVa8A (envelope-from ) for ; Tue, 07 Feb 2023 21:29:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 796AA4206D for ; Tue, 7 Feb 2023 21:29:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPUZi-00057D-JR; Tue, 07 Feb 2023 15:28:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPUZh-00056c-3D for Emacs-orgmode@gnu.org; Tue, 07 Feb 2023 15:28:21 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPUZf-0001we-BT for Emacs-orgmode@gnu.org; Tue, 07 Feb 2023 15:28:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3F54424076B for ; Tue, 7 Feb 2023 21:28:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675801696; bh=LqVqAl3lpKO9qdaMforDg/f1NRe1mI1ffDAaTCSOdV4=; h=From:To:Cc:Subject:Date:From; b=EX0MQu9XjyOkotObSbdAqejgXNCYifiVu/5pN3+WQdLSd6ykjkx875VqydWb8fLvm 1CmhSFPWMnN1WtBDQs45DCK3ImAAtfRjoQ9mTojJcGTaFebTIctSTpdKV3cHfrKhCe 4OqraiR2PUK4kQW+jWlmYtAxIApJWalk0Qf7jfta6TlgyIvxxNNgwLuIENHjS5zWUK I1HEecmT8HaPNYWweOi00UdRP2p18ZXQvFObA1UlV9D9B9hCD0CRRYCs+6h55ANi+b UNVUffUFATqzqcsMMtxTCBeHwvTQrkuCCegJ3tysHhaEeG6hwha0GTfjIXe6SRrbl8 T6bh9P8gL/CXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PBF7M0Bscz9rxK; Tue, 7 Feb 2023 21:27:58 +0100 (CET) From: Ihor Radchenko To: Kevin Layer Cc: Emacs-orgmode@gnu.org Subject: Re: Specialized sparse-tree via hook to show specific view in org mode In-Reply-To: References: Date: Tue, 07 Feb 2023 20:28:34 +0000 Message-ID: <87h6vxdxu5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EX0MQu9X; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675801750; a=rsa-sha256; cv=none; b=imVw1V/h2qPM+vUpmQniR3L4e7uafWOpVx4bsnwyGO22vYBEpNWFEOq0HCHoTYm/tk+nfN U22BdBPKHWUMrSpHFTiCclB4dUaWDaj6cg+2WoyM+z2IfbxWFdeM/vozLHbW2Bz7KA+mca SmLnFKHNhSlzbs021FbjDIKLAYng1C8pNRGfvt6nE/yhXGXbSnbqr3iTLBfqjgByZMSfnI sEyWlCJYIVdXOcP4jGo3wYWHrJQb89ErINyOsrjHnqq40emkqlsXml5iz1P4Y8LPEtl9A2 5dWbW2SbUJh0e6nAzrNcl+Vb3yLMwmI7SNJPEfE082O1VB4Q0u+JuEUbSh+kbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675801750; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uNQYB4SGzbslaCNhe6A+XFg8SxD5fDLKPZRdfCepYF4=; b=KYHWvlVR29msp4U/u1yqINBfp7/ZytpblrUGamztaQ4kUHkvXbzjGyUJ70TFFgD7RMZY+x wwWp/l8AAjdchW+sabBMeU2hPjODm9nWTbJqaW2e6a08tMjXQGD1g+gqQsywftVBZm3zAL +1AlksyKGa6PTYu6yojgI69iU0wbCLWzzwUSVU1ojdNY55WxxXkDeJfI0JIjIWVmXj9QO3 dnJ+jZYCrMehfTkBl/b0GcQae/d75n4y28B7xS1rGjPTTm0ZxuLGNPN2XEmBMrEDo5n2Ls dwA3kSJ+P3MiHQUukVlHacEcSrXWYQmq7YFQT4qYttglTjzyvaPq+AG+9NjLtA== X-Migadu-Queue-Id: 796AA4206D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EX0MQu9X; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Spam-Score: -7.56 X-Spam-Score: -7.56 X-TUID: EvApa7eM7wSY Kevin Layer writes: > My main todo file defines various TODO keywords and initial state like this: > > #+STARTUP: indent overview > #+TODO: @NOW @NEXT @WIP @PENDING > > What I really want is to initially only see items noted with those TODO > keywords and also due items. Everything else should be hidden. I think you can use `org-match-sparse-tree'. It supports the general match syntax. See 11.3.3 Matching tags and properties section for the match syntax. > If this is the right way and the maintainer wants me to submit a patch, I > would include these functions to get a new optional for keep-previous, > since they could all plausibly be used for the same thing that > org-check-before-date was: > * org-show-todo-tree > * org-check-deadlines > * org-check-before-date > * org-check-after-date > * org-check-dates-range I think that it does make sense to support KEEP-PREVIOUS in these functions. `org-occur' does support it and there is no reason not to allow the same toggle in the listed functions. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at