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

> Date: Wed, 22 Sep 2010 05:58:25 +0300
> From: Thamer Mahmoud <thamer.mahmoud@gmail.com>
> Cc: 6998@debbugs.gnu.org
> 
> Note that both the crash and the bug (mentioned further below) were
> not reproducible on a virtual Windows XP.

I didn't see the crash yet, but the display bug you mention near the
end of your message is reproducible on my Windows XP box.  Thanks.

> To reproduce this crash:
> 
> 1. Open attached test case with: emacs -Q --eval "(setq-default bidi-display-reordering t)" wrap_crash.org
>    It should open in org-mode by default.
> 
> 2. Emacs _sometimes_ would render it like this:
> 
> * First...
>                            ...Second *
> 
>  If not, repeat step one until it does, or use something similar to
>  the command I provided in my last message, etc.

"Repeat step one" means invoking Emacs again from the command line?
Or killing the buffer and revisiting wrap_crash.org from the same
Emacs session?  If the former, it sounds strange that a new invocation
of Emacs would behave differently from the previous one (unless
there's an uninitialized variable somewhere...).

> As a side bug, if you position cursor on "* First" in the testcase
> then press [TAB] you will see that "* Second" gets deformed to:
> 
> d *...

This is related to the ellipsis that Org mode displays instead of
lines it hides.  If you type "M-x show-all RET", you will see the same
display bug.  I will work on fixing it, but in general, Org mode
should set bidi-paragraph-direction to `left-to-right' in all its
buffers, because using "* FOO" outlines with FOO in left-to-right
script assumes left-to-right paragraphs, and because Org mode does not
enforce an empty line before the "* FOO" lines, making them assume the
direction of the previous paragraph, which looks odd.





      reply	other threads:[~2010-09-22  8:51 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
2010-09-20 19:07       ` Eli Zaretskii
2010-09-22  2:58         ` Thamer Mahmoud
2010-09-22  8:51           ` Eli Zaretskii [this message]

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=83iq1yw492.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=6998@debbugs.gnu.org \
    --cc=thamer.mahmoud@gmail.com \
    /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).