[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adaptive-wrap
From: |
Spencer Baugh |
Subject: |
Re: adaptive-wrap |
Date: |
Mon, 07 Aug 2023 16:40:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Spencer Baugh <sbaugh@janestreet.com>
>> Date: Mon, 07 Aug 2023 12:01:51 -0400
>>
>> This would be nice in combination with some kind of dynamic
>> line-wrapping which simulates joining lines. Then comments would
>> appear as if they've been filled to the screen width, no matter what
>> the actual fill-column and screen width is. Which would be nice on
>> small displays.
>>
>> By dynamic word-wrapping I mean something which would display:
>>
>> foo foo foo foo foo foo foo
>> foo foo foo foo foo foo foo
>>
>> as
>>
>> foo foo foo foo foo
>> foo foo foo foo foo
>> foo foo foo foo
>>
>> on a 20-character width display. Instead of the default display
>> behavior:
>>
>> foo foo foo foo foo
>> foo foo
>> foo foo foo foo foo
>> foo foo
>
> Dynamic wrapping is incompatible with hard newlines. Don't use
> newlines except between paragraphs, and word-wrap we have in Emacs
> will do what you want.
But of course that is not the style used for comments in the Emacs
codebase (and most others); most programmers hard-wrap their text with
hard newlines to comply with line length limits.