[OS X Emacs] aquamacs: next "logical" line, not visual line

Elizabeth Kellner ekellner at gmail.com
Tue Mar 22 11:37:52 EDT 2011


Hello,

I'm running into a bit of an annoyance with the arrow keys and macros on
Aquamacs 2.1.  It has to do with an old feature, where the arrow keys and
(next-line) move the cursor to the next visual line.  That is to say, when
the line's wrapped, it moves the text to the next line on the screen, which
is not necessarily the next line in the text file.

In this case, I'm working on a csv file with long lines.  I defined a
keyboard macro to navigate through some of the fields, and edit them.  My
emacs habit is to record the macro, move the cursor to the next line and
then C-a it back to the beginning.  In this way I can then call the macro in
rapid succession.

The behavior is that (next-line) doesn't move to the next line, so C-a moves
within the same line, and the macro gets stuck.

Can anyone suggest a workaround?  Is there an emacs function that's
something like (next-logical-line)?

Thanks,
Elizabeth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110322/10b990b3/attachment.html>


More information about the MacOSX-Emacs mailing list