2 thoughts on “eliminating invisible ^Ms

  1. What, switch to perl for the task? Heresy!
    If you already have the file open in a buffer, type C-x RET f unix RET and save the file. It’s now saved without the ^Ms. If you haven’t opened the file yet, type C-x RET c unix C-x f filename RET
    There’s probably something in the menus for this, but I never use them.
    Oh, and in perl, another way to do it (heh) is perl -pi -le ‘s/r$//’ file.txt. It’ll do the work in-place.
    This comment looks a lot nicer with paragraphs, but the blog seems to strip them out.

  2. blogsearch.google.com lets me search for stuff in blogs, and also helpfully gives me an Atom feed. That’s how I find your posts; I have a search defined for ‘emacs’.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>