From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sOYuKwErlmF8DgEAgWs5BA (envelope-from ) for ; Thu, 18 Nov 2021 11:29:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sN70JgErlmFVMQAA1q6Kng (envelope-from ) for ; Thu, 18 Nov 2021 10:29:21 +0000 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 378923DBB1 for ; Thu, 18 Nov 2021 11:29:21 +0100 (CET) Received: from localhost ([::1]:46466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnefO-0003Tc-8D for larch@yhetil.org; Thu, 18 Nov 2021 05:29:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mneeS-0003T7-Qx for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 05:28:21 -0500 Received: from [2607:f8b0:4864:20::629] (port=38456 helo=mail-pl1-x629.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mneeR-0004PC-Ge for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 05:28:20 -0500 Received: by mail-pl1-x629.google.com with SMTP id o14so4843427plg.5 for ; Thu, 18 Nov 2021 02:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=h/jsFN5jZT4YGCKhshZW+QL9SKGDpfuXPM9bKhMH9kw=; b=d4T5jWPNbBJOJGV489BNjXUzUWDn6qGESvm0N/wCv3L9LcJPL33qVaWAYaU4/eFzf7 DP9Yp1/uwU6H9pUZWVsMz+UAcYm7FNyzU5Wkjt5zDA9xtNkOpXFWDXeoZ+9mYMnjjFuc hz4Pfy1G7PeA/DhG5FjPzJ4ddQvnjahojzYzcKEJTafmarvaYYrH70KPsRA/daabbRrk cPYF0PwcmrBnsBnHspE8xC4RRielFPwFWvlumBQdsaJVfi0zp7DoN0I48m+rtalB+scZ hpj9Omp5oSKr+5onkmYfcxHTRh55bpzO+jFEwX9nc4QIOw98JYQKOAPGPF76Wqci6pX0 xwLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=h/jsFN5jZT4YGCKhshZW+QL9SKGDpfuXPM9bKhMH9kw=; b=4W24rWWEpXQEDfQY565/2sfuFDouc32Ei1ya8clhntjCcwMftPN6l7AFF8Znr5dgNo 59a/0a1xc9z9+TfmysKj/UwbcgX4H+5BgmXZrj2brKd1B8+SzIrsMWnMPxkzuYcra+WJ 6Oq5JsraTZVIQkF53EkWyxZ11ilFhqNntmPlT+aJHnmF7Ue6rpa4pSyTXDZ3Z5nZwmHb 6QbY8dM1NXg/NqhgX3JY3T1fPFN2Rh8ZOZtgyxY+MNY+NLCbuUmH3RNx8nJ2JL0sV3UR 7+kA90rOxMdtv2A4/LGb40pcTA8u2Ep3kMegoUDBsppyYMbM5w9vPu3uB0dbHIqcRU9u xvSQ== X-Gm-Message-State: AOAM5317pKXyju1szB1CFr0W+Fra/7ByeUqBRmueoNJR5dBb5BfGzngY HMEli6SWQNb/A/rdxZJEtHQ= X-Google-Smtp-Source: ABdhPJwYrO9w3zDxzF14nxARUA2FfcVXyRxiVmexB2MPO+GZ6ruT87BchxhR1v/RUCrJaESe8u1Gfw== X-Received: by 2002:a17:903:22c4:b0:141:deda:a744 with SMTP id y4-20020a17090322c400b00141dedaa744mr66054483plg.25.1637231298006; Thu, 18 Nov 2021 02:28:18 -0800 (PST) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id c20sm2898030pfl.201.2021.11.18.02.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 02:28:17 -0800 (PST) From: Ihor Radchenko To: Carlos Pita Subject: Re: [BUG] org-occur doesn't hide unmatching top-levels [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)] In-Reply-To: References: <87wnl6984h.fsf@localhost> Date: Thu, 18 Nov 2021 18:29:43 +0800 Message-ID: <87h7c992p4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::629 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=yantar92@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637231361; 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=h/jsFN5jZT4YGCKhshZW+QL9SKGDpfuXPM9bKhMH9kw=; b=BeCWRjYQvG+qokSLIwmFH+pZbVvv3/gGvWL1DZ6/isQTaB8Ie2tvwiShvYGzw/lfNAHOXa Gu7uRt20roKRCQPkBM+eYwSCnoggJmFDd18iqF4hvE888QsuAj2gq1eXeTuJ73R0UbjuJr G1AG+XShJJ1POtLThaYpf6EwhyP/2XHcSPKdF1nlxEGbqgQTK1xz2GRfMexkTAZPBYEpHE o/CHY6BFY83lyW4coTg0s77+YELX0xudeS7jDs2UQJxkLfnHxrGBSAoM3MDtH4Y0+bxNwA 7lULLudUEys99u4T7AiS+u8CS02UwVlpLggpQsLQZbyeo4boyruOif2NovwVqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637231361; a=rsa-sha256; cv=none; b=qtDC2QSUiS3kXtW9kRmTe+N04EWhf5gG35qHLX66zys3MRqulir/zB1CmR+F8rIEQPsGzQ DCvDlxTz7j9HkmyUsd6poByI7C6PbmBQA2nZHcZFZ8U1EhGeOPEiyMEegpq+uzMA1RDFlo B5vc/46KvDLRhNU3PPIvjoTLLeDGxPqeRBoujulbO3k+4j3o5L/Y4sG1kEIFc5tFMnHL2R YfveOp74cmMBsNxMlbO+Y6xS1ZdmsG9Ho3eBqk6o//vch4fAQCl/PLI1jAq4MMyYoej4ED GJrmjvwXANkufaWo1bel92s6ZKJig66bdDqlc1+xurEXnoGAzj7d+zBi0nCkiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=d4T5jWPN; 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-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=d4T5jWPN; 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-Migadu-Queue-Id: 378923DBB1 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: dwj7RCk0rNYq Carlos Pita writes: > I see no reason why a match inside b2 will hide b1 and b3 but not a > and c (I'm referring to the headings, not the contents). I think you misread the docstring for org-show-context-detail: >> Alist between context and visibility span when **revealing** a ;; <-- revealing! >> location. >> >> Some actions may move point into invisible >> locations. As a consequence, Org always exposes a neighborhood >> around point. How much is shown depends on the initial action, >> or context. This variable does not control how much text is hidden, but rather how much context is revealed around a folded text. Your misunderstanding may come from the fact that you are interested in org-occur, which first folds everything inside lowest-level headings. Consider agenda views. The relevant default value in org-show-context-detail is (agenda . local). If you press on an agenda entry which is located _inside folded subtree_, only the headline will be revealed. However, if e.g. the headline and it's siblings are already revealed, org-show-context-detail will not cause siblings to be hidden. Best, Ihor