Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-27 Thread Nicolas Goaziou
Hello, "Cheong Yiu Fung" writes: > Subject: [PATCH] org-manual.org: add hints for visible-only export I tweaked your commit messages and applied your patches. Thank you. Regards, -- Nicolas Goaziou

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-22 Thread Cheong Yiu Fung
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 >

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-22 Thread Nicolas Goaziou
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]].

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-21 Thread Cheong Yiu Fung
Hi Nicolas, On Wed, Apr 21, 2021, at 5:15 PM, Cheong Yiu Fung wrote: > The first patch implements the changes. I took the liberty to show > entry of its ancestors > too (4 in the test case). Many users, I believe, rarely put text there, > so it does not > make a difference. I would like to res

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-21 Thread Cheong Yiu Fung
Hi Nicolas, The first patch implements the changes. I took the liberty to show entry of its ancestors too (4 in the test case). Many users, I believe, rarely put text there, so it does not make a difference. But when someone write short notes at this location, I think it serves as brief "contex

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-20 Thread Cheong Yiu Fung
Hi, > OK. Then what about a shorter `ancestors-full'? That sounds better, I will use this one. > Also, could you provide tests for it in `test-org/show-set-visibility'? Sure, I'll see how to do it and submit a patch later. Yiufung On Tue, Apr 20, 2021, at 9:15 PM, Nicolas Goaziou wrote: >

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-20 Thread Nicolas Goaziou
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

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-19 Thread Cheong Yiu Fung
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' vi

Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-19 Thread Nicolas Goaziou
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 workin

[PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry

2021-04-16 Thread Cheong Yiu Fung
0800 Subject: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry * lisp/org.el: Add option 'ancestors-with-entry to `org-show-context-detail', which shows current headline, entry, and its direct ancestors. --- lisp/org.el | 7 --- 1 file changed, 4