From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thamer Mahmoud Newsgroups: gmane.emacs.bugs 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 Message-ID: <19607.29548.870306.576702@zemblan.newkuwait.org> References: <19591.19370.918828.700534@zemblan.newkuwait.org> <19594.45400.927788.599350@zemblan.newkuwait.org> <83tylt4zoa.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284995557 32276 80.91.229.12 (20 Sep 2010 15:12:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2010 15:12:37 +0000 (UTC) Cc: 6998@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 20 17:12:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxi2e-0002gf-7L for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Sep 2010 17:12:28 +0200 Original-Received: from localhost ([127.0.0.1]:56293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxi2d-0002Ev-Lk for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Sep 2010 11:12:27 -0400 Original-Received: from [140.186.70.92] (port=55899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxi17-0000bv-Ck for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 11:10:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxi15-0000cc-R4 for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 11:10:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52614) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxi15-0000cY-Pg for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 11:10:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oxhb7-00051c-QK; Mon, 20 Sep 2010 10:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thamer Mahmoud Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2010 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6998-submit@debbugs.gnu.org id=B6998.128499379219305 (code B ref 6998); Mon, 20 Sep 2010 14:44:01 +0000 Original-Received: (at 6998) by debbugs.gnu.org; 20 Sep 2010 14:43:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxhaK-00051K-0x for submit@debbugs.gnu.org; Mon, 20 Sep 2010 10:43:12 -0400 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxhaH-00051E-TO for 6998@debbugs.gnu.org; Mon, 20 Sep 2010 10:43:10 -0400 Original-Received: by wyi11 with SMTP id 11so4327040wyi.3 for <6998@debbugs.gnu.org>; Mon, 20 Sep 2010 07:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :mime-version:content-type:content-transfer-encoding:message-id:date :from:to:cc:in-reply-to:references:subject; bh=XjVnALSspyqZiKj0Vx5WlV7uBuYHNKhcngzKCxXHkcI=; b=LtzxHzEeccso3J9uMBRWsWVXME4FbTlCMr0HIfGr70hsChM7JA0hb89DXzrlurH/w9 z4LcBJmEtgNO1hSIuqD42VRMl7OrCWgED7Yxrie/txjX2xBU1LK0SnCpx3wikRqLE7z+ 1FZE9gdBhsHUduH7TIkAVILpyfPw0KYKLy2SA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-type:content-transfer-encoding:message-id:date :from:to:cc:in-reply-to:references:subject; b=LEmfwZGciudxcMO5VtFPtdZ3+n5njI9MmuYQFs1vM8Q/0neV7eeZUG9fWm6UIWCSRe V71SSYv5Rwz6eyCnTYsfCsE/XTaNxd6XXqUgg395BFCc0DEuVM/f0CjtBa+gEhTIxOYt IOA5+m23mYmI4UiyX+sFOSQxjVYo0/Q+IjC70= Original-Received: by 10.227.145.149 with SMTP id d21mr2009315wbv.149.1284993938842; Mon, 20 Sep 2010 07:45:38 -0700 (PDT) Original-Received: from matara.newkuwait.org ([89.203.6.209]) by mx.google.com with ESMTPS id e31sm6056626wbe.11.2010.09.20.07.45.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 20 Sep 2010 07:45:36 -0700 (PDT) Original-Received: from zemblan.newkuwait.org ([192.168.1.3]) by matara.newkuwait.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxhcb-0004XS-8H; Mon, 20 Sep 2010 17:45:33 +0300 Original-Received: from thamer by zemblan.newkuwait.org with local (Exim 4.72) (envelope-from ) id 1Oxhca-0008H1-Vv; Mon, 20 Sep 2010 17:45:32 +0300 In-Reply-To: <83tylt4zoa.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 20 Sep 2010 10:44:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40318 Archived-At: 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