From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#39812: 26.1; face-remapping-alist is sometimes set to an unexpected value Date: Fri, 28 Feb 2020 08:15:03 +0100 Message-ID: <87h7zbrxmw.fsf@metalevel.at> References: <858sknajln.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 39812@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 28 08:16:52 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 1j7ZtE-000RdG-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 08:16:52 +0100 Original-Received: from localhost ([::1]:42602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7Zsa-00022Y-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 02:16:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32988) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7ZsS-00022F-DX for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 02:16:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7ZsQ-00056f-Gg for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 02:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7ZsQ-00056b-Dk for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 02:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7ZsQ-0004Cd-AE for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 02:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2020 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39812 X-GNU-PR-Package: emacs Original-Received: via spool by 39812-submit@debbugs.gnu.org id=B39812.158287410616086 (code B ref 39812); Fri, 28 Feb 2020 07:16:02 +0000 Original-Received: (at 39812) by debbugs.gnu.org; 28 Feb 2020 07:15:06 +0000 Original-Received: from localhost ([127.0.0.1]:60575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7ZrW-0004BM-Ie for submit@debbugs.gnu.org; Fri, 28 Feb 2020 02:15:06 -0500 Original-Received: from [78.47.144.35] (port=43610 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7ZrV-0004BE-39 for 39812@debbugs.gnu.org; Fri, 28 Feb 2020 02:15:05 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id C34A09E770; Fri, 28 Feb 2020 08:15:03 +0100 (CET) In-Reply-To: <858sknajln.fsf@gmail.com> (Noam Postavsky's message of "Thu, 27 Feb 2020 14:57:56 -0500") 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:176554 Archived-At: Noam Postavsky writes: > face-remap-add-relative destructively modifies the list value, so > setting face-remapping-alist to a quoted literal gives unexpected > results like this. Thank you for looking into this! Using copy-tree makes it work. However, I find it very unexpected that face remapping modifies a value that appears as a literal constant in my own code. Is it possible to make face remapping word without such destructive side-effects? Alternatively, would you please consider documenting how to work around this, for example at the place where the sample snippet is mentioned? Thank you and all the best! Markus