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#68446: 29.1.90; Bidi right-to-left paragraphs missing text in Org mode Date: Sun, 14 Jan 2024 13:24:59 +0200 Message-ID: <834jfgf984.fsf@gnu.org> References: <93fcc2d3-f808-42d7-b31e-a88522986989@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68446@debbugs.gnu.org To: Thamer Mahmoud , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 14 12:27:08 2024 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 1rOydv-0008kW-5z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jan 2024 12:27:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOydK-0005rX-V2; Sun, 14 Jan 2024 06:26:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOyd3-0005py-Cu for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 06:26:15 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOycs-0008ET-R9 for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 06:26:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOycr-0007Tz-Nv for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 06:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jan 2024 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68446 X-GNU-PR-Package: emacs Original-Received: via spool by 68446-submit@debbugs.gnu.org id=B68446.170523153228707 (code B ref 68446); Sun, 14 Jan 2024 11:26:01 +0000 Original-Received: (at 68446) by debbugs.gnu.org; 14 Jan 2024 11:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:41788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOycO-0007Sw-5q for submit@debbugs.gnu.org; Sun, 14 Jan 2024 06:25:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOycL-0007Sf-92 for 68446@debbugs.gnu.org; Sun, 14 Jan 2024 06:25:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOycC-0007xH-Rs; Sun, 14 Jan 2024 06:25:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=piKTbSFnyvkqXldH7gPPgeSXm2j8U5sFDO6+MUL/yZQ=; b=S2WfQ+gW7wqo sOWI11ogLvG2/yPgw0k+SxFnr7MHYuCX3OI+3f+PZahXZPbRpWztMgUnnwz+kJnavC7wycmtfNApJ jAxL0wZzKBe2HV7B4VS3kA7pxicaaIRCvHamK2jc/VHjGNqgiKB7cFXESrKGI0Q8y0LERCm+ICVK1 P+0Yebj6880Z45O1mql5rm6IRFxMsXoqaf426wKfbv0pSpl1gOi/RmERYvMHCi6TlHsdVkes97oPY fEQl+G947d4ZbGQsbO7f/1GLhpHuLxtfbqsJvNC3E4W9EEDtbYrsSi0jy/hdXP3NmZWOW5nfNetSp iVd9U9qlhA5Jlq8hM9B/2w==; In-Reply-To: <93fcc2d3-f808-42d7-b31e-a88522986989@gmail.com> (message from Thamer Mahmoud on Sun, 14 Jan 2024 13:21:57 +0300) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278204 Archived-At: > From: Thamer Mahmoud > Date: Sun, 14 Jan 2024 13:21:57 +0300 > > 1. In emacs -Q, create an empty buffer with Org mode active and type: > > a [[link]] > > 2. Evaluate: (setq bidi-paragraph-direction 'right-to-left) > 3. Note the "a" and link are no longer visible. I think it's an Org bug: it should prevent bidi reordering inside the "[[link]]" string. For example, wrap the "[[link]]" thing in LRO..PDF bidi controls. Because without that, the brackets can be mirrored by bidi reordering and the BPA algorithm, and the link is no longer in the form that Org expects. The result is that the entire text becomes invisible. A work-around is to do one of the following: . insert one or more L2R characters after the "[[link]]", or . set bidi-inhibit-bpa to a non-nil value I don't see an Emacs bug here, surprising as it may sound. Lisp programs that depend on particular sequence of characters on display should be aware that bidi reordering can affect that. Adding Ihor to the discussion.