unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thamer Mahmoud <thamer.mahmoud@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 6998@debbugs.gnu.org
Subject: bug#6998: 24.0.50; bidi: lines starting with neutral types have the wrong base direction?
Date: Mon, 20 Sep 2010 17:45:00 +0300	[thread overview]
Message-ID: <19607.29548.870306.576702@zemblan.newkuwait.org> (raw)
In-Reply-To: <83tylt4zoa.fsf@gnu.org>

Eli Zaretskii writes:
 > 
 > If you mean this example:
 > 
 > > * First
 > > [BLANK_LINE]
 > > ARABIC
 > > * Second
 > > 
 > > What I expect:
 > > 
 > > * First
 > > [BLANK_LINE]
 > >                                CIBARA
 > > * Second
 > > 
 > > What is shown in Emacs:
 > > 
 > > * First
 > > [BLANK_LINE]
 > >                                CIBARA
 > >                              Second *
 > 
 > Then it is also expected behavior: since there's no blank line between
 > "ARABIC" and "* Second", the latter is considered to belong to a
 > right-to-left paragraph, and rendered accordingly. 

Thanks for your comments, Eli.  I do mean the above example, as I can
see some inconsistent behavior when using org-mode.

It seems that Emacs _sometimes_ renders the above example in org-mode
as,

* First...
* Second

While in other invocations the same file is rendered as:

* First...
                             Second *

This behavior is not always reproducible. In X11, I have used the
following command to start 5 Emacs sessions with some having the first
rendering and others the second rendering:

i=5; while [ $i -gt 0 ] ; do ./emacs -Q --eval "(setq-default bidi-display-reordering t)" example2.org & let i=i-1; done;

I can also see a bug and a crash with the second rendering (and it got
me confused about how Emacs handles neutral types), so I wonder which
rendering should be considered as "correct"?

-- 
Thamer







  reply	other threads:[~2010-09-20 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08  8:39 bug#6998: 24.0.50; bidi: lines starting with neutral types have the wrong base direction? Thamer Mahmoud
2010-09-10 22:29 ` Thamer Mahmoud
2010-09-13 12:04   ` Eli Zaretskii
2010-09-20 14:45     ` Thamer Mahmoud [this message]
2010-09-20 19:07       ` Eli Zaretskii
2010-09-22  2:58         ` Thamer Mahmoud
2010-09-22  8:51           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19607.29548.870306.576702@zemblan.newkuwait.org \
    --to=thamer.mahmoud@gmail.com \
    --cc=6998@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).