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: Sun, 16 Feb 2020 19:46:47 +0200 Message-ID: <83o8tymnlk.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Sun Feb 16 18:47:15 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 1j3O0h-000Lwd-Dy for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Feb 2020 18:47:15 +0100 Original-Received: from localhost ([::1]:34712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3O0g-0000tE-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Feb 2020 12:47:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51052) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3O0V-0000nQ-2h for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2020 12:47:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3O0U-0003N9-1B for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2020 12:47:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3O0T-0003Md-U4 for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2020 12:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3O0T-0002sV-SY for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2020 12:47: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, 16 Feb 2020 17:47:01 +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.158187520411040 (code B ref 39390); Sun, 16 Feb 2020 17:47:01 +0000 Original-Received: (at 39390) by debbugs.gnu.org; 16 Feb 2020 17:46:44 +0000 Original-Received: from localhost ([127.0.0.1]:37641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3O0B-0002rz-Sr for submit@debbugs.gnu.org; Sun, 16 Feb 2020 12:46:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3O0A-0002rn-By for 39390@debbugs.gnu.org; Sun, 16 Feb 2020 12:46:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j3O05-0001R0-3e; Sun, 16 Feb 2020 12:46:37 -0500 Original-Received: from [176.228.60.248] (port=4570 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j3O04-0006pd-3v; Sun, 16 Feb 2020 12:46:36 -0500 In-reply-to: (message from Raphael 'kena' Poss on Tue, 4 Feb 2020 23:07:07 +0100) 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:176118 Archived-At: > Cc: 39390@debbugs.gnu.org > From: Raphael 'kena' Poss > Date: Tue, 4 Feb 2020 23:07:07 +0100 > > On 03-02-2020 16:50, Eli Zaretskii wrote: > > Would it be possible for you to prepare a reproducing recipe, starting > > from "emacs -Q", and loading the minimum number of packages/features > > required to show the problem? > > Absolutely, there is not even a single package needed. The following > test file is sufficient to reproduce (run emacs -Q without argument then > copy/paste the entire text into the buffer before starting evaluation): Sorry for the delay, I finally got to looking into this. > ;; 1) evaluate the following: > (setq prettify-symbols-unprettify-at-point t) > (prettify-symbols-mode 1) > ;; 2) observe: the substitution produces (setq abc (λ () t)) as > ;; expected. > ;; 3) observe: moving the cursor in and out of the lambda signal > ;; expands the substitutions and back again. (so far so good) > (setq abc (lambda () t)) OK, I see that, too. > ;; 3) evaluate the following: > (push '("setq abc" . "@@") prettify-symbols-alist) > (prettify-symbols-mode 0) > (prettify-symbols-mode 1) > ;; 4) observe immediately: the substitution has produced (@@ (λ () t)) > ;; as expected. Here' I see (@@ (λ () t)) instead (only one @). > ;; 5) move the cursor into the line containing lambda, then around the > ;; substituted keyword then up and/or down. > ;; 6) observe: > ;; - the opening parenthesis between "@@" and "λ" is > ;; non-deterministically rendered > ;; - the second "@" is improperly cleaned up when moving the cursor > ;; "into" the substitution And I don't see any of these problems. Not sure if this is related to the fact that only one @ is displayed on my system, not 2. I tested this in today's master branch; could it be that your build is too old?