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#39390: 28.0.50; prettify-symbols-mode confuses display when start/end faces are different Date: Mon, 17 Feb 2020 22:14:45 +0200 Message-ID: <831rqtm0ne.fsf@gnu.org> References: <3184164c-5d94-6cb3-aca4-338b710bf97f@thaumogen.net> <83eevcj4ar.fsf@gnu.org> <83blqgj285.fsf@gnu.org> <34ca60a0-3658-0e64-b16f-829d914d4b81@thaumogen.net> <837e14iynq.fsf@gnu.org> <27701089-4429-f345-6ecd-4f11d3124a8c@thaumogen.net> <8336bsiwe2.fsf@gnu.org> <83v9onhdq4.fsf@gnu.org> <83o8tymnlk.fsf@gnu.org> <83mu9imitt.fsf@gnu.org> <83lfp2mimd.fsf@gnu.org> <50e865ca-58f4-7111-65de-15be80741357@thaumogen.net> <83k14mmgcq.fsf@gnu.org> <87ftf931kw.fsf@gnu.org> <875zg5432t.fsf@gnu.org> <83blpxm89v.fsf@gnu.org> <834kvpm2zw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17276"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tsdh@gnu.org, 39390@debbugs.gnu.org To: Raphael 'kena' Poss Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 17 21:15:12 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 1j3mnP-0004MY-Sy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Feb 2020 21:15:11 +0100 Original-Received: from localhost ([::1]:52422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3mnO-0004Dy-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Feb 2020 15:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34085) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3mnH-0004DU-NL for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3mnG-00037Z-Pm for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3mnG-00037U-N6 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3mnG-0003js-Hq for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:15: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, 17 Feb 2020 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39390 X-GNU-PR-Package: emacs Original-Received: via spool by 39390-submit@debbugs.gnu.org id=B39390.158197048114331 (code B ref 39390); Mon, 17 Feb 2020 20:15:02 +0000 Original-Received: (at 39390) by debbugs.gnu.org; 17 Feb 2020 20:14:41 +0000 Original-Received: from localhost ([127.0.0.1]:39284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3mmv-0003j5-MD for submit@debbugs.gnu.org; Mon, 17 Feb 2020 15:14:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3mms-0003il-Oj for 39390@debbugs.gnu.org; Mon, 17 Feb 2020 15:14:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j3mmn-0002vB-JJ; Mon, 17 Feb 2020 15:14:33 -0500 Original-Received: from [176.228.60.248] (port=2108 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j3mml-0005wp-O6; Mon, 17 Feb 2020 15:14:32 -0500 In-reply-to: (message from Raphael 'kena' Poss on Mon, 17 Feb 2020 14:28:09 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176160 Archived-At: > Cc: tsdh@gnu.org, 39390@debbugs.gnu.org > From: Raphael 'kena' Poss > Date: Mon, 17 Feb 2020 14:28:09 -0500 > > > We are talking about 2 different things. I was talking about > > composing characters across face changes, whereas you were talking > > about handling invalid composition rules, such as the one you tried to > > use. > > Look there is nothing else that determines what is "valid" and "invalid" > than what the docs say and what emacs allow me to configure. At this > point neither the doc of `compose-region` nor its code prevent me from > using this configuration, so from the user's perspective (mine) the > configuration is valid -- and instead I find a bug in the redisplay code. > > If you want to hold a position that the configuration is invalid, Emacs > (or some function) needs to be first taught to refuse it. If someone wants to submit patches to detect that this is indeed invalid, those patches will be welcome. But I must note that it will not be easy, because compose-region _can_ accept strings, it just assigns special meaning to the string's characters, as described in the doc string. IOW, your string is "valid" by being a string, but "invalid" in that it causes incorrect display.