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: Sun, 2 Feb 2020 21:26:32 +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> 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="96528"; 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 Sun Feb 02 21:27: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 1iyLpn-000OzY-DF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Feb 2020 21:27:11 +0100 Original-Received: from localhost ([::1]:59406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyLpm-0008EG-Eb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Feb 2020 15:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42292) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyLpf-0008Cq-Cv for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 15:27:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyLpe-00088T-Cy for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 15:27:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyLpe-00088P-9l for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 15:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyLpe-0001hs-6S for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 15:27:02 -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: Sun, 02 Feb 2020 20:27: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.15806752016527 (code B ref 39390); Sun, 02 Feb 2020 20:27:02 +0000 Original-Received: (at 39390) by debbugs.gnu.org; 2 Feb 2020 20:26:41 +0000 Original-Received: from localhost ([127.0.0.1]:40610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyLpI-0001hD-OZ for submit@debbugs.gnu.org; Sun, 02 Feb 2020 15:26:41 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyLpH-0001h0-6n for 39390@debbugs.gnu.org; Sun, 02 Feb 2020 15:26:39 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1B3FF21E95; Sun, 2 Feb 2020 15:26:34 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 02 Feb 2020 15:26:34 -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=n LdD8CHJeajKfJ8zeSeAjcZdXyQz0Ie1IV8UIvLkM7A=; b=it/jk/3TAYhNd9Nps up2ZEld5yEoqq6sSdWtwhPnWmjGekPtwmLm1xAVdNBwD9amEiBEzJG6HHG313dP2 rYGI2kNeP0eBSDppP2YVo1nkQC6d4Mk8GbudNMUUQuz3otr/NAj7D7V2uDQTDKqL olMsw8WkqNuFO3f0hwLKRLzg/y7ATvpOpDSnQUfSorIvNV7zwqLsIwzxwazFYLbG BA62LkVMqVoxpy3TmgMqWZiZIAqs+JlGP4oGKOvEVKQGI3+Wo6Y3gp3fhrBUTTCi HyruHwQSZwamQmHokl2aZFoeOw1utkkWtCLd7UF1g8UALKpVI0zeORNxeraeQkjm Oz21w== 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=nLdD8CHJeajKfJ8zeSeAjcZdXyQz0Ie1IV8UIvLkM 7A=; b=UEe6XJI3ZC3SX3ySPlwqUEwzDD0+PYSjftVnabbkVxj4dje4tmjuRXe23 EMquQw8cMkpDvuvg5PRWF862MAYWN5ZiuQzGLlqT0wL9l19vHlQbduGB4UFYJK/6 WwH8mC+XtIwA1/gfWI8oT1F33Pd0s+vbuypQ3U43sSvZbsehLILzCGBBBEn3EQAo +GSUvy00x/oaioiIPLQ9ZIvwpS6fX8vZFE+0Flq/FUVRTsHPni/JYoHHjIZM62IL YrkEldJ1nEWUEAiGR5beK/kLbW0NhHu4etLXRXy2tH3zOeshqRKxLtCAY1z1wrlB 7/cZVr4rKKqJJKmiz6pGUgXtTM3JA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgeehgddufeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrphhh rggvlhcukdhkvghnrgdkucfrohhsshcuoehknhiisehthhgruhhmohhgvghnrdhnvghtqe enucfkphepkeeirdekjedrudeliedrjeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehknhiisehthhgruhhmohhgvghnrdhnvght X-ME-Proxy: Original-Received: from [192.168.2.14] (ip5657c407.direct-adsl.nl [86.87.196.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 9855230600DC; Sun, 2 Feb 2020 15:26:33 -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: <8336bsiwe2.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:175613 Archived-At: All right, so I take from our conversation so far that I should add font-lock rules that ensure that the symbols that I am substituting have a common face as per font-lock before the substitution by prettify-symbols-mode takes place. I have tried this: (font-lock-add-keywords 'go-mode '(("func(" . font-lock-keyword-face))) (add-hook 'go-mode-hook (lambda () (push '("func(" . "λ(") prettify-symbols-alist))) I have checked manually (by first disabling my prettify-symbols-alist customization) that the font-lock customization indeed applies the same face to all occurences of "func(" in the source. However once the prettify-symbols substitution is active, the display becomes messed up again. Is it possible that this occurs because go-mode already pre-defines a rule to apply keyword-face to "func", before my additional rule kicks in? Do you reckon there is a way to remove the native rule defined by go-mode so that mine remains the only that parses "func"? -- Raphael 'kena' Poss