[OS X Emacs] Aquamacs windows to mac encoding

David Rogoff cs80 at therogoffs.com
Tue Feb 16 13:07:32 EST 2010

On Feb 16, 2010, at 7:28 AM, M A wrote:

> On Mon, Feb 15, 2010 at 9:48 PM, David Romano <romanod at math.grinnell.edu> wrote:
>> On Tue, 16 Feb 2010, Peter Dyballa wrote:
>>> Am 15.02.2010 um 23:30 schrieb David Romano:
>>>> Thanks -- this works, although it introduces lots of blank lines.  I'll
>>>> see if I can get the init file to prevent this.
>>> Then try this file with Apple's (/usr/bin/)emacs in Terminal! Could be
>>> Aquamacs Emacs is doing some nonsense.
>> I get the same effect by using C-x RET r with "mac" or "big5-mac" as input
>> in emacs in Terminal.  If I use "mac-roman-mac" the file doesn't change in
>> appearance -- the ^M^Ms stay and no blank lines are introduced.  Maybe the
>> init file solution is the only one?
> Why not just translate the DOS line endings into unix ones outside of emacs?
> If it's really a DOS file this will make it a unix one:

I was used to using the dos2unix and unix2dos commands, but they're apparently not standard in OS/X. However, I found them here: http://dos2unix.darwinports.com/

More information about the MacOSX-Emacs mailing list