From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +FxnJfWqfWCFygAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 18:08:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GNdaH/WqfWCfdwAA1q6Kng (envelope-from ) for ; Mon, 19 Apr 2021 16:08: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 808E536957 for ; Mon, 19 Apr 2021 18:08:19 +0200 (CEST) Received: from localhost ([::1]:60030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYWRe-0002ki-El for larch@yhetil.org; Mon, 19 Apr 2021 12:08:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYWNX-0000Lo-JU for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 12:04:03 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:54963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYWNV-00085E-Ey for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 12:04:03 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0B8D15C0233; Mon, 19 Apr 2021 12:03:58 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute4.internal (MEProxy); Mon, 19 Apr 2021 12:03:58 -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=bIFbWkJCviMFfs1EVoTRBCQVMvhxOaF 3TpJURrP+YOM=; b=uK3bNovC7NOcKfb7JVvKkrQi6RfQRTz1m1fdR0rubQX1H24 8E9fNLnk1USuQil6HV1Tmw2uVj0vgi4XD0AMW/BFPXXUhybjh6oe+mVO8/oe+mTD POWmRJkjGTGRDOmx6m1dq6opNb/WC/zQZGXI4r1xJzlajKU4/+EcT3ocbBxM8YP4 BTJF5ega/WqV3JrfigksdvgjW49aC8MxIa5eZz5OPDpPQbg92aKnlb92kfrLV8a7 Gg+faE9F/cT0UUjXr8OW4EZFS3EqymKOzePyUY+LDv7NV8Oar3/D1Sb7E49BAHwW NDRTKbKLk5q0JWDBfWdQ9hAOEJ8FZgLEpYu+bsA== 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=bIFbWk JCviMFfs1EVoTRBCQVMvhxOaF3TpJURrP+YOM=; b=Rl92w/kZIWjcrPdGyVY93H gVWSmMzOozAUp6UavCV0rQmTC9/AbS/jw58EV8UY0zawkK8jDKSfBk9Npn/gZr1A fv9VJG5jr7ePE5bhZUkem4weA68irap2k+IMvgFieOXyiEEs9gg33gjxiKFbwr5R PwsV2wfrMyHW60te6CINq5Pn28iRglnXUEdi24k5iTAsQC2NJuofwU/1Ur2uVpv/ +47FPUkCxF1qfsHaxFtuk7l6JyIaK8FeKSTRsibxVDtklIDKbQI7HNeut14nG7p8 CCrGanpDNlWzY8olXjBVBtQ8HCyk3rAzHV2tMuIgfxTDAZkqp8CXg5inqjyS5F8A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtgedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpedfvehhvghonhhgucgjihhuucfhuhhnghdfuceomhgrihhl seihihhufhhunhhgrdhnvghtqeenucggtffrrghtthgvrhhnpeegjeegheejheejhfeife evhfeggeehhfefveeluedtjeetueduuefhieeufeetteenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghilheshihiuhhfuhhnghdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 57A7310E0089; Mon, 19 Apr 2021 12:03:57 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-379-g3e3377039f-fm-20210419.003-g3e337703 Mime-Version: 1.0 Message-Id: <8a8da4ef-2ab3-407c-9872-7f5a82a93dbd@www.fastmail.com> In-Reply-To: <87y2ded6rn.fsf@nicolasgoaziou.fr> References: <878s5inyb2.fsf@yiufung.net> <87y2ded6rn.fsf@nicolasgoaziou.fr> Date: Tue, 20 Apr 2021 00:03:36 +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: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=mail@yiufung.net; helo=out5-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=1618848501; 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=bIFbWkJCviMFfs1EVoTRBCQVMvhxOaF3TpJURrP+YOM=; b=JNifN8RV2NkqwP/Cb9auPElq3JY1zVg9Rc/qJLQbsz0f/xhOG8jpn4MaB3tuaH4RdeyhyL 9XMQ1x1ojS7LB8W7sDAqPf5Nxcqbw/i8M1Pc8dLOoVsmauUDkOuD2Ji32230cqzQGbvSsr 3IQAaA6W8/oaHdnpH+UDpb6AQvcd4MndHd75RCDLnuzPy23uPoWOeXT4NIWV9HZlJObZG0 C1fjeSnYNW3V8cPSX/akwgqCJcP7Tc0ba6cpnckvvSUotZww7EvYEnMaT33uCYhZOoRmhm UXJE0SK9RlADnL8nS1ET+TEjxXyVj5L3mcyidXAhoVmDlwoCplFCQ7cR3h3PLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618848501; a=rsa-sha256; cv=none; b=e5LtJf3bPGJH4dV1A1UL7cjqoPMZ92+Qc4jFIv31SxljuBTmN4bX7CvBpBrI357Vg9pWKm bG3/AjHtYIHSuqkAgglgXLuLNrzoxNaME5EISIy9tl7Vkglqlz4l66X/mUs5n81qDDI7Qu VtwyYYIt0FeF0KkUZKhsAGi5/JxvfCd9EfBhIcV2LYm/eRtHPtDESRIIKiCvm/n9V3BInH 2GPTH08UdfIsKkQTN+vU6aXslLY1pAYv5sQlslFigGQ1z8p6L8Y335QZuYFhDurm/Vpo+n L6UUt20depRnawhLHheV6YFZ820JUl69t1rnvjGNS1szva/BgduVbfjk2YShXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yiufung.net header.s=fm3 header.b=uK3bNovC; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="Rl92w/kZ"; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yiufung.net header.s=fm3 header.b=uK3bNovC; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="Rl92w/kZ"; 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: 808E536957 X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3rQtlo2COgDt Hi Nicolas, > Don't you need to simply move point within the entry and use `ancestors' > view? 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. Yiufung On Mon, Apr 19, 2021, at 4:21 PM, Nicolas Goaziou wrote: > Hello, > > Cheong Yiu Fung writes: > > > Hi, I'm proposing a new option in `org-show-context-detail', which shows > > current headline, its ancestors, *and the entry itself*. This is useful > > when export matched subtrees and their contents quickly with least > > manual intervention. > > > > Consider when working on different aspects of a project and taking notes > > as we go: > > > > * Project > > A project tree > > ** Task1 > > ** Task2 > > *** ASK Something to align > > Something for discussion > > ** Task3 > > ** Task4 > > *** ASK Something else to align > > Something else. > > > > At some point, we may wish to export only certain contents. For example, > > to export headings with TODO keyword of "ASK", along with the task > > context (ancestors TASK heading name), and their own content for > > discussion with colleagues. Ideally, this can be done by > > org-sparse-tree, followed by org-export with visible-only + subtree-only > > option. > > > > Expected output: > > * Project > > ** Task2 > > *** ASK Something to align > > Something for discussion > > ** Task4 > > *** ASK Something else to align > > Something else. > > > > Current options, though, either require manual expansion to show both > > ancestors AND entry, which becomes tedious soon; > > > > * Project > > ** Task2 > > *** ASK Something to align > > ** Task4 > > *** ASK Something else to align > > > > or it shows extra contents (`local' will include the *next* heading, in > > this example, the non-related Task3) > > > > * Project > > *** ASK Something to align > > Something for discussion > > ** Task3 > > *** ASK Something else to align > > Something else. > > > > `ancestor-with-entries' is a long name that pose some difficulties to > > updating documentations, so I wish to have some feedbacks before moving > > on. Is there better way to achieve this effect? Am I overlooking > > something? > > Don't you need to simply move point within the entry and use `ancestors' > view? > > Regards, > -- > Nicolas Goaziou >