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: Mon, 25 May 2020 22:23:41 +0300 Message-ID: <83r1v7vmwy.fsf@gnu.org> References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@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="58755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 25 21:24:15 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 1jdIhr-000FBT-J4 for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 21:24:15 +0200 Original-Received: from localhost ([::1]:34920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdIhq-00036I-Ly for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 15:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdIhQ-0002fS-LF for emacs-devel@gnu.org; Mon, 25 May 2020 15:23:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55259) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdIhQ-0004a3-CQ; Mon, 25 May 2020 15:23:48 -0400 Original-Received: from [176.228.60.248] (port=4474 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jdIhP-0004PC-QI; Mon, 25 May 2020 15:23:48 -0400 In-Reply-To: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> (message from Yuan Fu on Mon, 25 May 2020 14:13:04 -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:251384 Archived-At: > From: Yuan Fu > Date: Mon, 25 May 2020 14:13:04 -0400 > > Here is what I come up with: in redisplay code, instead of only checking for whitespace, check for a ‘no-wrap text-property, if the character has this property, don’t wrap before[1] this character (or maybe it can be the opposite, only wrap when the character has a ‘can-wrap property). And this text property is calculated and applied once. What are the use cases for such a feature? > Is checking text property is fast enough for redisplay? We do this all the time in the display code, so speed shouldn't be a problem.