From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aNKNI3rUfmDjOAEAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 15:17:46 +0200 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 8Is3H3rUfmBMBwAAB5/wlQ (envelope-from ) for ; Tue, 20 Apr 2021 13:17:46 +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 DDCB021D3C for ; Tue, 20 Apr 2021 15:17:45 +0200 (CEST) Received: from localhost ([::1]:46900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYqG8-00042G-1a for larch@yhetil.org; Tue, 20 Apr 2021 09:17:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYqDf-0003M7-OM for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 09:15:11 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:55803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYqDd-0002s5-Mf for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 09:15:11 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 674A5240004; Tue, 20 Apr 2021 13:15:04 +0000 (UTC) From: Nicolas Goaziou To: "Cheong Yiu Fung" Subject: Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry References: <878s5inyb2.fsf@yiufung.net> <87y2ded6rn.fsf@nicolasgoaziou.fr> <8a8da4ef-2ab3-407c-9872-7f5a82a93dbd@www.fastmail.com> Mail-Followup-To: "Cheong Yiu Fung" , Emacs-orgmode Date: Tue, 20 Apr 2021 15:15:03 +0200 In-Reply-To: <8a8da4ef-2ab3-407c-9872-7f5a82a93dbd@www.fastmail.com> (Cheong Yiu Fung's message of "Tue, 20 Apr 2021 00:03:36 +0800") Message-ID: <87o8e99jxk.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618924666; 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; bh=Yt5KCoqL104yur8Ks6TUqLlb+4ECAgYulPhYhFzKQYc=; b=dP4U7BcthxJPJ9q8LceZA+1AHobnG3LJOs1WkuD/y8ErzNUe75az9Vmurm9zCHamKsQVbD q6d69qC1pBTHyQUTs5LBXTjvDoWza5ar68VWiIKFhUmdUhuo4DNMsYTwlfS9+y9LlP+92y PyDjBRNoW2qbWnjvOqadgAukkmD8iMi/dvgsim9vfpzZsx53YGr5c4EtfIKviVKBUeMcYl Uk3ZGinP7IN1N22PKp2rBZZo2FnClcN7qCqLSSmUWDAmJsEQ6f+7Q2edZh9hA+4DoUNX1m 8Mhoyue3cGdkgP0uGrOlB0rbjpQEo0Vc9AfEX8put2/4mtWfqBHl2kBV2+cW0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618924666; a=rsa-sha256; cv=none; b=uDoFf6CGULxZtWG/2mNjZIRQ5vUn9pDIU+Y6L9QMR5xIuYGQ5ZzGy00cYcJc8jUtTEAdUe KlOppXlXWsx7Q3DjFWPXs6NjQxBcckN1MlSeOW8iYd8kMLi3bccN/rzgfXWvDK/3+ISR52 urKO2pVWaqJA7K+7gvvjQ8Ce+/qxR0F1svS+So3mGgyFBWAzdW26M+vQvGltZPNm8DODxZ B6kocGFBJk4VGAgrN0SfXvp+0jG6m1kyjRfT8ecKWZvneQUOROTSuxrpCzsE/U3xesS1CF kJeGX/x8Bl7IAq7hKHLaRR36M+tpvaHXF7CPkadmwTv0+2vLOBoHnoPxArHSbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: DDCB021D3C X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: pPcdJnYYOrL2 Hello, "Cheong Yiu Fung" writes: > Yes, but that would work only for one entry. My main use case is to > first filter tree by `org-sparse-tree', then export all filtered > contents with `visible-only' option. If I am to use `ancestors' view > and move point within each entry one by one to expand, it would be > very repetitive. I think this is helpful for generating HTML page or > PDF from matching query quickly. OK. Then what about a shorter `ancestors-full'? Also, could you provide tests for it in `test-org/show-set-visibility'? Regards, -- Nicolas Goaziou