From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: adaptive-wrap Date: Tue, 08 Aug 2023 13:59:00 +0300 Message-ID: <83cyzxol57.fsf@gnu.org> References: <874jlc7ifu.fsf.ref@yahoo.com> <874jlc7ifu.fsf@yahoo.com> <83h6paol00.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29964"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 08 12:59:26 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTKQv-0007bi-W6 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Aug 2023 12:59:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTKQC-0008Ok-Fk; Tue, 08 Aug 2023 06:58:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTKQB-0008OV-5W for emacs-devel@gnu.org; Tue, 08 Aug 2023 06:58:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTKQA-00033g-N9; Tue, 08 Aug 2023 06:58:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=61hUqk5jyKYzODrLoZo0wS5btiZ+NOI86ibv+gPkMt4=; b=Lkhfbk5Zoc4J db8WN3KBvbE+JmeQbZTyEszktmndDFi0LVMX//FRE4wJO600DYXPmIfNeZMpIg6C/GBEV7Q/wGG1p Sip6Azy/s6XaHRnm2X+Cw4W8NL4ZETbsvjbuZC85Ra7gkiOV6ARXF04eox0qWBKQAy5AqBb3VHtQ6 NhQrXX0oiYgiMBdHkeoJ0sEhVixuIyDUZuN+pUGyz6unJWiCcuoKB6sKGuCcTVeF7qcQbX7ktXBHN xMln97PDn6vJ3MghWHqpF1SuuEF2CoDOUFK2riMhoAdc5/eQ70NYyJ69u/sxTAaPy8fkGagpwl34U EkheGHog3tmlmeNiGkHLbQ==; In-Reply-To: (message from Spencer Baugh on Mon, 07 Aug 2023 16:40:27 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308440 Archived-At: > From: Spencer Baugh > Date: Mon, 07 Aug 2023 16:40:27 -0400 > > Eli Zaretskii 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.