home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
- From: kevin@edscom.demon.co.uk (Kevin Broadey)
- Subject: Re: read/write dos files from Un*x
- In-Reply-To: thompson@saifr00.cfsat.honeywell.com's message of Mon, 10 Aug 92 20:26:53 GMT
- Message-ID: <KEVIN.92Aug12094612@buffalobill.edscom.demon.co.uk>
- Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
- Organization: EDS-Scicon, Milton Keynes, UK
- References: <1992Aug10.202653.19442@saifr00.cfsat.honeywell.com>
- Date: Wed, 12 Aug 1992 09:46:12 GMT
- Lines: 33
-
- In article <1992Aug10.202653.19442@saifr00.cfsat.honeywell.com> thompson@saifr00.cfsat.honeywell.com (Todd Thompson) writes:
-
- I'm sure the title sounds bizarre, but bear with me. I import/export
- files from/to DOS machiness quite frequently. Are there any
- Emacs-lisp packages out there that will convert the CR/LF to the LF
- used in Un*x so that the buffer doesn't have the annoying ^M
- appearing at the end of a line?
-
- Thanks for any help you may provide.
-
- Todd Thompson
-
- This one ought to be in the FAQ if it isn't already there.
-
- You haven't said _how_ you're importing/exporting your DOS files, but the most
- basic way is by doing M-ESC (replace-string "\r\n" "\n") after you've imported
- your file, and M-ESC (replace-string "\n" "\r\n") before you export.
-
- If you're using PC-NFS then use DOS2UNIX to create the import copy and UNIX2DOS
- for export.
-
- If you've got a more tightly-nit UNIX-DOS network (we've got a shared TCP/IP -
- Novell LAN) you can set up a PC as an FTP Server using something like Novell's
- LAN WorkPlace and then use the Emacs command `ftp-find-file' to import and
- 'ftp-write-file' to export.
-
- BTW I've modified `ftp-find-file' so it does auto-mode-selection _without_
- clobbering all those buffer-local variables that FTP uses.
- --
- Kevin Broadey, EDS-Scicon
- Mail: Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England
- E-mail: kbroadey@edscom.demon.co.uk
- Phone: +44 908 284198 or +44 908 585858 ext 4198
-