jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: "Visual wrapping" of lines


John E. Davis <davis@xxxxxxxxxxxxx> wrote:

> Frank v Waveren <fvw@xxxxxx> wrote:

>>Most if not all emacses do this by default, give it a try, it really grows
>>on you.

> I have tried it in the past and hated the behavior.  For
> example, imagine a very long line that wraps to 10 "continued"
> lines.  Then with the cursor on the 10th continued line,
> pressing the up arrow would move the cursor up 10 lines.  The
> upshot is that the number of display rows the cursor would move
> would depend upon the number of continuation lines.  I found
> this "context-sensitive" behavior to be extremely annoying.

> If and when I implement it, I intend to give users a choice.
> This would include the "bol" and "eol" functions.

The user also has the choice of setting the WRAP variable on a
mode-by-mode basis. I don't want too get much into the tech
speak with techies ;) but as a I see it, it is just a display
mode which you could either have as the default and then let be
overridden by WRAP, or you could have the current Jed behaviour
as the default and then let the user choose between the soft
wrapping and horisontal panning display modes, both being
modifiable by WRAP.

What I wanted to use it for, specifically, was the never ending
saga of the po-mode[1] I am working on, where the syntax of
gettext message catalogs (*.po files) imposes a sharp distinction
between single-line and multi-line strings, the latter always
being terminated by the newline literal "\n". However, many/most
strings are single-line strings, sometimes very long, that thus
should not be wrapped by newline characters and yet it would be
desirable if the user could follow what he typed in all along,
hence the need for soft wrapping. Emacs works that way.

So, if it is not a huge amount of work to implement, then at
least there you have one good reason to do it (unless of course
makeshift solutions are already available that attain the same
goal?).

[1] http://home20.inet.tele.dk/mortenbo/po_mode.tar.gz


Morten


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]