I have Emacs doing a bunch of smart things to display text for me. In particular, some text has the
invisible property set, and I'm running
<!-- adaptive-wrap-extra-indent: 3 --> set. I'm wondering whether I can copy the text as it's rendered in Emacs, with newlines to re-create the smart line wrapping and with the invisible text gone. Is there a way I can access the text from my buffer in that form?
What I want is essentially the same as running
emacs -nw, selecting the text using the terminal's text selection capabilities, and then using the terminal app's copy function (not marking using an Emacs region and then yanking). The chief problem with this technique for me is that I have to do it one screen at a time.
htmlfontify-buffer gets me part of the way there. My visible text is shown by I can make it go away by clicking on each individual instance, but the line-wrapping behavior is lost.