From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gLJvDQZ7gWDGfgAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 15:32:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UCUOCQZ7gWD3JQAAbx9fmQ (envelope-from ) for ; Thu, 22 Apr 2021 13:32:54 +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 982C010A73 for ; Thu, 22 Apr 2021 15:32:53 +0200 (CEST) Received: from localhost ([::1]:49886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZZRs-0000Za-LR for larch@yhetil.org; Thu, 22 Apr 2021 09:32:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZRK-0000ZT-9z for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 09:32:18 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:13641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZRI-0007aB-1P for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 09:32:18 -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 38F67240003; Thu, 22 Apr 2021 13:32:12 +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> <87o8e99jxk.fsf@nicolasgoaziou.fr> <0bb50bcc-605e-49fa-a1e2-da5957718fdd@www.fastmail.com> <5aa5c970-73dc-4ce9-991a-d2a04c0e2ab1@www.fastmail.com> Mail-Followup-To: "Cheong Yiu Fung" , Emacs-orgmode Date: Thu, 22 Apr 2021 15:32:10 +0200 In-Reply-To: <5aa5c970-73dc-4ce9-991a-d2a04c0e2ab1@www.fastmail.com> (Cheong Yiu Fung's message of "Wed, 21 Apr 2021 17:51:08 +0800") Message-ID: <87lf9a4f8l.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=1619098373; 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=bsKLimsPjAM0Pw4U9wDkPq1yQR2KgQtT0z6gNm7kD0M=; b=az2HGmEvZ7BWUxW7eQ4n93/zk9NmgCg8enohWz9y+yWgF/n7+bF+T1KG7Tjdz0mWjW3nHO dgnY56lnB/vsoYSlM6+L2OqlrU1rpYkrAPUB4nWgmii62H0BkdDp8HA7RL7//IPnPNAKFK PNDNBz9eVuGJPL15Gz+eI7eoqnx7j4QfML9BQTTpf1mzfo8ULVqQwNRopc0h1VdB3arw5Z OIzn2ziwvpE5mUwe+V4CnbobzoO9OD2USj/YeKY863oznUHbKlOSFIlmV6zLujjZmF3+hD Tl2SeYgRK7PDcnVTdG5tcL1snxy8TTMYEsBVhM/3ULXjb7UlBA6E0CzyFbJKVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619098373; a=rsa-sha256; cv=none; b=Bwg1Fpgh9dacN467Hs+k6T2UqKc9+zfvTSN2e/0QByMyGrKB+exT7NwgDyjG/rv7PoxSfU cSBPvozSKONoovzlkrm2M0ufLSzoFiAwEQLv2Ks8kukz223b1e9SOBZV+08fsegYhvtXue KaHDA6MbaMy5Qr+Tc+cgmCAOSro8WdAe7IWd0//9asCZdrLErjCwytB6yIiDXif9PGieCL RzXE3eFiRBSRLkUQoVi1fHumfrJyQW+mqi8N/p0TTVJP6pbGVJ36B/gTiek7gSUdWg2JsP 0Z5FMY6u5veK3mBWNqC8vKaU8rYFhpYYf1NCFiFL/64XN0W/k2oFfi3mCLrPrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.44 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: 982C010A73 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7xdMnoi/B88j Hello, "Cheong Yiu Fung" writes: > Subject: [PATCH 2/2] org-manual.org: add hints for visible-only export Thanks. Some comments follow. > + particular headings. See also the variable > + ~org-show-context-detail~ and the command ~org-sparse-tree~. I would say See also [[*Sparse Trees]]. The ~org-show-context-detail~ variable is mentioned there anyway. > + ancestors-full show current subtree and its direct ancestors IIUC, it seems to be current subtree, its direct ancestors along with their contents. But see below. > + (should (equal '(0 3 7 8 9 10 11) > + (funcall list-visible-lines 'ancestors-full t))) > + (should (equal '(0 3 7 8 9 10 11) > + (funcall list-visible-lines 'ancestors-full nil))) Are you sure you want to display line 10? No other visibility does that. Regards, -- Nicolas Goaziou