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#41454: 28.0.50; [".+" 0 font-shape-gstring] composition rule breaks paren highlighting Date: Fri, 22 May 2020 16:01:24 +0300 Message-ID: <83h7w82kez.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119847"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41454@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 22 15:02:13 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 1jc7JT-000UvP-H8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 May 2020 15:02:11 +0200 Original-Received: from localhost ([::1]:56828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc7JS-0004sH-HZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 May 2020 09:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc7JK-0004qU-Vw for bug-gnu-emacs@gnu.org; Fri, 22 May 2020 09:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc7JK-0001s2-Kj for bug-gnu-emacs@gnu.org; Fri, 22 May 2020 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jc7JK-0007Vd-H7 for bug-gnu-emacs@gnu.org; Fri, 22 May 2020 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 May 2020 13:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41454 X-GNU-PR-Package: emacs Original-Received: via spool by 41454-submit@debbugs.gnu.org id=B41454.159015251328847 (code B ref 41454); Fri, 22 May 2020 13:02:02 +0000 Original-Received: (at 41454) by debbugs.gnu.org; 22 May 2020 13:01:53 +0000 Original-Received: from localhost ([127.0.0.1]:58413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc7J9-0007VC-Mt for submit@debbugs.gnu.org; Fri, 22 May 2020 09:01:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc7It-0007Um-KR for 41454@debbugs.gnu.org; Fri, 22 May 2020 09:01:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47805) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc7Io-0001iR-2r; Fri, 22 May 2020 09:01:30 -0400 Original-Received: from [176.228.60.248] (port=3889 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jc7Ie-0007vB-TA; Fri, 22 May 2020 09:01:21 -0400 In-Reply-To: (message from Pip Cet on Fri, 22 May 2020 12:50:13 +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:180765 Archived-At: > From: Pip Cet > Date: Fri, 22 May 2020 12:50:13 +0000 > > There seems to be a general problem using such regexps in the > composition-function-table. Could be, because it's a very unusual thing to do. > If I evaluate this in emacs -Q (by placing point after it and hitting C-x C-e) > > (custom-set-faces > '(default ((t (:family "Libertinus Serif" :height 330))))) > (set-char-table-range composition-function-table t '([".+" 0 > font-shape-gstring])) > > the font correctly changes to a very large Libertinus font. I then hit > C-b C-d ) and the entire last line is highlighted, not just the > opening parenthesis. After the blink delay is over, the opening > parenthesis and the "s" following it are unhighlighted, but the rest > of the line is not. It stays like that permanently (screenshot > attached). I think this is expected, since you told Emacs all those characters are a single grapheme cluster. The regexps in composition-function-table should match only characters that are supposed to be composed.