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: Paragraph direction in Org Mode (was: Slow/poor responsiveness in org files) Date: Tue, 20 Sep 2011 18:02:59 +0300 Message-ID: <834o07tfx8.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> <83k49bw32a.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316531129 15902 80.91.229.12 (20 Sep 2011 15:05:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2011 15:05:29 +0000 (UTC) To: bzg@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 20 17:05:24 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 1R61sw-0008Pr-1H for ged-emacs-devel@m.gmane.org; Tue, 20 Sep 2011 17:05:22 +0200 Original-Received: from localhost ([::1]:36986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61sv-0007zB-Ck for ged-emacs-devel@m.gmane.org; Tue, 20 Sep 2011 11:05:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61so-0007yE-J0 for emacs-devel@gnu.org; Tue, 20 Sep 2011 11:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R61sg-0000fU-KQ for emacs-devel@gnu.org; Tue, 20 Sep 2011 11:05:14 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:34326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61sa-0000bf-8G; Tue, 20 Sep 2011 11:05:00 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LRT00B00TQMES00@a-mtaout21.012.net.il>; Tue, 20 Sep 2011 18:04:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.239.98]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRT00BJJTUN3FA0@a-mtaout21.012.net.il>; Tue, 20 Sep 2011 18:04:00 +0300 (IDT) In-reply-to: <83k49bw32a.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:144118 Archived-At: Ping! > Date: Wed, 14 Sep 2011 18:34:21 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > 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)) > > >