From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.bugs Subject: bug#9218: 24.0.50; bidi-display-reordering slowdown Date: Mon, 01 Aug 2011 22:38:54 +0200 Message-ID: <87aabsuash.fsf@sophokles.streitblatt.de> References: <877h6xx96g.fsf@sophokles.streitblatt.de> <83livdartq.fsf@gnu.org> <83k4axare8.fsf@gnu.org> <87bow9vsc9.fsf@sophokles.streitblatt.de> <83hb60c47f.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312231193 32752 80.91.229.12 (1 Aug 2011 20:39:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2011 20:39:53 +0000 (UTC) Cc: 9218@debbugs.gnu.org, Florian Beck To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 01 22:39:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QnzH7-0003Rn-8F for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2011 22:39:45 +0200 Original-Received: from localhost ([::1]:44584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnzH6-0003zL-IF for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2011 16:39:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnzH2-0003z9-Oi for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:39:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QnzH1-0006F0-J0 for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:39:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnzH1-0006Ew-FG for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:39:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QnzHO-0005pE-Qh; Mon, 01 Aug 2011 16:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Florian Beck Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Aug 2011 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9218-submit@debbugs.gnu.org id=B9218.131223117022338 (code B ref 9218); Mon, 01 Aug 2011 20:40:02 +0000 Original-Received: (at 9218) by debbugs.gnu.org; 1 Aug 2011 20:39:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QnzGr-0005oF-W1 for submit@debbugs.gnu.org; Mon, 01 Aug 2011 16:39:30 -0400 Original-Received: from mo-p05-ob.rzone.de ([81.169.146.182]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QnzGo-0005o6-BB for 9218@debbugs.gnu.org; Mon, 01 Aug 2011 16:39:27 -0400 X-RZG-AUTH: :KmALZ0mpdbGonPxw7gDkop508XQjelhLxGYn4B74/iddlkME3ssvHN/NVn+dtQ6oeN6QE6KR+Yw= X-RZG-CLASS-ID: mo05 Original-Received: from flo-laptop (p54993F82.dip.t-dialin.net [84.153.63.130]) by smtp.strato.de (jimi mo20) (RZmta 26.2) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id z0429fn71Hs4Rf ; Mon, 1 Aug 2011 22:38:55 +0200 (MEST) In-Reply-To: <83hb60c47f.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Aug 2011 22:38:28 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 01 Aug 2011 16:40:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49771 Archived-At: Eli Zaretskii writes: >> From: Florian Beck >> Cc: abstraktion@t-online.de, 9218@debbugs.gnu.org >> Date: Mon, 01 Aug 2011 21:34:30 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> Does setting bidi-paragraph-direction to left-to-right solve the >> >> problem? >> > >> > I meant without resetting bidi-display-reordering to nil, of course. >>=20 >> The file opens just as fast as with bidi turned of, yes. Scrolling is >> still somewhat erratic: scrolling down takes 12s the first time > > By "scrolling down" you mean all the way to the end, or just one > screenful? `scroll-up-command' And `end-of-buffer' takes the same time (12s vs 1s). But it does not matter really. ANY command takes several seconds in that buffer, e.g. C-h k or C-x C-b =E2=80=93 whereas they are instantanious= with bidi turned off. In fact may even be slowed down because of fontification going on (it only is slow the first time). Other commands are reproduciable. Strange. C-h k is instantenious, but C-h k takes several seconds to complete. Happens also when selecting the other window (*Help*) with the mo= use or when running C-h k in the other window. Once the large buffer is no longer displayed in any window, the speed returns to normal (as in before bidi). > >> then, after `(beginning-of-buffer)' it only takes ~1s (as usual for >> that file). But I can live with that. >>=20 >> But that still requires me to set a per file variable. > > I think Org Mode should set bidi-paragraph-direction in all its > buffers. Can you see any disadvantages to such a solution? Personally, no. People writing right-to-left prose might, though. I just don't understand why it has to be that slow. I have paragraphs of reasonable length. Is it because of the folded display? (But then there are only some 6000 visible lines which should be fast in any case.) Org mode does quite a bit of fontification, i.e. it already parses the buffer. Is there a way for org mode to tell the display engine where a new paragraph should be considered, what is to be displayed RtL or LtR, etc? --=20 Florian Beck