emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Paragraph direction in Org Mode (was: Slow/poor responsiveness in org fi


From: Eli Zaretskii
Subject: Paragraph direction in Org Mode (was: Slow/poor responsiveness in org files)
Date: Wed, 14 Sep 2011 18:34:21 +0300

> Date: Tue, 13 Sep 2011 01:51:41 -0400
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> > Date: Tue, 13 Sep 2011 00:36:25 -0400
> > From: Mathieu Boespflug <address@hidden>
> > Cc: address@hidden
> > 
> > > 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))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]