Hi Ihor, Could you please this to the relevant folks on the org devel team? I solved my issue with org folding in org-9.6 when org-fold-core-style is set to transparencies -- TL;DR: I created myself a small function by cloning function org-mode and taking out most of the code so that what I had left were the bits that set up org-fold magic; I then call this function in my code where I create a temporary buffer for processing the text to speak. A better solution might be for org itself to provide such a function; my initial solution was to just call (org-mode) but that function does a lot of work that isn't needed just to set up the fold hiding bits. See https://github.com/tvraman/emacspeak/blob/master/lisp/dtk-speak.el#L1662 for the relevant code. "T.V Raman" writes: > Hi Ihor, > > After looking through the code in org-fold-core.el, > I see the following: > > org-fold-core.el: Line 1413 > > The comments in that section talk about preserving/not-preserving > folding when copying among indirect buffers. > > But the lines at the afore-mentioned position indicate that the solution > for how to do this when pasting to a non-indirect buffer. > > Note that emacspeak needs a solution to the above, --- at present, > when it tries to speak a folded line in org-9.6 with org-fold-core-style > set to text-properties, the invisibility gets lost, which is why content > that is folded in the original buffer gets spoken by emacspeak. > > While we wait for a clean way for a third-party app to handle this, can > you tell me what I need to do on my end, e.g. perhaps inherit some magic > property from the source buffer into the scratch buffer where I > manipulate the text before speaking it perhaps? -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♈ Id: kg:/m/0285kf1 🦮