From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: redisplay - very long lines Date: Mon, 16 Feb 2009 21:27:14 +0200 Message-ID: References: <3FEE1ADD-7471-4EA4-AE55-9175C9218B6E@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234812448 19459 80.91.229.12 (16 Feb 2009 19:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2009 19:27:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 16 20:28:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZ98x-0000Pq-CH for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 20:28:39 +0100 Original-Received: from localhost ([127.0.0.1]:56755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ97d-0003CN-8G for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 14:27:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZ97Y-0003B5-QH for emacs-devel@gnu.org; Mon, 16 Feb 2009 14:27:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZ97X-0003AI-T5 for emacs-devel@gnu.org; Mon, 16 Feb 2009 14:27:12 -0500 Original-Received: from [199.232.76.173] (port=46843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ97X-0003A3-Nr for emacs-devel@gnu.org; Mon, 16 Feb 2009 14:27:11 -0500 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:53800) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZ97X-0001G1-BR for emacs-devel@gnu.org; Mon, 16 Feb 2009 14:27:11 -0500 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KF600100B7OLW00@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Mon, 16 Feb 2009 21:27:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.82.14]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KF600HRWBDOWG80@i_mtaout5.012.net.il>; Mon, 16 Feb 2009 21:27:25 +0200 (IST) In-reply-to: <3FEE1ADD-7471-4EA4-AE55-9175C9218B6E@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109110 Archived-At: > From: David Reitter > Date: Mon, 16 Feb 2009 08:44:23 -0500 > > The redisplay code seems to be unable to deal efficiently with very > long lines, that is, lines that go beyond the currently displayed > window. This is a known limitation of the Emacs display engine, but IIRC it has nothing to do with display margins. The same slowdown happens if your display is as wide as the longest line. > Would it be possible to add a termination condition in move_it_to to > stop after leaving the window vertically or horizontally (with > truncate-lines)? If we can tolerate an incorrect display, maybe. The invisible part of the line could in principle include characters and faces whose presence may have global effects on the rest of the displayed portion, such as faces that use larger fonts, to say nothing of inline images. But it's been a while since I last took a good look at display code, so perhaps I'm misremembering something, or maybe things changed.