[OS X Emacs] Aquamacs windows to mac encoding

David Romano romanod at math.grinnell.edu
Mon Feb 15 15:21:55 EST 2010

Thank you, Thomas and Peter.  When I click in the lower left corner, 
I get another window in Aquamacs, which says:

%% begin output %%
- -- undecided-unix

No conversion on encoding, automatic conversion on decoding

Type: t (do automatic conversion)
EOL type: LF
This coding system encodes the following charsets:
%% end output %%

but I'm not sure what to do to make the CRLF invisible -- as I said, 
executing C-RET-f doesn't alter what I see no matter what coding select.

And for some reason, when I use query-replace or query-regexp-replace, I'm 
told there 0 occurrences of ^M or ^Q^M (using query-replace), and \^M or 
\^Q\^M (using query-regexp-replace).  When I delete the ^M manually, it's 
clear that ^M is treated as one character, but I can't figure out how tell 
the query-replace function which character that is.


On Mon, 15 Feb 2010, Thomas Käufl wrote:

> Hi,
> Am 15. Feb 2010 um 19:43 schrieb David Romano:
>> I just starting using Aquamacs version 1.9 and I'm seeing behavior I don't 
>> see when using an earlier verion:  When I view a file sent from a Windows 
>> machine, there are ^M^M characters at the end of every line. I've only 
>> found a response in the archive by Peter Dyballa that says one can use C-x 
>> RET f, ...
> this sequence of keys allows to select the coding system for the
> text. In most cases, mac-roman-mac is a good choice.
>> but when I do this, I'm still not sure which coding to use, and no matter 
>> what I try, the ^M^M persist.
> As far as I know, ^M^M is the coding of the line ends in the
> windows world. Emacs shows the coding of the line ends at
> the bottom within parenthesises. Clicking with the mouse
> there changes the coding of the line ends. I am very happy
> with the mac-style.
> If after the selection of a new coding of the line ends,
> ^M^M still appear in the file, you could do a query-replace.
> Enter ^Q^M^Q^M as search string and use an empty string as
> replace string.
> Thomas Käufl

More information about the MacOSX-Emacs mailing list