From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Question about customising faces Date: Tue, 30 Aug 2022 14:49:34 +0300 Message-ID: <83ler6uf1t.fsf@gnu.org> References: <871qszs2ku.fsf@fastmail.fm> <83wnarw61n.fsf@gnu.org> <878rn6u7gs.fsf@fastmail.fm> <83y1v6v4x0.fsf@gnu.org> <87pmgip69s.fsf@fastmail.fm> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23647"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 30 13:52:16 2022 Return-path: Envelope-to: geh-help-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 1oSzmx-00061C-U3 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 13:52:15 +0200 Original-Received: from localhost ([::1]:53368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSzmw-0000sa-Ig for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 07:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzk0-0000rW-DY for help-gnu-emacs@gnu.org; Tue, 30 Aug 2022 07:49:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzk0-000291-5a for help-gnu-emacs@gnu.org; Tue, 30 Aug 2022 07:49:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NR2E2HkObR5Ynj5JooeGA2iNYC7o0F2Vvp+XdZK1zOc=; b=fk4M6hpe9F7H u9i5FEFgQ/l5LVyS4V+7kEis+te0VBhm6LY2INm+IaqoexBMd43fEaKna6Thfc4hbVWuYvK90RrpZ BwLLDYQ86h93LoXN5yhjGBgw2dnZ+6hqlUm+QcY7zKvi77cB3tqkb20szLYLDwZzBpxf5tVqcD4Xf dt+BsmIKxJd8wqEBEuNRhHJB3HUZTWGktitJWknuQAGHFBxWcB/yrJafSVM5gccgZcnozpSM7Xl+m NXxQhg1u2k+NwW4vjjJJzJyyzLAGHyboJnmVXPxV8EAYgVgsvgIIEveTobG5x5b9xlVwMgQWLrwRS lvq3bFhTd/c5Ehy4ArhLSQ==; Original-Received: from [87.69.77.57] (port=3417 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzjy-0008Fp-W5 for help-gnu-emacs@gnu.org; Tue, 30 Aug 2022 07:49:11 -0400 In-Reply-To: <87pmgip69s.fsf@fastmail.fm> (message from Joost Kremers on Tue, 30 Aug 2022 08:44:53 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139159 Archived-At: > From: Joost Kremers > Cc: help-gnu-emacs@gnu.org > Date: Tue, 30 Aug 2022 08:44:53 +0200 > > > Please show a recipe, starting from "emacs -Q", to reproduce the issue. > > I do the following, starting from `emacs -Q`: > > - Evaluate the following `set-face-attribute` calls (with FRAME set to nil, no > use of `unspecified`): > > (set-face-attribute 'isearch nil :background nil :foreground "#d33682") > (set-face-attribute 'isearch-group-1 nil :background "lightskyblue1" :foreground "#d33682") > (set-face-attribute 'isearch-group-2 nil :background "DarkSeaGreen1" :foreground "#d33682") > (set-face-attribute 'lazy-highlight nil :background nil :foreground nil :box "#d33682") > > - Start isearch in any buffer and observe the changed faces. > > - Create a new frame with `C-x 5 2`. > > - Start isearch again and observe that the faces are a mix of old an new. Most > notably are the background colors, which I'm trying to set to nil but which > are present in the newly created frame. The same for the foreground of > lazy-highlight. The box of lazy-highlight does appear, though. Well, you should have said explicitly that the problem only happens with colors that you set to nil. If I missed that, I apologize for not spotting that important detail. What did you expect to happen as result of setting the color of a face to nil? And yes, for what (I think) you wanted to achieve, two calls that you show in the OP are really necessary.