Re: wrapmargin is a bad way to solve `smart' wrapping
Allister MacLeod <amacleod@xxxxxxxx> wrote:
> Anyway, I hope the patch I came up with then was helpful.. and let me
> (or anyone else who's willing to dive into some C coding) know if you
> have any ideas for improving the way it works.
Yes this looks very nice.
I bet you have noticed in the meanwhile, but for the record: The patch
also affects wrapping in the help page. Of course it should only affect
the wrapping while viewing messages.
> Ideally, I guess, the smart-wrap code would be able to clamp "plain
> text" to 78 chars or whatever's appropriate for paragraphs.. and then
> it would ignore the wraplength value for stuff like URL's or source
> code snippets that benefit from long unbroken lines.
It may be possible to detect URL's but I don't know how you would detect
code or log-file output.
Perhaps it would be a solution to add a keybinding to enable/disable
wrapping?
# Han