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#12438: 24.2; emacs-24.2 bidi Hebrew switch introduces editing error Date: Fri, 14 Sep 2012 12:40:41 +0300 Message-ID: <83ehm5ueli.fsf@gnu.org> References: <83ipbhugj1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1347615688 17652 80.91.229.3 (14 Sep 2012 09:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 09:41:28 +0000 (UTC) Cc: 12438@debbugs.gnu.org To: jtowler@soncom.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 11:41:31 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCSOr-00026p-9X for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 11:41:25 +0200 Original-Received: from localhost ([::1]:59009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCSOn-00077I-JM for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 05:41:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCSOf-00074N-1s for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 05:41:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCSOY-00020J-J7 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 05:41:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCSOY-00020F-Fo for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 05:41:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCSPS-0003AW-Eb for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 05:42: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: Fri, 14 Sep 2012 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12438-submit@debbugs.gnu.org id=B12438.134761570912159 (code B ref 12438); Fri, 14 Sep 2012 09:42:02 +0000 Original-Received: (at 12438) by debbugs.gnu.org; 14 Sep 2012 09:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:33074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCSPE-0003A4-Ta for submit@debbugs.gnu.org; Fri, 14 Sep 2012 05:41:49 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46005) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCSPC-00039v-CK for 12438@debbugs.gnu.org; Fri, 14 Sep 2012 05:41:47 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MAC00A002SD2I00@a-mtaout22.012.net.il> for 12438@debbugs.gnu.org; Fri, 14 Sep 2012 12:40:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAC009FE2VDBWF0@a-mtaout22.012.net.il>; Fri, 14 Sep 2012 12:40:26 +0300 (IDT) In-reply-to: <83ipbhugj1.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64274 Archived-At: > Date: Fri, 14 Sep 2012 11:58:58 +0300 > From: Eli Zaretskii > Cc: 12438@debbugs.gnu.org >=20 > However, I cannot figure out what exactly is the problem you are > complaining about. What "editing error" did you find, and how to > reproduce it starting with "emacs -Q"? If you mean the seemingly strange arrangement of characters (marked with "^^^^") at the end of this line: [(z, =D7=96), (x, =D7=A1), (c, =D7=91), (v, =D7=94), (b, =D7=A0), (= n, =D7=9E), (m, =D7=A6), (, , =D7=AA ^^^^^^^^^^ then this is not a bug. This is how the Unicode standard prescribes to display the sequence of characters at the end of that line. Because the characters between =D7=A6 and =D7=AA are all "neutral", i= .e. have no strong directionality attribute, these two Hebrew characters, which are strong R2L characters, cause this entire run of characters betwee= n them be rendered as R2L text, which includes mirroring of '(' as ')'. In the other tuples on the above line, Latin characters, which are strong L2R characters, after the '(' that begins the next tuple prevent the text to be rendered as R2L. But in the last tuple, there's a space instead of a Latin character, and space has no strong directionality. If you want the end of that line be rendered as you expect, use the LRM character, like this: [(z, =D7=96), (x, =D7=A1), (c, =D7=91), (v, =D7=94), (b, =D7=A0), (= n, =D7=9E), (m, =D7=A6), (=E2=80=8E,, =D7=AA) ^ Here I inserted the LRM character (u+200E) before the comma, as marke= d by "^". LRM is a strong L2R character whose purpose is precisely to "fix" display of mixed L2R/R2L text in such cases. This character is displayed by Emacs as a thin space, which makes it almost invisible o= n display. (See "C-h v glyphless-char-display" for other options of displaying such characters.)