all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Hanchrow <offby1@blarg.net>
Subject: Re: How to delete ^M
Date: 12 May 2003 15:59:48 -0700	[thread overview]
Message-ID: <87n0hrlqjf.fsf@blarg.net> (raw)
In-Reply-To: mailman.5996.1052718263.21513.help-gnu-emacs@gnu.org


    Each line of a file ended by ^M. I think this is caused by
    'ENTER'. How can I delete them simultaneously?

Here's what I use:

    (defun strip ()
      "Ensures that when the current buffer is saved, lines will not end
    with carriage returns.  Does so by setting the coding system to
    raw-text-unix."
      (interactive)
      (set-buffer-file-coding-system 'raw-text-unix))

-- 

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'
    '---''(_/--'  `-'\_) fL
        -- Igor Pechtchanski

  parent reply	other threads:[~2003-05-12 22:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5996.1052718263.21513.help-gnu-emacs@gnu.org>
2003-05-12  6:16 ` How to delete ^M Roodwriter
2003-05-12  6:24   ` Stein A. Stromme
2003-05-12  6:39     ` Roodwriter
2003-05-12 22:20 ` Joe Fineman
2003-05-12 22:59 ` Eric Hanchrow [this message]
2003-05-13  2:54 Wang, Zhu
  -- strict thread matches above, loose matches on Subject: below --
2003-05-13  2:53 Wang, Zhu
2003-05-12  5:45 Wang, Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n0hrlqjf.fsf@blarg.net \
    --to=offby1@blarg.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.