From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9571: 24.0.50; user option to turn off bidi, please Date: Sat, 24 Sep 2011 17:13:40 +0300 Message-ID: <8339fmt4dn.fsf@gnu.org> References: <87obybg01n.fsf@gmail.com> <834o03sgsu.fsf@gnu.org> <87d3erfrb5.fsf@gmail.com> <83wrczqxy4.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316873682 2340 80.91.229.12 (24 Sep 2011 14:14:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2011 14:14:42 +0000 (UTC) Cc: 9571@debbugs.gnu.org, stepnem@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 24 16:14:37 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1R7T00-0003MY-Il for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Sep 2011 16:14:36 +0200 Original-Received: from localhost ([::1]:44212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7Szz-00008y-Gt for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Sep 2011 10:14:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7Szw-00008e-M7 for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 10:14:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7Szu-0003qN-QX for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 10:14:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7Szu-0003qJ-HH for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 10:14:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R7T0Q-0008Qs-Gf for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2011 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9571 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 9571-submit@debbugs.gnu.org id=B9571.131687365832352 (code B ref 9571); Sat, 24 Sep 2011 14:15:02 +0000 Original-Received: (at 9571) by debbugs.gnu.org; 24 Sep 2011 14:14:18 +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 1R7Szi-0008Pl-2C for submit@debbugs.gnu.org; Sat, 24 Sep 2011 10:14:18 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R7Szf-0008Pb-8S for 9571@debbugs.gnu.org; Sat, 24 Sep 2011 10:14:16 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LS10020064YB800@a-mtaout22.012.net.il> for 9571@debbugs.gnu.org; Sat, 24 Sep 2011 17:13:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.8.215]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LS1001ID66SS6A0@a-mtaout22.012.net.il>; Sat, 24 Sep 2011 17:13:41 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Sep 2011 10:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51781 Archived-At: > Date: Sat, 24 Sep 2011 08:28:39 -0400 > From: Richard Stallman > CC: stepnem@gmail.com, 9571@debbugs.gnu.org > > Would this change in bidi_get_type suffice to implement non-bidi > display? (In addition, one needs to define the option > display-bidi-flag, etc.) > [...] > + if (NILP (Vdisplay_bidi_flag)) > + return default_type; > + No, this won't do what you want. default_type comes from this code: default_type = (bidi_type_t) XINT (CHAR_TABLE_REF (bidi_type_table, ch)); This accesses the table of bidirectional properties and extracts from there the bidirectional type of CH, the character we are interested in. The rest of the code deals with _overriding_ that type. For any R2L character, default_type is STRONG_R, and it will cause bidi.c to reorder it into visual order. What you want is to pretend that R2L characters get the type STRONG_L, which is the type reserved for letters in left-to-right scripts. But simply overwriting default_type with STRONG_L isn't right, either. That's because as long as we run the code in bidi.c unaltered, there are some characters whose bidirectional properties are still needed for the code to work: newlines, paragraph separators, line separators, and a few others. So my suggestion to have what you want is different, see my other mail. > If it is really as easy as this, why say no? I didn't say no to this suggestion, because it was never explicitly requested, from my POV. If you meant this from the beginning, then I'm sorry for my misunderstanding of what you meant. However, I'm quite sure I did understand the original request that started this, and it wasn't this.