From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: GNU ELPA package proposal: visual-fill-column Date: Tue, 26 Oct 2021 19:10:04 +0200 Message-ID: <87mtmv65f2.fsf@fastmail.fm> References: <87k0i0w39l.fsf@fastmail.fm> <83cznsylyg.fsf@gnu.org> <83v91jyiop.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.6; emacs 27.2.50 Cc: emacs-devel@gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 26 19:53:17 2021 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 1mfQdP-0002QP-VK for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 19:53:17 +0200 Original-Received: from localhost ([::1]:58498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfQdO-00088J-Ts for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 13:53:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfQbd-0005L9-O8 for emacs-devel@gnu.org; Tue, 26 Oct 2021 13:51:25 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:38841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfQbZ-0003mb-0P; Tue, 26 Oct 2021 13:51:25 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 290EE3201C73; Tue, 26 Oct 2021 13:51:19 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 26 Oct 2021 13:51:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= S8uC4x0g0ifgF/AjTgB552wORnLvtrYpiyfV1ykhiYg=; b=Q1hzgZsLU9lWNf8u VpkS89HzPp/1afeqx6PQYm97eA4tlhOjVB5qKbYmSC8AuM9RPz7acx3qQOs8aYmT dcfjLwtkcJcGb2ViyKoWi26y+xO76/43pcEcNIxN3X1CXskA/DpnSuS1Xw/dG8Ja V1OUTfVwscD8YhwU6GrlsAZbtYXrrGUgnub6yMN+MnmURrcfXTHC+C6p0/NXSIx8 eyWboBHOlRS+fQK8hOcnfxrt2x8Y3w3Nr81jYbvEwQXdWxgnxvypvmgclxIgFw6u Ru1rd7Ay8Iun1T/afpxD4pBH1At/HXmPRwjRqHKA3piN8gwRIafPgjpDYiNxKOzt x+8c9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=S8uC4x0g0ifgF/AjTgB552wORnLvtrYpiyfV1ykhi Yg=; b=C7g20xZzazh+ksDfPu0ga40CZavUvUwM8fAZlF3QY1+WqFj5oYJ8jNhZv i5JxPk6q7Qi0VdKPfTQbrJcx/2XnLfHfe35PRCXqcwMAHz5dzXGlx0bbQ94oQ0Qr /PNIVBWYfNrqa9u0Acin6iAJ79JtfhmgblB6kQcokBTuZx4BqPHJXhjYfAjcQ7tA d4TpJmEMTUj+MWh7puibbTb0efrU3xfYi/sY7Ehzv/MAV2cauWGoLFZJ8wFfTiDZ nWt6eF8F56PD5sb3YORKqF+dUfXv0VY+HgyjUv9u3X55o8xt8nhwACdv0/322qWI WZb69iQhep6O+XDJjku/CwsV5lNxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefkedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtgfesthhqredttderjeenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvddvgfeghfdtiefhvedvvddtjefhleejveeltdelffev hfeijeekhfdutdffgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Oct 2021 13:51:17 -0400 (EDT) In-reply-to: <83v91jyiop.fsf@gnu.org> Received-SPF: pass client-ip=64.147.123.21; envelope-from=joostkremers@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:277908 Archived-At: On Tue, Oct 26 2021, Eli Zaretskii wrote: >> From: Daniel Mart=C3=ADn >> The functionality it offers is not the same. I believe this proposed >> visual-fill-column package is like visual-line-mode, but where the word >> wrap position is not the window edge, but the fill-column position. Yes, though it should be noted that it extends visual-line-mode, it does not replace it. What visual-fill-column does, essentially, is widen the margin = so that the text area is narrowed. And it does its best to make sure that the = right thing happens when the window width changes. >> If there is interest in the functionality it offers, it may make sense >> to see if it can be implemented in C, as an extension of either >> visual-line-mode or display-fill-column-indicator-mode. > > The former, obviously. yes, I think implementing this in display code > is the way to go. To be honest, I always thought that made more sense, as well. But since tha= t is clearly beyond my abilities, I decided to write it in Lisp. And although I = think it works fairly well, it's not without its problems and limitations. One limitation in particular comes to mind, which can perhaps be lifted in = a C implementation: since `visual-fill-column` achieves its effect by narrowing= the margin, it is not possible to disable word wrap for specific parts of the buffer. That would be very practical in some cases, however, for example in= Org tables, which normally shouldn't be wrapped. As to whether there is interest in this functionality: `visual-fill-column`= has about 380.000 downloads on Melpa. Nothing like dash or magit, obviously, but still. Admittedly, most of these probably result from the fact that `visual-fill-column` is a dependency of another package of mine, `writeroom-mode`, which has about 315.000 downloads. But `writeroom-mode` w= ould probably also benefit from a C implementation of the functionality offered = by `visual-fill-column`. --=20 Joost Kremers Life has its moments