From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: refill paragraph but visually (like visual-line-mode)? Date: Wed, 17 Oct 2018 17:52:20 +0200 Message-ID: <20181017155219.GA14612@Swift> References: <87y3azpn61.fsf@portable.galex-713.eu> <83zhvfs0a0.fsf@gnu.org> <87o9bsg7wt.fsf@portable.galex-713.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1539791472 7436 195.159.176.226 (17 Oct 2018 15:51:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 15:51:12 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: help-gnu-emacs@gnu.org To: "Garreau, Alexandre" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 17:51:08 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCo6F-0001oS-6Z for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 17:51:08 +0200 Original-Received: from localhost ([::1]:37796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCo8L-0000l9-HZ for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 11:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCo7i-0000i2-9i for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 11:52:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCo7g-0008Mn-ME for help-gnu-emacs@gnu.org; Wed, 17 Oct 2018 11:52:38 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:40089) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCo7W-0007xw-SM; Wed, 17 Oct 2018 11:52:28 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 913B821E0B; Wed, 17 Oct 2018 11:52:24 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 17 Oct 2018 11:52:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=C xs85IKa82F6/+sOh2Ov0p1JvqvqYOVG1XIZJTo+sww=; b=C+4Yh70EMHJZA636Z wTl3RzTBBNa7bZfTJzhUZ/svCHMh5oDu6xjNig+vRTOqaW9WMiZpWNEku3sjbA3o yu1KruMKaPrlHhtoYWRcczx2vZ5O6qyksQRkom3nNkn8xVco+CBRJz1ePsR/e5xG YPwgN0ESSKt5W/Y1kXn5rvSxh69zBn6liNQcam3hEb7zvNLIkEYYpwmnx0zKH6CE 342MtEqz64AGci95n2lly/feBYkytF7I+dZHDDA/TlCdua6Zj5Fi0aVhY6rXlLjc gJP4vn8KJtdBcMBfmGdHgZqZA7NeJZYHR99+U8fYyB65FghqxM+O5iBl8AI44c8/ aoC6w== 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=Cxs85IKa82F6/+sOh2Ov0p1JvqvqYOVG1XIZJTo+s ww=; b=h6kG1i1xe4cYD8OgoNdmA2QMyCU24+1LbyVmO+L7QldUV85lTHvWodV6k guqdI7zAaK9EUfGFuZa1T+XEsTuw9Rm6a2mXClbdgmj51QhMfwEUXGv2ekiv1ia4 QIZavjFYKhPbV0+EmXiq0KwZrLnpkOMO7p9BpUODHKPnu4sK1bjoR78Ter4xdaJC gnShXdU9jHgh3e/MUg8LUjzGa/e60d40F8vSSfAz7IRv27W4XxV/0lMY9CBPiGC5 4tTw8y3itll+nKednsqPnHBqZHP6n1ynuNFRKoG1JFNFYkTAON1YOfeSQY87Fsvu 8iKebE3Tl1yPfsd1JKjkPYdmbfU2Q== X-ME-Sender: X-ME-Proxy: Original-Received: from Swift (ipservice-092-209-075-240.092.209.pools.vodafone-ip.de [92.209.75.240]) by mail.messagingengine.com (Postfix) with ESMTPA id F4189E489B; Wed, 17 Oct 2018 11:52:22 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87o9bsg7wt.fsf@portable.galex-713.eu> X-Editor: Emacs of course! X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118306 Archived-At: On Wed, Oct 17, 2018 at 12:54:42PM +0200, Garreau, Alexandre wrote: > On 2018-10-15 at 18:21, Eli Zaretskii wrote: > > Such options don't exist. You need to keep in mind that > > visual-line-mode (or "word wrap", as this feature is known in the > > internals) is just a semi-kludgey hack: we tweak the line-continuation > > code to start the continuation line on whitespace characters. Other > > than that, it's still the same continuation line, and uses the same > > code to detect when it's time to wrap the line. And even this > > relatively simple tweak makes the line-wrapping code devilishly > > complicated and hard to wrap your head around. > > > > It is possible that making the wrap coordinate controllable by users > > is not too hard, but Someone™ should look at the relevant code and try > > making it happen. Maybe we will be lucky. > > > > Wanna try it? > > isn’t it what visual-fill-column-mode does? No, it does something very different to achieve basically the same effect. It simply widens the margins, which aren't used to display text, so the text area is reduced. Doing this in the line-wrapping code (i.e., make the wrap coordinate controllable by the user) might be the better way to implement it, because it should theoretically become possible to exclude certain parts of the buffer from wrapping, i.e., tables or source blocks in Org files. (I've had this request for visual-fill-column-mode once or twice, but it's simply not possible.) But if the line-wrapping code is already devilishly complicated, as Eli says, it's probably unlikely to happen... -- Joost Kremers Life has its moments