From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Line wrap reconsidered Date: Tue, 26 May 2020 22:59:15 +0300 Message-ID: <83k10ytqlo.fsf@gnu.org> References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <83r1v7vmwy.fsf@gnu.org> <87imgjpihp.fsf@localhost> <83k10yvjlx.fsf@gnu.org> <83v9kiu08d.fsf@gnu.org> <167B04CA-E2EE-4D5B-8C65-250B4666461F@gmail.com> <83r1v6ttg8.fsf@gnu.org> <588B0093-2AA8-4B3C-9B27-99EEDF919663@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="37881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, yantar92@gmail.com To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 26 22:00:06 2020 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 1jdfk5-0009jz-1v for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 22:00:05 +0200 Original-Received: from localhost ([::1]:36452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdfk4-0007Ya-2J for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 16:00:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdfjX-00078B-Hz for emacs-devel@gnu.org; Tue, 26 May 2020 15:59:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50975) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdfjW-00066Y-UR; Tue, 26 May 2020 15:59:30 -0400 Original-Received: from [176.228.60.248] (port=3763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jdfjU-0005kY-Rq; Tue, 26 May 2020 15:59:29 -0400 In-Reply-To: <588B0093-2AA8-4B3C-9B27-99EEDF919663@gmail.com> (message from Yuan Fu on Tue, 26 May 2020 15:10:17 -0400) 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:251475 Archived-At: > From: Yuan Fu > Date: Tue, 26 May 2020 15:10:17 -0400 > Cc: Stefan Monnier , > yantar92@gmail.com, > emacs-devel@gnu.org > > > Of course, there is: the major mode is the one that creates the table, > > doesn't it? So the mode knows where the table is. > > Yes, the major mode knows, but the redisplay code doesn’t. So presumably the major mode tells the redisplay code what to do (truncate or wrap) by adding text properties to the text. The major mode could do this using techniques similar to the old longlines.el package, for example.