3

It's somehow strange.

In the *Org Agenda* you can get extra information with v c (time gaps) or v E (some entry text).

What I want is just to copy the extra information (text lines) with the rest of the text, so just to copy all the text from the *Org Agenda* buffer -- nothing else.

I have tried org-copy-visible or even C-x C-w; org ignores the extra information and doesn't copy them. C-x h also ignores the extra information lines.

How can I copy the whole buffer text?

5
  • 1
    The reason it's not saved is that the extra text is an overlay. Not sure if there is any way for that to be saved, but you might want to try C-x C-w in the agenda and choose an output file with a .org extension: it's not the same, but it might serve.
    – NickD
    Jul 14 '20 at 12:28
  • @NickD Thanks for your answer but I just need the text of the buffer (not the complete items).
    – rl1
    Jul 14 '20 at 14:10
  • The point of my comment was that you cannot get "just ... the text of the buffer" since some of it consists of overlays (at least AFAIK: somebody else may know better). So you may have to settle for something less or at least something different than what you hope for.
    – NickD
    Jul 14 '20 at 17:42
  • 3
    Though it's an extra step, you might have a look at Overlays to text. In your example, it successfully copies all visible text, although the time gaps aren't located in their correct position. Then you can select anything you want from the resulting buffer.
    – gregoryg
    Jul 17 '20 at 15:49
  • I promoted my comment to an answer after seeing it upvoted. @rl1 will this answer your question?
    – gregoryg
    Jul 23 '20 at 16:32
2
+50

Although it's an extra step, you might have a look at Overlays to text.

In your example, using that function by typing M-x overlays-to-text successfully copies all visible text, including the extra lines from v E and the time gap information from v c.

The function places all that text in a new buffer. You can select anything you want from the resulting buffer.

1
  • As you have said "although the time gaps aren't located in their correct position. " The position is not correct and some text is copied twice. I upvote your answer and wait - maybe there is something more suitable.
    – rl1
    Jul 23 '20 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.