From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMZ+LVKXgWBmJgEAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 17:33:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id hCQBKVKXgWBRegAAbx9fmQ (envelope-from ) for ; Thu, 22 Apr 2021 15:33:38 +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 2CB6C142EC for ; Thu, 22 Apr 2021 17:33:37 +0200 (CEST) Received: from localhost ([::1]:59320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZbKh-0007kT-MA for larch@yhetil.org; Thu, 22 Apr 2021 11:33:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbJU-0007kA-6T for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 11:32:20 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:36667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbJR-0002V3-1m for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 11:32:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 60FB21394; Thu, 22 Apr 2021 11:32:13 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute4.internal (MEProxy); Thu, 22 Apr 2021 11:32:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yiufung.net; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=XfPSw5cr2Yz/K+MQBjRfEuGZZkR6siW NFlPla7GzoYQ=; b=dvF7Gc0c8wRdnjEJscvikjgJKWwAcJb5CP76fMmb6JR6fNc ux974jX+L4MmQFHCtupOoWtqMqjwmBj6YWl9tfXwmsjdeOJT2iwrxtJkkCkKE/aS e+7dZojxNw/lteiOOFUrRrYPznhqnejOU7dybr2kmvglHFcvXZ1+GQdEbJIFy+p6 ucqn52t5hqs0WFllEMukDcE52vA54FJgU5Jwv63oa6Gdi9aVk0wV4s+tGdtgMIeo Tvs/9ApMZOltxRKfoq25pGlJHDG79aubPaQX2NNpvE42xtWaSnW+mLkawnsTm8Sz Xy8n+7xgH4RKtM6wA2apZRdhaoIw+j19BtIGltg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XfPSw5 cr2Yz/K+MQBjRfEuGZZkR6siWNFlPla7GzoYQ=; b=B6dKJps7cJNGYnOtl6bzp3 Unk1yD1LN25n04VUI74YcVEv5tYTz1Z6szLY/uRLUgza/VHbNlkUGLGZ8AqwIPS1 vPAFOWrqHS2RhOarFOykFCoKKR0/F/dnLq+A/Oe7EwAD2ysE3w1zMepXG6Uhwm3O VDD7ta+LuzWyKQDs6pcgBysVemr6atCS/8mKbiisl2RAkM/CDNDfxDHjsQrXQy99 g5N1v4JkCyluZ1i5FgdPKbq4MT/YTC5VgZs6ruEGiA9C9BRkVJhDECY22nCyFSXb LsiT6ZHq/CRvNx3V6YnIB+TI2Vshp6pUrPNYVAVCxkY4HDbu3nRepHzDjMTD7/jQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddutddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehmtd erreerreejnecuhfhrohhmpedfvehhvghonhhgucgjihhuucfhuhhnghdfuceomhgrihhl seihihhufhhunhhgrdhnvghtqeenucggtffrrghtthgvrhhnpefhveektdetgfetudfhhe evfeeitdeggfefffefvddvvedtveekjedtfefhhfeugeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghilheshihiuhhfuhhnghdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 77F2B10E0089; Thu, 22 Apr 2021 11:32:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-Id: <57807c65-3ba8-4d4a-b584-cbe8cfe45f1c@www.fastmail.com> In-Reply-To: <87lf9a4f8l.fsf@nicolasgoaziou.fr> 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> <87lf9a4f8l.fsf@nicolasgoaziou.fr> Date: Thu, 22 Apr 2021 23:31:52 +0800 From: "Cheong Yiu Fung" To: "Nicolas Goaziou" Subject: =?UTF-8?Q?Re:_[PATCH]_org.el_(org-show-context-detail):_add_option_'ance?= =?UTF-8?Q?stors-with-entry?= Content-Type: multipart/mixed; boundary=694a0fdac10c42d09b738893c2836b09 Received-SPF: pass client-ip=64.147.123.19; envelope-from=mail@yiufung.net; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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=1619105618; 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=XfPSw5cr2Yz/K+MQBjRfEuGZZkR6siWNFlPla7GzoYQ=; b=ghKfEzMZAbh39VpC18t62c60PcDvMOvnBMBBN9R93msb1PPi3g96pP9WXuqqTmPRWO+pZi vmI/c3hgy7ezyghI3xnuUXtkHSwOGVZmvBL6SJrvZ0G3bhPD7n2JU0oN6QaFQSs54Uzbu0 5mcZhi7gHbpOX2y2TWCl6aYPq0ZBD106mXRkkr8qFE+lx2wWnIlP55c6Zg/q+f3hPnxEZj 5TcFLwyiihbPyRV5aIkrvO+ahje6j3gskYdkM6t8j2/5VZ8mrOQzch8dYvcMuiRtBRMnXG qKOm/3dYe1fmanB2KS6A1W1Bf9GU96fmckv+ARVSy1dYpmtu/amqwIzFmWVYEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619105618; a=rsa-sha256; cv=none; b=o9nKJPJqvdKN6Vqvz92SkuPrq/QNG2MWuawFvaRvePuvIuX+tuYcE6g/CTz7OQzbKWpN9a +eLL51YZlJFGuQgPVN30ZUUwBC60uIm910aV3GngQUDRA9SABByD+Gjwpz4DRbi3OGffJn AXj6lRZX4ysA1FmiE9wG3Aznrzxasptlr2lxx5KfzeKRxaKqghpR3qmGK6ldV/EjhoD6U/ VkMC++9T7f4pgCgdFL6n8gS+J4Vv9LnssjwXEowZp48CbtIOpSRzw+5PC2oBJKM/qW5ePY ZAKBU7hOsQRUExpj9XjAMFwz5qsE6MLuwgMaZdhBbIUcxJRTGjL7kWsZFov8NA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yiufung.net header.s=fm3 header.b=dvF7Gc0c; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=B6dKJps7; 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: 0.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yiufung.net header.s=fm3 header.b=dvF7Gc0c; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=B6dKJps7; 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: 2CB6C142EC X-Spam-Score: 0.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: lYatOu0GX69B --694a0fdac10c42d09b738893c2836b09 Content-Type: text/plain Hi, On Thu, Apr 22, 2021, at 9:32 PM, Nicolas Goaziou wrote: > I would say > > See also [[*Sparse Trees]]. > > The ~org-show-context-detail~ variable is mentioned there anyway. I agree. A new patch for docs is attached. > > + 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. Current subtree means everything under it: heading + entry + children. They are shown. Regarding its ancestors: Only headings are shown. Contents of ancestors are *not* to be shown. > > + (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. Yes, that is the main purpose. The idea is to show the whole subtree (what "full" would mean). So, whether target is in Self(7) or Match(8), 7-11 should all be shown. This is to facilitate using tag or TODO keyword to choose what tree to be shown. Yiufung --694a0fdac10c42d09b738893c2836b09 Content-Disposition: attachment;filename="0003-org-manual.org-add-hints-for-visible-only-export.patch" Content-Type: text/x-patch; name="0003-org-manual.org-add-hints-for-visible-only-export.patch" Content-Transfer-Encoding: BASE64 RnJvbSA1ZmRiZmZkODhmNTczZjEzMmFjZTRiYWUyZjE2NjVlMzI1YmNhM2E0IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBDaGVvbmcgWWl1IEZ1bmcgPG1haWxAeWl1ZnVuZy5u ZXQ+CkRhdGU6IFRodSwgMjIgQXByIDIwMjEgMjM6MjU6MDMgKzA4MDAKU3ViamVjdDogW1BB VENIXSBvcmctbWFudWFsLm9yZzogYWRkIGhpbnRzIGZvciB2aXNpYmxlLW9ubHkgZXhwb3J0 CgotLS0KIGRvYy9vcmctbWFudWFsLm9yZyB8IDIgKy0KIDEgZmlsZSBjaGFuZ2VkLCAxIGlu c2VydGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2RvYy9vcmctbWFudWFs Lm9yZyBiL2RvYy9vcmctbWFudWFsLm9yZwppbmRleCBlODA5ZWNhZGIuLjc0YTdjNzM1YSAx MDA2NDQKLS0tIGEvZG9jL29yZy1tYW51YWwub3JnCisrKyBiL2RvYy9vcmctbWFudWFsLm9y ZwpAQCAtMTE1MjQsNyArMTE1MjQsNyBAQCBmdXJ0aGVyIGFsdGVyIHdoYXQgaXMgZXhwb3J0 ZWQsIGFuZCBob3cuCiAKICAgVG9nZ2xlIHZpc2libGUtb25seSBleHBvcnQuICBUaGlzIGlz IHVzZWZ1bCBmb3IgZXhwb3J0aW5nIG9ubHkKICAgY2VydGFpbiBwYXJ0cyBvZiBhbiBPcmcg ZG9jdW1lbnQgYnkgYWRqdXN0aW5nIHRoZSB2aXNpYmlsaXR5IG9mCi0gIHBhcnRpY3VsYXIg aGVhZGluZ3MuCisgIHBhcnRpY3VsYXIgaGVhZGluZ3MuICBTZWUgYWxzbyBbWypTcGFyc2Ug VHJlZXNdXS4KIAogKiogRXhwb3J0IFNldHRpbmdzCiA6UFJPUEVSVElFUzoKLS0gCjIuMzEu MAoK --694a0fdac10c42d09b738893c2836b09--