[Top][All Lists]

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

Re: Line wrapping during redisplay (was: longlines.el problems...)

From: Richard M. Stallman
Subject: Re: Line wrapping during redisplay (was: longlines.el problems...)
Date: Fri, 22 Jul 2005 00:55:47 -0400

    Perhaps you would like to experiment a little with the following patch
    which implements non-destructive line-wrapping during redisplay, i.e.
    it automatically breaks _displayed_ lines at suitable spaces and tabs.

With this approach, the commands that operate on lines in the buffer
will all treat the paragraph as one line, even though it appears as
several.  That is extremely inconvenient.  There is a package that
redefines the most common commands, but there are others, including
M-x occur.  User programs also look at lines.

I strongly prefer the approach in longlines.el, because the line
breaks are there in the buffer, so that all sorts of commands that
look for line breaks will see them where the user sees them.

Here's a peculiar idea.  Make it possible for an overlay to make a
space "appear" as a newline or vice versa.  The result is a change in
the apparent contents of the buffer, for display purposes and for some
commands.  But killing and yanking would not copy these overlays
(since they don't copy any overlays).

reply via email to

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