From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 aLqYDfIy+WMpAAAAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 22:58:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +AiIDfIy+WP3OAAA9RJhRA (envelope-from ) for ; Fri, 24 Feb 2023 22:58: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 EB820D56A for ; Fri, 24 Feb 2023 22:58:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVg4A-0005aI-4n; Fri, 24 Feb 2023 16:57: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 1pVg47-0005a1-Kl for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 16:57:19 -0500 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVg44-0000eN-Qb for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 16:57:19 -0500 Received: by mail-oi1-x236.google.com with SMTP id be35so484687oib.4 for ; Fri, 24 Feb 2023 13:57:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=LjXywScykajlZIg7x2EllxqD6bir4zla+91MNd5O/NU=; b=UOVuWZBDOBAwcEZPQN2OlGOqQ/35jgE8cwCz+B6oCOkrgSPDjPcjaOi5fmLYHeHF8X pV9xZNbiWzLLKsZVRuViQpn6pJ/RUD+aZ6f3aXV4q3o6hLRAwrZFcrDQfefZve7NJdvG yLKVZm5mq/kp3KMGvYZFibZFBsfZ9uXcBbiM75JyXlp29GPeBLnNLzvGtcMpUkmbfyXP Sd9IfenaqR6S52+88KKqiULP/vYptrz4S+Tm4pyl0Mf9gB215xKokdkF64cXbX0YaAQp woEGKSxKzHAVsa1w1P/RRkIT+0L7Bunq9Nl6e3p7wFoY22grr1n43533xEjBg5gtWvhz aZUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LjXywScykajlZIg7x2EllxqD6bir4zla+91MNd5O/NU=; b=Y1C/hTOFEFUnus3Fd4d7meJ2DRONjkiZA8O+Q+/7zLTtyjMXRMKz7xWPfmc6lvJNKB ZSJ7iE3VgoqOzrRcSKAOkfRx6DrWzP6IkMdUyWs8PNoanJNfC4u2QKneCcRjsP91z9sO qXHHDv8wIVHPByjLwTZi2z8M95Vvz2/FL06Lefl8fnuBpdegtp/K5T2UCOANuk2PzSLT nDCur4XWL2O1/ZTLTNBfJY160udfvpl3GlysSm3MphCdNMbJ2l8hgIhUR4prwaYPoer7 e+rrFBHgN8Ycl/tJZX05tpIFn+APvBxNHg0cMRSltfjiwd3LWqNcRZNzOCZ7rSo6y7Bd nphg== X-Gm-Message-State: AO0yUKWfHI71GkgV/pWuaIKqPbxYDPaHnBvSog/G1n7paG0q8uF0yigU +O11yvBhG4EI3YnWpIsDtegM30KXmFTyLkdAisqiLtP6Wwo= X-Google-Smtp-Source: AK7set/LfjIiCEPV8RwWiT5JwXn0tDlLRjPtOhxVvsofLDbLdiWPPzDWDHEHoPW6C3nfFUO2w9Tnt+jJjzFefZYq/cY= X-Received: by 2002:a05:6808:3cf:b0:384:efe:7297 with SMTP id o15-20020a05680803cf00b003840efe7297mr192967oie.6.1677275834605; Fri, 24 Feb 2023 13:57:14 -0800 (PST) MIME-Version: 1.0 From: Cassio Koshikumo Date: Fri, 24 Feb 2023 18:57:03 -0300 Message-ID: Subject: Bug or expected behavior? org-sparse-tree visibility toggling To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=ckoshikumo@gmail.com; helo=mail-oi1-x236.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UOVuWZBD; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677275890; a=rsa-sha256; cv=none; b=iHv+2Z8L24G/gMlbq52BYGO0vtSJYTQ8jCcmUvOAt798+RS6cFP/N1y/V7WtrPBLVEG3h9 CRea79cwO1sKASq6UEr+BbEn4lQTlp2sy+9MVlAVKmYuf37wp4fMcxGRTHrju2XCfy39o0 YblSVwyDDC35SLivSZKILVXE81opjq9vDw5hWUWzwsMU4AoLK53d1CgSNJfIkuwSf6znm/ 9kv8low3lkDjDCC4P0TKcbdv00+3Tw2Y+7o9OSAj6DqxuOffnT7/VrY61oUFbGEzGtoSIe DCviwUazTxaxAMwG+GrN2QNl42SO+oiHQ8SlnFBOlRyUagtNcCuCmn/qJLs/HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677275890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LjXywScykajlZIg7x2EllxqD6bir4zla+91MNd5O/NU=; b=VQIQkhSOzcRwhiyclJuHTQfKei9eKWh1KQuhigTuksfTXtfDtA4tyPVYHciB6sXx7kWSvL srEozijw2rH6SWz1OyPXn8FmZuwBJGmm/n1S2WQ2F3VHRZAKa+k80NgwNnGCAqb9ziun8C Kzg44NKeviK+zO8DZTqFqUpvHiuDGxqc/KUadu3NXWJSlgBspWXpW8K4upA0Bi/wCrAnJZ TRvU4RrtaAxp8JEalVG6DWvi2OsNBceUy5WQJB9kAjHgMWu5ipnT/R1sYcy0tdr+urv8BT bPieejMXhHQRZuuczjvOhBj6MXeQtLkgRXmAMG0bIzYgxrqctkyXvaVWdg6M5g== X-Migadu-Spam-Score: -4.90 X-Spam-Score: -4.90 X-Migadu-Queue-Id: EB820D56A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UOVuWZBD; 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=gmail.com X-TUID: 6mtp4pnSxxe6 I don't know if this can be considered a bug or if I'm trying to do something not supported. Create an .org file with the following contents: * First Level ** One :tag: *** Child ** Two ** Three ** Four :tag: ** Five 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...) As far as I can tell, this only happens when the heading has a subheading, like Child. But even when dealing with headings that DON'T have a subheading, the ellipsis kinda breaks and ends up in the next line, and successive TABs do nothing. (In fact, I was trying different variations of the tree just now and it seems the behavior is WILDLY inconsistent. If there's a blank line between One and Child, then the first TABalready messes the tree up. Don't know if further variations produce other results.) So, can these behaviors be considered bugs? Or are sparse trees not meant to have their visibility manipulated like this, and should be considered a static, filtered view of the tree, with interactions discouraged? Thanks! -- Cassio Koshikumo