From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathieu Boespflug Newsgroups: gmane.emacs.devel Subject: Re: Slow/poor responsiveness in org files Date: Tue, 13 Sep 2011 00:22:26 +0000 (UTC) Message-ID: References: <87fwkzcg7d.fsf@gnu.org> <87r54j5426.fsf@gmail.com> <87ty9dylqo.fsf@altern.org> <83d3fyxa52.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1315873517 29234 80.91.229.12 (13 Sep 2011 00:25:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 00:25:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 13 02:25:13 2011 Return-path: Envelope-to: ged-emacs-devel@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 1R3GoL-0002Re-CX for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2011 02:25:13 +0200 Original-Received: from localhost ([::1]:54281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3GoK-0004tf-Pd for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 20:25:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3GoI-0004tF-Ck for emacs-devel@gnu.org; Mon, 12 Sep 2011 20:25:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3GoG-0007Wh-RJ for emacs-devel@gnu.org; Mon, 12 Sep 2011 20:25:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:33702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3GoG-0007WB-EU for emacs-devel@gnu.org; Mon, 12 Sep 2011 20:25:08 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R3GoE-0002QU-FD for emacs-devel@gnu.org; Tue, 13 Sep 2011 02:25:06 +0200 Original-Received: from modemcable051.118-160-184.mc.videotron.ca ([184.160.118.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Sep 2011 02:25:06 +0200 Original-Received: from mboes by modemcable051.118-160-184.mc.videotron.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Sep 2011 02:25:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 184.160.118.51 (Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:143953 Archived-At: Eli Zaretskii gnu.org> writes: > > > Date: Mon, 22 Aug 2011 10:52:49 +1000 > > From: Tim Cross gmail.com> > > Cc: emacs-devel gnu.org > > > > SOLVED! > > > > Adding the line > > > > (setq bidi-display-reordering nil) > > > > to my org-mode-hook has fixed the problem. Cursor movement and editing > > operations are now usable and the delays are gone. > > Please don't consider this a solution. bidi-display-reordering should > not slow down redisplay to a degree that makes Emacs unusable. And > setting bidi-display-reordering to nil means that R2L scripts cannot > be used in Org buffers, which is clearly unacceptable. I have experienced precisely the same behaviour in some of my org files. Here is a link to a large (redacted) org file that exhibits this problem: http://www.cs.mcgill.ca/~mboes/test.org With latest emacs 24, reading this file in org-mode is noticeably slower than in org-mode, even when all trees are folded. However that's behaviour I don't see with emacs -Q. What I do see even with emacs -Q is very slow cursor movement and editing after expanding the tree titled "LONG". You have to scroll down to near the end of that tree to see what I'm talking about. Navigating subsequent trees when the LONG tree is expanded is also slow. > . Does the slowdown go away after "M-x show-all RET"? The slowdown does indeed completely disappear appear this command. > . Does setting bidi-paragraph-direction to `left-to-right' eliminate > the slowdown? Yes. -- Mathieu