From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41626: 28.0.50; activating mark breaks RTL shaping in etc/HELLO (auto-composition-mode) Date: Sun, 31 May 2020 17:46:03 +0300 Message-ID: <83d06kkvro.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41626@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 31 16:48:17 2020 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 1jfPG5-000XXZ-Ns for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 May 2020 16:48:17 +0200 Original-Received: from localhost ([::1]:38524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfPG4-00038T-QH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 May 2020 10:48:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfPEs-0002aR-2I for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 10:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfPEr-0006Wd-Os for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 10:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jfPEr-0005EK-LI for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 10:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 May 2020 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41626 X-GNU-PR-Package: emacs Original-Received: via spool by 41626-submit@debbugs.gnu.org id=B41626.159093637320051 (code B ref 41626); Sun, 31 May 2020 14:47:01 +0000 Original-Received: (at 41626) by debbugs.gnu.org; 31 May 2020 14:46:13 +0000 Original-Received: from localhost ([127.0.0.1]:33595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfPE4-0005DJ-Mp for submit@debbugs.gnu.org; Sun, 31 May 2020 10:46:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfPE2-0005D8-G4 for 41626@debbugs.gnu.org; Sun, 31 May 2020 10:46:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55238) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfPDx-0006O7-7D; Sun, 31 May 2020 10:46:05 -0400 Original-Received: from [176.228.60.248] (port=1170 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfPDw-000848-Gz; Sun, 31 May 2020 10:46:05 -0400 In-Reply-To: (message from Pip Cet on Sun, 31 May 2020 10:02:40 +0000) 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:181285 Archived-At: > From: Pip Cet > Date: Sun, 31 May 2020 10:02:40 +0000 > > Recipe: > start emacs -Q etc/HELLO > move point to character position 358 (ARABIC LETTER SEEN) > hit C-SPC to activate the mark > > Expected result: > mark is activated, no change to shaping > > Actual result: > The character at position 357 is no longer composed with the one at > position 358. (screenshot with-mark.png) whereas it was composed > before (screenshot without-mark.png) > > The same thing works fine in a separate buffer in an RTL paragraph. This is a known problem with how we handle character composition and faces when they intermix. At the time, my conclusion was that fixing this would be next to impossible without changing the way we handle the "stop position" during iteration through buffer text. Of course, I could be mistaken.