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#44521: 27.1; ivy.el breaks harfbuzz Arabic shaping Date: Mon, 09 Nov 2020 17:25:09 +0200 Message-ID: <834kly5z8q.fsf@gnu.org> References: <87tutz4yfq.fsf@brutus.matara> <83k0uv69zw.fsf@gnu.org> 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="16148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44521@debbugs.gnu.org To: thamer.mahmoud@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 16:26:33 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 1kc93w-00046m-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 16:26:32 +0100 Original-Received: from localhost ([::1]:44868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc93v-000814-MB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 10:26:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc93T-00080Y-6C for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 10:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kc93S-0003zM-T9 for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 10:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kc93S-00035E-Pv for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 10:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Nov 2020 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44521 X-GNU-PR-Package: emacs Original-Received: via spool by 44521-submit@debbugs.gnu.org id=B44521.160493551211762 (code B ref 44521); Mon, 09 Nov 2020 15:26:02 +0000 Original-Received: (at 44521) by debbugs.gnu.org; 9 Nov 2020 15:25:12 +0000 Original-Received: from localhost ([127.0.0.1]:35194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kc92e-00033e-4D for submit@debbugs.gnu.org; Mon, 09 Nov 2020 10:25:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kc92c-00033P-JV for 44521@debbugs.gnu.org; Mon, 09 Nov 2020 10:25:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45008) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc92X-0003Uy-Bc; Mon, 09 Nov 2020 10:25:05 -0500 Original-Received: from [176.228.60.248] (port=2578 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kc92W-0005pX-27; Mon, 09 Nov 2020 10:25:04 -0500 In-Reply-To: <83k0uv69zw.fsf@gnu.org> (message from Eli Zaretskii on Sun, 08 Nov 2020 19:20:35 +0200) 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:192932 Archived-At: > Date: Sun, 08 Nov 2020 19:20:35 +0200 > From: Eli Zaretskii > Cc: 44521@debbugs.gnu.org > > > From: Thamer Mahmoud > > Date: Sun, 08 Nov 2020 19:15:37 +0300 > > > > (progn > > (load-library "~/.emacs.d/elpa/ivy-0.13.0/ivy-overlay.el") > > (load-library "~/.emacs.d/elpa/ivy-0.13.0/colir.el") > > (load-library "~/.emacs.d/elpa/ivy-0.13.0/ivy.el") > > (ivy-mode t) > > (run-with-timer .5 nil 'set-input-method "arabic") > > (run-with-timer .5 nil 'insert "السلام عليكم") > > (execute-extended-command nil)) > > > > 2. While still in the minibuffer, type any Arabic letter. Note the > > AIN(ع) in "عليكم" changes shape from initial to final. > > > > This bug breaks shaping in most buffers, especially after using > > swiper.el (ivy-based isearch). > > I'm not familiar with ivy, but if it writes the text in the minibuffer > in several overlays, then the Arabic text will indeed become > disconnected and generally shaped incorrectly. > > I'll try to look into this, but to make this easier and more efficient > I'd appreciate a test case that is less complicated, preferably not > using ivy at all. Actually, it turned out that the reason is very clear, thanks for the recipe which made it so easy. So I've now fixed this on the emacs-27 branch for the upcoming Emacs 27.2.