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: Paragraph direction in Org Mode (was: Slow/poor responsiveness in org files) Date: Wed, 14 Sep 2011 18:34:21 +0300 Message-ID: <83k49bw32a.fsf@gnu.org> References: <87fwkzcg7d.fsf@gnu.org> <87r54j5426.fsf@gmail.com> <87ty9dylqo.fsf@altern.org> <83d3fyxa52.fsf@gnu.org> <83ty8hw3iu.fsf@gnu.org> <20110913043625.GA17869@santiago> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316014476 10339 80.91.229.12 (14 Sep 2011 15:34:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2011 15:34:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bastien Guerry Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 14 17:34:31 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 1R3rTq-0004q0-Rl for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2011 17:34:31 +0200 Original-Received: from localhost ([::1]:60391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3rTq-0004X6-CY for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2011 11:34:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3rTn-0004Wt-Am for emacs-devel@gnu.org; Wed, 14 Sep 2011 11:34:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3rTm-0007VM-BO for emacs-devel@gnu.org; Wed, 14 Sep 2011 11:34:27 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3rTh-0007Uq-QQ; Wed, 14 Sep 2011 11:34:21 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LRI00J00R7XTO00@a-mtaout20.012.net.il>; Wed, 14 Sep 2011 18:34:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.9.62]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRI00JDHR97EV50@a-mtaout20.012.net.il>; Wed, 14 Sep 2011 18:34:20 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:144026 Archived-At: > Date: Tue, 13 Sep 2011 01:51:41 -0400 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > Date: Tue, 13 Sep 2011 00:36:25 -0400 > > From: Mathieu Boespflug > > Cc: emacs-devel@gnu.org > > > > > I will propose to Org mode developers a change to set > > > bidi-paragraph-direction automatically on all Org buffers. > > > > Ok. Thank you for looking into this. However, does this mean it won't be > > possible to have R2L text in Org buffers? > > No, it doesn't mean that. It just means the display will start at the > left window boundary, even if the item includes R2L text. To > illustrate, you will see > > * foo > * bar > * OOF > * RAB > > (where "OOF" and "RAB" are R2L text typed as "FOO" and "BAR", > reordered into correct visual order), rather than > > * foo > * bar > OOF * > RAB * > > with the default (nil) setting of bidi-paragraph-direction. I think > the latter is ugly anyway. Bastien, As followup to this thread (and other similar discussions in the past), I propose the change below to org.el. Let me know if you want me to commit this to the Emacs trunk or wait for your next merge. Thanks. === modified file 'lisp/org/org.el' --- lisp/org/org.el 2011-09-02 16:38:40 +0000 +++ lisp/org/org.el 2011-09-14 15:30:49 +0000 @@ -4748,6 +4748,7 @@ The following commands are available: (org-set-local 'line-move-ignore-invisible t)) (org-set-local 'outline-regexp org-outline-regexp) (org-set-local 'outline-level 'org-outline-level) + (setq bidi-paragraph-direction 'left-to-right) (when (and org-ellipsis (fboundp 'set-display-table-slot) (boundp 'buffer-display-table) (fboundp 'make-glyph-code))