From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Long lines and bidi [Was: Re: bug#13623: ...] Date: Fri, 08 Feb 2013 10:33:08 -0500 Message-ID: References: <877gmp5a04.fsf@ed.ac.uk> <83vca89izh.fsf@gnu.org> <5110906D.7020406@yandex.ru> <83fw1aac3d.fsf@gnu.org> <51120360.4060104@yandex.ru> <51127363.5030203@yandex.ru> <834nhp9u9j.fsf@gnu.org> <5114FEBB.8020201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360337608 16714 80.91.229.3 (8 Feb 2013 15:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2013 15:33:28 +0000 (UTC) Cc: Eli Zaretskii , Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 08 16:33:49 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3pxT-0002rd-At for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2013 16:33:47 +0100 Original-Received: from localhost ([::1]:57029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3pxA-0005Pl-FF for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2013 10:33:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3pwz-0005PI-F2 for emacs-devel@gnu.org; Fri, 08 Feb 2013 10:33:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3pwx-0004xw-Vz for emacs-devel@gnu.org; Fri, 08 Feb 2013 10:33:17 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3pwt-0004x2-1l; Fri, 08 Feb 2013 10:33:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFFpZnt/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="772788" Original-Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Feb 2013 10:33:09 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 562FC59042; Fri, 8 Feb 2013 10:33:08 -0500 (EST) In-Reply-To: <5114FEBB.8020201@yandex.ru> (Dmitry Antipov's message of "Fri, 08 Feb 2013 17:33:47 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156890 Archived-At: > So the first question is: is it feasible/possible/desirable to detect > that the buffer has no R2L text at all and automatically force > bidi-paragraph-direction to left-to-right and bidi-display-reordering > to nil? Would this speed things up by a constant factor, or would it actually remove an O(N) factor? I think a fix will need more than a constant factor speed up. Did you check both the truncate-lines=nil and the truncate-lines=t cases? I think that for the truncate-lines=t case, we won't be able to avoid the O(linelength) slowdown (but we should try and skip the non-displayed part of lines faster, especially when there's no `display/after/before-string' property). Stefan