Subject: Re: bug#11759: 24.1.50; word-wrap should wrap on non-words if the current word is too long

From: Chong Yidong <[email-masked]>
Date: Sat, 23 Jun 2012 19:14:12 +0800

Stefan Monnier <[email-masked]> writes:

>> if the entire line is one "word" but indented, which is not uncommon
>> in some files that I regularly edit, then the entire line is wrapped
>> to the next line leaving a completely blank visual line.
>
> I also use word-wrap everywhere, including programming modes and see the
> same problem.
>
> - if the word is the first non-blank char on the line, wrapping to the
>   next line results in a visually empty line, losing the
>   indentation info.
> - if the word is wider than the window (plus the wrap-prefix), then even
>   after word-wrapping it to the next line, it gets char-wrapped anyway,
>   so we didn't win anything.

FWIW, word wrap behaves the same way in other editors (checked with
gedit and with a text box in Firefox).