From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Raphael 'kena' Poss Newsgroups: gmane.emacs.bugs Subject: bug#39390: 28.0.50; prettify-symbols-mode confuses display when start/end faces are different Date: Tue, 4 Feb 2020 23:07:07 +0100 Message-ID: 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="62429"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: 39390@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 04 23:08:19 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 1iz6Mk-000G71-If for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 23:08:19 +0100 Original-Received: from localhost ([::1]:38944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz6Mj-0005v3-Ei for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 17:08:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54310) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz6MX-0005ux-R5 for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 17:08:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz6MV-0001qT-Mm for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 17:08:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iz6MU-0001oM-EC for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 17:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iz6MT-0005S5-KT for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2020 17:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Raphael 'kena' Poss Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Feb 2020 22:08: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.158085403620903 (code B ref 39390); Tue, 04 Feb 2020 22:08:01 +0000 Original-Received: (at 39390) by debbugs.gnu.org; 4 Feb 2020 22:07:16 +0000 Original-Received: from localhost ([127.0.0.1]:44892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz6Lk-0005R4-BS for submit@debbugs.gnu.org; Tue, 04 Feb 2020 17:07:16 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:57487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iz6Li-0005Qr-3f for 39390@debbugs.gnu.org; Tue, 04 Feb 2020 17:07:14 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 0FBD521EEB; Tue, 4 Feb 2020 17:07:09 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 04 Feb 2020 17:07:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumogen.net; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=o 5iJ+gbhTDZ6DpFjH+yTt5EqQQukRW+3oaRjvg6ehJY=; b=DW+b6VIY1H4wkn9qR nZ6VBirlk9x6MWS5azQnn+lFQNOq51+2T2ErK3ZM3g1S4rdOfqhwiNL/an8OvahG 4aFoB/AiP0dG8ROViWZFxcoDokAeCVmwgB3bMRI/4eVW0y7jmCmuYocniZ6tJb9+ Y5feqHA1QdcAmTJxshFEJPndw7XfY0NGWbB/vYhiAOmulmebGAiDHMLWJUKjashm i/w2nBOsTZtseHpglSGAAZHd+9wu7yJ4apPPK/xLL7K6hZunXn3jwY86d68kkGsD LiF82KeANoXOVoavRiPZf32Js1L793NXfNCpjYsyLvH5oqmDLaQYFh0OkypxTrnx c2lZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=o5iJ+gbhTDZ6DpFjH+yTt5EqQQukRW+3oaRjvg6eh JY=; b=l7E+6uwsx/xTt3gZLGimBlNjpmPAEvDZ0RZ7ifr5zkvACoL4QEZoI24vZ BWcTUoQsxJsAqqSU+cR0E6xCRaLkA4DWxga/O52t7ONQl8QgraheHVVpmRWORscl u63yHk1OrmNU1v6ACtOsNk2yWxu3XYE2roxETBDaogZypaqWOuIH7UgPTISf1hnu pxd9CBca/qLfh3AoWek4XGn7nudnxQqj6D5elFVu6Pe7YNJekagAfTwjarHRYCCO 9wP+98lW9iZJC5/+z8vJJOLC076sMzkJnHaxFeERkukZhw5eZSn0Ogk1EeCzaRyi GfDH2XhbtY6VAw8feza1oqWR2ROrA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeelgdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrphhh rggvlhcukdhkvghnrgdkucfrohhsshcuoehknhiisehthhgruhhmohhgvghnrdhnvghtqe enucfkphepkeeirdekjedrudeliedrjeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehknhiisehthhgruhhmohhgvghnrdhnvght X-ME-Proxy: Original-Received: from [192.168.2.13] (ip5657c407.direct-adsl.nl [86.87.196.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 5AD753280064; Tue, 4 Feb 2020 17:07:08 -0500 (EST) Autocrypt: addr=knz@thaumogen.net; prefer-encrypt=mutual; keydata= mQSuBFN56cERDACePTTZjZwCCXm5d4VheFgjGYG9kY3FNlmGOP2UtwHnbhK5TIe+8GYjE+8R uNuf49+zvDFDtBgwGwi0WQndC/OOhRqg2OyTjNNJWtnvbpiwSGBI15acvL/7gLkZPHi4IR7q 6RnV+Uj76G8h0jyoLzkrdilvJe8xdkQ+zEPuqIxFRwr/Of2/fbt6icSiIpNvOKAD8xhNWWlF NW3QS4h4ug7v2ntrwZTam7I4W7GOubMhThZoCRWCVSN/V37yGOAvHdiaHb5cDdayQN3obH9c kpMTreichl6/0Gklx6OgGLjnRl7UeHSUa9VaINpbVPHZyye6KNCAYxF7ppCVfJOt6Xv+Wih9 F4G7D3nVlOxHeXUph+oqsiJXCX/niBPkb0NjQv0ZqDvEK6u/uZNSvM0y+1K64aE5oMdQd1EY DWZDWlBPcispKi6MQnRfw7PXrXGcuHJ5x5VbLRLOzMMyqP6XdJgcGwoMkH8HCdV+P8t8tc9+ En8diYj91GGPVQG542fB9asBALzvA44LMFPh0CmiJltaXXcp1VDUhyww7F/BBa6TW6OjC/4r 0xupaCFwIO74D1y4QuGwBZRrKFTxC0zyvtnKyAnNexpwDZFZmCuMxkZDAN0TcF5Slkr9k8SB 7rBGjkDfuHZ9YB1e8LQQMaYM4p743q6cQeGJ++YgaHQu/r4RulTICOeq1av0yYJ0i9gEZA6M OHKHvu0PxRD8jy3ybMdW2a8WYoHIL8Fg3BjWIV6gBkcYuwQYVLQCR8seMZl5+YafTLWU8YuF txDOXNWueeFbKALKb4 In-Reply-To: <83v9onhdq4.fsf@gnu.org> Content-Language: en-US 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:175677 Archived-At: 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): ;; 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)) ;; 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. ;; 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 -- Raphael 'kena' Poss