From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gNfVNswO/WOzMAAAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 21:13:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eEahNswO/WMN4gAAauVa8A (envelope-from ) for ; Mon, 27 Feb 2023 21:13:00 +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 A1C2C539A for ; Mon, 27 Feb 2023 21:13:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWjrD-0007K5-R0; Mon, 27 Feb 2023 15:12:23 -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 1pWjrC-0007Js-Ox for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 15:12:22 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWjrB-00044B-2Z for emacs-orgmode@gnu.org; Mon, 27 Feb 2023 15:12:22 -0500 Received: by mail-oi1-x233.google.com with SMTP id bi17so6224693oib.3 for ; Mon, 27 Feb 2023 12:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ei/N8lR1nHZ2Vtimj4KDlwJBmlNPgebfqCoaUkSG5RQ=; b=TctZUnNf4EsACMuFKNQY9ec4cTIh9JAiTkP4Go8RMw1Ajyqm/p0MdwiBI9Ydk6ug2U 4wrVw+6BELIGNf12TrO84VdMdS62O7DAoJv/g56B4fmgrqkNXEQQ7r7Osms95blBHI74 1QMunMA0ElteeFsyMZrzTJKZwN2KfmDX0VeXkzx2stMog+ch+kvhirVz4IZtYnSMej7j G6ytoCMIwI6Ha1uFvYmnvGma4+/XIKQZgqNlDvHScdpkHXxsyXa/frCSRrQxjI96x7qN qqQu6SrDOkVGO5HkfH6s5NrXpZube8+ZY2qMKHYT32vlcSp1qBI/OFkUggl+Oqv71d8T l1bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ei/N8lR1nHZ2Vtimj4KDlwJBmlNPgebfqCoaUkSG5RQ=; b=5cjFdzbXmkBq3Kw5I3qXaLQ3J+QHmcpeHe58ctBe8IvGa6lUAzsWLR5BkxfI7H5xwd EXTVH9EV6dnnl1A7hPPamHofgswIlfIxk04czZdkVj8gOQiXdXF1DYX/cdpsWPJoFtWc a9nw5hCAmfVWdJjBTaIPJTue1kLyJytSAIlQX/BBBPmAj0TeI/xS2zUjgSAODFaBUX+M YAOjAx/Uakx9aaTC+XO99gCfQYnsDddO5Vwno9dHkmgr00f2hw2hoKB4YzOdoImRPLYS W7NslXHD5mArTnDmuUzQGJtE+6XkUwZuotgLCGXLpr67zok2fIHMnugECtWvKSloojoR Tfjw== X-Gm-Message-State: AO0yUKVaRMjjBhLXpA/Uic9Gm6aW5VKzgGVq9E+AVbGO2I+dHsg+dUBa ugtmOEjBuuOdsuYiQf0vOYahBG+pn9xwwjp1i6I= X-Google-Smtp-Source: AK7set+mNIuvARN2/4R0swaOBuxligBuBnIM0MKi29nxY5tq49yjfrxuIUNLKPTwZO0Z9rYay5kVXCzVTjYtPS3GH6M= X-Received: by 2002:aca:1005:0:b0:384:a7b:b457 with SMTP id 5-20020aca1005000000b003840a7bb457mr133604oiq.6.1677528738929; Mon, 27 Feb 2023 12:12:18 -0800 (PST) MIME-Version: 1.0 References: <87v8jozlr2.fsf@localhost> In-Reply-To: <87v8jozlr2.fsf@localhost> From: Cassio Koshikumo Date: Mon, 27 Feb 2023 17:12:07 -0300 Message-ID: Subject: Re: Bug or expected behavior? org-sparse-tree visibility toggling To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=ckoshikumo@gmail.com; helo=mail-oi1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Seal: i=1; s=key1; d=yhetil.org; t=1677528780; a=rsa-sha256; cv=none; b=SZO2aGCCO0t/XRD6u1WfoPYlGS659aEMsekq7L88DzluhGyutCIGFK2+9YAINWLPOhszxL TAFPfUwsVd6zBJ/8w6oDq6CwajICPMR/FLjMcP7/jZndOHjm2828zDl7Um/7N/MTBnOxnv 8iRSJP5MposI2ADzl6UYR2LY9iHHwu+D/0DNOH8OhXlG15keGJoNyLz8QNj2mBVwom2ZcZ awZVeYZDGgI8tJjE5UAjRK69976c3lqaw3K/O7pPX5w27Wp0Xus72jRJ0uAd3/RetfoOYs MC1pbp3IMrdUvNRCBgUsklc1BaHJiufzdWPVbpTqdvVdDRaI/eRoWk3dEa29Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TctZUnNf; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677528780; 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=ei/N8lR1nHZ2Vtimj4KDlwJBmlNPgebfqCoaUkSG5RQ=; b=EpIVrtu/+v9NIACcBy+6H+gIxgP2JDPBZuYqmFvFixRL531jd1iVd547lM1A8CiZgSthV2 Qkd/YOh2L5mGeKQH8KGfhdrzPkhThQRtDq8ZNUCFvlSRksv2P+HwLHdFcsy3zTHf/9aRSY 8dpKCmYUoKO/c3Zs4/FwBzBz02hWxcL6/IkXhACaf2YxJS/jozZNvYMJkJal1QUhGbioNP udAHmBHDuz7y3R1TzuEcY4Hfos3XaEUCT2h/H5I0fuNk2MJOqw8tdDQ/VjsyhvxAHSc7XC rZ3/NUVxDp4t1K28XzKmdGeYi3fpYs8/pxuoXf3xiCGTYvFjZQqi7vonvOidAg== X-Migadu-Spam-Score: -4.91 X-Spam-Score: -4.91 X-Migadu-Queue-Id: A1C2C539A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TctZUnNf; dmarc=pass (policy=none) header.from=gmail.com; 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" X-TUID: G/OdQmLTdiGp Hm. It makes sense that TAB is not affected... Somehow I hadn't really considered that. What I expected to happen (and now I realize it was not a justified expectation) was to have the visibility of the sparse-tree kept while tabbing. So I could expand a tree, then collapse it again, all the while keeping the sparse-tree "filter" applied. But I guess it doesn't make much sense. Well, I guess I could leave it as a suggestion for new functionality, but I don't even know if it's feasible. Thanks! On Sun, Feb 26, 2023 at 8:52 AM Ihor Radchenko wrote: > > Cassio Koshikumo writes: > > > Create an .org file with the following contents: > > > > * First Level > > ... > > Now, C-c / m (or M-x org-sparse-tree and select m) and Match: tag. > > > > The resulting sparse tree looks like this: > > > > * First Level > > ** One :tag: > > *** Child > > ** Four :tag: > > > > So far, so good. Now, put point on heading One and press TAB. Child is hidden. > > > > The problem: press TAB again. Now Two and Three are also shown, > > effectively breaking the sparse tree filtering. (Actually Five is > > shown, too, it seems...) > > is not affected by sparse tree. > Sparse tree just reveals headings that match certain criteria and > highlights them. > > May you describe what you expected to happen? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at -- Cassio Koshikumo