[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adaptive-wrap
From: |
Eli Zaretskii |
Subject: |
Re: adaptive-wrap |
Date: |
Tue, 08 Aug 2023 13:59:00 +0300 |
> From: Spencer Baugh <sbaugh@janestreet.com>
> Date: Mon, 07 Aug 2023 16:40:27 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > 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.
Then you should look for support measures, e.g., use display tables to
show newlines as space characters, and yet somehow(?) avoid doing that
for "real" newlines, where you do want to leave newlines alone. Once
you accomplish that, the word-wrap will do the rest, I think.