5

Emacs uses overlays / prettify-symbols-mode / etc which modify how data is displayed to user.

I like to copy visible content as I see it. For example I aligned columns in CSV file with M-x csv-align-fields but content is copied as it in file (with commas instead of aligned columns).

1
  • 2
    I haven't tested this, but you may be interested in emacswiki.org/emacs/OverlaysToText. The problem with overlays is that they are generally not considered a part of a buffer's contents. Commented Feb 10, 2018 at 20:01

1 Answer 1

0

I had the same issue. Decided to look into the code and csv-mode's docs gave the answer away:

C-h f csv-align-fields:

Use soft alignment done by displaying virtual white space after the separators unless invoked with an argument, in which case insert real space characters into the buffer after the separators.

So, to have actual space characters, use C-u M-x csv-align-fields

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.