From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54219: 26.3; Bidi and empty parentheses Date: Thu, 03 Mar 2022 15:59:32 +0200 Message-ID: <83ee3jjfwb.fsf@gnu.org> References: <20220302052637.6312dd29@JRWUBU2> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7883"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54219-done@debbugs.gnu.org To: Richard Wordingham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 03 15:01:08 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPm0y-0001tH-Ji for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Mar 2022 15:01:08 +0100 Original-Received: from localhost ([::1]:42898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPm0x-0000kW-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Mar 2022 09:01:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPlzw-0000HT-Od for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2022 09:00:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPlzv-0001fx-Jm for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2022 09:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPlzv-0002Ra-I2 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2022 09:00:03 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2022 14:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 54219 X-GNU-PR-Package: emacs Mail-Followup-To: 54219@debbugs.gnu.org, eliz@gnu.org, richard.wordingham@ntlworld.com Original-Received: via spool by 54219-done@debbugs.gnu.org id=D54219.16463159839258 (code D ref 54219); Thu, 03 Mar 2022 14:00:03 +0000 Original-Received: (at 54219-done) by debbugs.gnu.org; 3 Mar 2022 13:59:43 +0000 Original-Received: from localhost ([127.0.0.1]:41825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPlzb-0002PF-1a for submit@debbugs.gnu.org; Thu, 03 Mar 2022 08:59:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPlzY-0002P3-Pq for 54219-done@debbugs.gnu.org; Thu, 03 Mar 2022 08:59:41 -0500 Original-Received: from [2001:470:142:3::e] (port=50754 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPlzS-0001Rc-Jz; Thu, 03 Mar 2022 08:59:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GFXl3NpdskHKmFQEGYN2voY3fF1EMsvQ85fohwDJLls=; b=hyz5dvM/+widWOICWdRt 2u+7bUHAfLKJryNvQBzaDFJKFoNomI0ne9mgZujjz20+jI8r5yJDZ7zfmij2dH3ds1slk6UtwK6cb bWnOfQpEQj/KODP0rjH+STWyqaFlrEKIxAFcYQhsbuxg/3wwqKIw9HLcprN3U7KWn5GBWOEC9pdbD 19EruN0YApkLKNdZLbu8iOXVNTdU7laMziPmnyyhk4A2inhIKnKSALWi+9srEByUeFNqP3YrSD7gb cT+RfNtKnwcGqie0zVRedcYXcHgQOR2Nadv0luBwveItS6Yc7C+RZ8R87gZGHtl2qrgQwo7peA8m+ y3SbYvMs5HyQ9Q==; Original-Received: from [87.69.77.57] (port=1902 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPlzR-0004uL-US; Thu, 03 Mar 2022 08:59:34 -0500 In-Reply-To: <20220302052637.6312dd29@JRWUBU2> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227935 Archived-At: > Date: Wed, 2 Mar 2022 05:26:37 +0000 > From: Richard Wordingham via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > ; Create a new buffer for general text, e.g. c.txt > C-x C-f c.txt RET > ; Enter RTL character > insert-char 644 RET > ; Enter rest of line > x()y > > --Problem-- > The result is that a flush-right line is produced that appears to read > > y()xل > > It should appear to read > > x()yل Thanks, fixed for the upcoming Emacs 28.1. > See https://corp.unicode.org/pipermail/unicode/2022-February/009984.html > and reply from Ken Whistler for confirmation that the observed > behaviour is wrong. Unfortunately, that reply didn't really help, because it didn't analyze the BPA details, which are crucial in this case. (If you set bidi-inhibit-bpa non-nil, the problem goes away.) It just provided the final output from Ken's program, which (as any other program) can have bugs. > For the usage that prompted this report, several work-arounds are > available, including defining end of line as a paragraph boundary. > The Emacs display in that usage is also rendered baffling by Bug #27525 > 'Line wrapping of bidi paragraphs'. Not sure what paragraph boundaries have to do with this. Sounds like an unrelated issue.