[Top][All Lists]

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

Re: Display-based word wrapping

From: Lennart Borgman (gmail)
Subject: Re: Display-based word wrapping
Date: Sun, 22 Jun 2008 22:04:01 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Chong Yidong wrote:
I have been studying Kim Storm's display-based word wrapping code.  I
believe it's pretty safe, and suitable for inclusion into the Emacs 23
release (probably turned off by default).

The original patch included a `wrap-column' variable, but I'd like to
modify this to use `truncate-lines' instead, as shown below.  This would
mean that word wrap always uses the right window edge as a wrap column.
Any objections?

Yes, I would find this quite impractical to not have a `wrap-column'. I do not want to resize windows just to edit text in a comfortable way. (Wouldn't it also make it impossible to use the "darkroom" editing some people have suggested?)

Is there any reason not to have a wrap-column? If that is nil I would suggest falling back to the window edge.

truncate-lines is a variable defined in `C source code'.

Whether lines longer than the window width are truncated.
If the value is nil or `word-wrap', long lines are displayed using
continuation lines.  If nil, the wrapping occurs at the right window
edge.  If `word-wrap', it occurs at the rightmost space or tab
character, if possible.

Any other non-nil value means to give each line of text just one
screen line, truncating long lines at the right window edge.

Note that this is overridden by the variable
`truncate-partial-width-windows' if that variable is non-nil
and this buffer is not full-frame width.

reply via email to

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