[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening mac text files in XEmacs



"Itamar S.-T." <itamars@ibm.net> writes:

> When I open a mac text file in XEmacs (v20.3) all the line-breaks are written as
> ^M. I want to convert them into newlines.  Searching for the ^M is easy, but I
> can't figure out how to replace them with a newline.
> 
> GNU Emacs converts the file into unix text automatically, so I can use that to
> convert it, but I'd rather use XEmacs.
> 

Doesn't 

M-x replace-string RET C-q C-M RET RET

do it? Another variant (with a smiley attached):

M-x mark-whole-buffer RET
C-u M-x shell-command-on-buffer RET dos2unix RET

-- 
Oleg Goldshmidt          goldshmt@netvision.net.il   
BLOOMBERG L.P. (BFM)     oleg@bfr.co.il