emacs-devel
[Top][All Lists]
Advanced

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

Re: visual-line-mode


From: Chong Yidong
Subject: Re: visual-line-mode
Date: Thu, 10 Jul 2008 09:55:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

David Reitter <address@hidden> writes:

>> There's also a problem with posn-x-y, which returns a position too
>> far when given coordinates that are to the right of a word-wrapped
>> line (i.e. in the blank space).  This can also be seen if you just
>> click into that space (mouse-set-point).

I'll take a look at this problem.

> Also, I'd appreciate some assistance from somebody with this:
>
>> I'm not sure about "fields", perhaps because I don't know much about
>> their implementation.  Can you point me to a test case?  Customize
>> buffers perhaps?

Basically, if you move point into a new field, line-move tries to put
point at the beginning of the field instead of its goal-column.  The
idea is that when you enter a new field, you want to start inputting
text at the beginning of the field instead of its middle.

In practice, maybe visual-line-mode probably shouldn't worry about
fields.  Respecting field boundaries in line-move has led to a ton of
complications, to try to DTRT with multi-line fields and non-contiguous
fields, just for this one small benefit.

> Incidentally: how would one turn on word-wrap for the echo area?  Word
> wrapping for `message' would be very useful.  (It could even be the
> default.)

This is controlled in xdisp.c.  Let's worry about it later.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]