From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uHoNGrADlGEIlwAAgWs5BA (envelope-from ) for ; Tue, 16 Nov 2021 20:17:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iGnBFbADlGHcegAAB5/wlQ (envelope-from ) for ; Tue, 16 Nov 2021 19:17:04 +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 D793012CBC for ; Tue, 16 Nov 2021 20:17:03 +0100 (CET) Received: from localhost ([::1]:45648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn3x0-0004YQ-VR for larch@yhetil.org; Tue, 16 Nov 2021 14:17:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn3vm-0004Xg-7e for emacs-orgmode@gnu.org; Tue, 16 Nov 2021 14:15:46 -0500 Received: from [2607:f8b0:4864:20::935] (port=38839 helo=mail-ua1-x935.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn3vi-0001yu-Ie for emacs-orgmode@gnu.org; Tue, 16 Nov 2021 14:15:44 -0500 Received: by mail-ua1-x935.google.com with SMTP id w23so443115uao.5 for ; Tue, 16 Nov 2021 11:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mmXrG3vhyX+XMRYf3Bpvso8RCb+WKJ+2TfOF704MkBg=; b=G0mqvYURgnz7GGFwmj30nNCy3IordtF6IbMQ5iSvTl9nIq8O0S2cUZ9cWJa+vNId7r BpMPVP2vTNJNwEG2JsD+1EeCyrZmqt45OOWiRyYSK3eNp+q9mNvFzvKAY/T0fE6uyzA5 uTktN+Zf0Vj2vMRnJ99uX1wyx4txxSAggJs4GzkUXSkboI7/ET1/fCIcAWP+tX8kuVMm VQvpuj+L3eZDzkmud6qE7DHYUlK+gjVQq4BXpKDxVhd0ORd6SQ+ud0vTW+FTh+Qu3gOD W6TkMIXio66iyCdPK4k+fINvGhNBKtCmbUckjs5/WHxjFZunPIjygC8fXjG4Dy749Ks9 zfzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mmXrG3vhyX+XMRYf3Bpvso8RCb+WKJ+2TfOF704MkBg=; b=VUHXTEXja6WmQoYb4nyjlEsmf4H7TFQ0gYb8Wqui4tbxba93vFOAQR6wd8AiyT+oQ7 Dk8fNeS2WxskNtIGEz7hXE3yYeWkHFw74KmabChGUHcZYfvk4BX58QSVlmMNoXN+471E fi4p0p91Pb1uzOBuMDZ2FCkCYdn/rvAAB6t7HSISunFFn7CHtWs5emMMzTpuxbstqoht QsUTMunmYZbQUPVb3n4JX+G+E/ul58itqff0DTj2lUz65wjelFTLS9xiHZOw3MdkXnX1 Z3390mvQN8jUHVpZQLIWwNn6vRkrzOTeG6vxxQOA4kYbsTm2ycXu3Ehsz0K2tHDIYLpQ wNMA== X-Gm-Message-State: AOAM533u3rqZL3E7ohKRJlsUfumYp7qYWJ1dM6ylO9YXZnc0+nsRn9HT OnMxq2fDX2UrQR3a/2j2IGvvR4qBCC4= X-Google-Smtp-Source: ABdhPJwjgDsS7C3/ApmkFp6gAihqgJd3y3QpMeoLrOWJTU5rQJ7OM9eIgR6ePhasWo5FFIReemB6Jw== X-Received: by 2002:a05:6102:370:: with SMTP id f16mr26835192vsa.33.1637090135965; Tue, 16 Nov 2021 11:15:35 -0800 (PST) Received: from Carloss-MacBook-Pro.local ([186.136.138.53]) by smtp.gmail.com with ESMTPSA id s16sm11033367vss.6.2021.11.16.11.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 11:15:35 -0800 (PST) From: Carlos Pita To: emacs-orgmode@gnu.org Subject: [BUG] org-occur doesn't hide unmatching top-levels [9.5 (release_9.5-225-g494c20.dirty @ /Users/carlos/Install/Source/org-mode/lisp/)] Date: Tue, 16 Nov 2021 16:15:27 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::935 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=carlosjosepita2@gmail.com; helo=mail-ua1-x935.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: , 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=1637090224; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mmXrG3vhyX+XMRYf3Bpvso8RCb+WKJ+2TfOF704MkBg=; b=g5YPNqUdDlYZCo1TrQLW3DvsT5Fst/MQSTxlNb3zo/aEipmBswPIkKt+8ZLWqDk+Ew2ZXH DLKY5aB3Bml47I8zKvhd+lLHCv23JtrgTonCiqDt4hZlkJJ4nVcl83onRUad65uwWidnwG Mn9VVjmkTmZiAz1Xr/hhHWoK8v6b3kaKQ0wxifINpEwQ3+Ygrr1npVmIyBKEoaP9KNT1wY z2cfRx/+i2TfVztIvkA/fbVVRAbFaMDKCC8MS3zhV9KFqjDAqZuIChVt10NCKD6XBxvXDi FvReay2YtREW/hxsaH8V85cp5XyvQ5JeviGHe93ikP5EIG1/vVDO4zs/WqmWjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637090224; a=rsa-sha256; cv=none; b=rmya1xIJdAVjr0QMJ81SY3r7lu29S9/eYP4J+/wMh3P8Sb4B5qolJ9LPSaRKRTFIWH+sAE tq1YMH4sQ6/UbLeczUnzScU4U4GVpirhNaOZ4BViV2F90zMPL+ItpW1biS5FTHIvyiszZX EhyzCub8nvykTFQH0ifM991vXMpdTgqCT2PshSUjuw+hpgroq4D5zAf6lAnO2AwUzsIWGD 8Ur9MJ6JjhtWMQjwejtdPz7bG/3JMesodqXHPFJYJNysgtaU30h+51tRU0jzjGHUfD1ArS YBIB56U5aCiptqT4ReeLCozd2bk8cBNUnMOu2BHJ8NqZqN2+PX/Ry8zEgc74pQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G0mqvYUR; 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.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G0mqvYUR; 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: D793012CBC X-Spam-Score: -3.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: mCbmpZ+sCm/4 Hi all, I don't see any clear reason why org-occur should hide unmatching entries except at the top level, where it merely folds them. For files containing lots of top-level entries this requires tree demoting in order to hide irrelevant information, but this imposes constraints on the tree structure that are not related to its author's goals. It has been asked in the past: - https://stackoverflow.com/questions/7602787 - https://emacs-orgmode.gnu.narkive.com/ogvwJnHD I've been playing with org-show-context-detail and it doesn't seem to be any option which actually hides top levels, though the description of some options seem to imply that they should, I believe. This is why I'm reporting this as a bug and not a feature request. Best regards, Carlos --- Emacs : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2= 022.60 Version 11.6 (Build 20G165)) of 2021-11-14 Package: Org mode version 9.5 (release_9.5-225-g494c20.dirty @ /Users/carlo= s/Install/Source/org-mode/lisp/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-link-elisp-confirm-function 'yes-or-no-p org-directory "~/Documents" org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-= view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-default-notes-file "~/Documents/Capturas.org" org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers o= rg-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '((closure (org-agenda-skip-regexp org-table1-hline-regexp org-table= -tab-recognizes-table\.el org-table-dataline-regexp org-table-any-border-regexp or= g-agenda-restriction-lock-overlay org-agenda-overriding-restriction org-agenda-diary-file = org-complex-heading-regexp t) nil (setq imenu-create-index-function 'org-imenu-get-tree= )) (closure (org--rds reftex-docstruct-symbol org-element-greater-ele= ments visual-fill-column-width org-clock-history org-agenda-current-date org-with-time org-defdecode org-= def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task = org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode o= rg-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose org-log-post-mes= sage org-last-inserted-timestamp org-last-changed-timestamp org-entry-property-inherited-= from org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-agenda-bu= ffer-name org-agenda-start-on-weekday org-agenda-buffer-tmp-name org-priority-regexp org-mode-= abbrev-table org-mode-syntax-table org-element-use-cache org-element-cache-persistent buffe= r-face-mode-face org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track= -globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-opt= ions iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-= embedded-close-formula align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-ex= port-registered-backends org-modules crm-separator org-babel-load-languages org-id-overriding= -file-name org-indent-indentation-per-level org-element-paragraph-separate org-agenda-buffer-name or= g-inlinetask-min-level t) nil (add-hook 'change-major-mode-hook 'org-show-all 'appe= nd 'local)) (closure (org-src-window-setup *this* org-babel-confirm-evaluate-a= nswer-no org-babel-tangle-uncomment-comments org-src-preserve-indentation org-src-lang-modes org-edit= -src-content-indentation org-babel-library-of-babel t) nil (add-hook 'change-major-mode-hook #'org-babel-show-re= sult-all 'append 'local)) org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p org-reveal-start-hook '(org-decrypt-entry) outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-show-context-detail '((agenda . local) (bookmark-jump . lineage) (isea= rch . lineage) (occur-tree . minimal) (default . ancestors)) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-cycle-separator-lines 1 org-todo-keywords '((sequence "TODO" "NEXT" "|" "DONE")) outline-minor-mode-buttons '(("=E2=96=B6" "=E2=96=BC" outline--valid-char-= p)) org-support-shift-select t org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-preview-latex-default-process 'dvisvgm org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete or= g-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-op= en :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-sto= re-link) ("mhe" :follow org-mhe-open :store org-mhe-store-lin= k) ("irc" :follow org-irc-visit :store org-irc-store-li= nk :export org-irc-export) ("info" :follow org-info-open :export org-info-expor= t :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-= link) ("docview" :follow org-docview-open :export org-docv= iew-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-= store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-expor= t :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org= -link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-lin= k--open-shell) ("news" :follow (closure ((scheme . "news") (--dolist-tail--) org-ts-regexp= org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id= -link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-b= uffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("mailto" :follow (closure ((scheme . "mailto") (--dolist-tail--) org-ts-rege= xp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol o= rg-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda= -buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("https" :follow (closure ((scheme . "https") (--dolist-tail--) org-ts-regex= p org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id= -link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-b= uffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("http" :follow (closure ((scheme . "http") (--dolist-tail--) org-ts-regexp= org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id= -link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-b= uffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("ftp" :follow (closure ((scheme . "ftp") (--dolist-tail--) org-ts-regexp = org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id= -link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-b= uffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("help" :follow org-link--open-help :store org-link-= -store-help) ("file" :complete org-link-complete-file) ("elisp" := follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) )