From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Question about customising faces Date: Tue, 30 Aug 2022 08:44:53 +0200 Message-ID: <87pmgip69s.fsf@fastmail.fm> References: <871qszs2ku.fsf@fastmail.fm> <83wnarw61n.fsf@gnu.org> <878rn6u7gs.fsf@fastmail.fm> <83y1v6v4x0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.3; emacs 28.1.91 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 30 08:59:29 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 1oSvDc-0008uB-3K for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 08:59:29 +0200 Original-Received: from localhost ([::1]:49492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSvDb-0000dS-5C for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 02:59:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSvCT-0000cS-Tt for help-gnu-emacs@gnu.org; Tue, 30 Aug 2022 02:58:18 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSvCN-0006Jb-Qe; Tue, 30 Aug 2022 02:58:13 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CF6F55C010F; Tue, 30 Aug 2022 02:58:10 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 30 Aug 2022 02:58:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1661842690; x=1661929090; bh=j4vFojR+ht X43QKRzUEjEvM//4XUYxh9JiUu1yadcA8=; b=ABNdM4BCMqbSkiiqtFQmBqFiDc ZXNgHeDhc+8ULrzMZtoITrFB2mqWx432de75cY+YjasyLURlkxNHoYXQ5RIAJmaz RWYmWD8ujV1+w2WEpLYMK0aFCK/qXYzFOFYNM0xrsv8MoqFo3/rvnjXJQLRTmhUH iJLNRDb6dpI6anMhOSf0JxAxI/ErGln5WYpQBHyyUk2BBEvJyLBdEuc661ng2rtn +X5aD20vdkjMTbDb3nYAy7fDF1V+5c22ZtZqv8CLOD9N0lj0K2pZBeCYcqQFihqo eUs6NRwRzf6g+oxarGRONXh4M66cxoUUuFRxdIN8FaarFRL98uWUk2igE5yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661842690; x=1661929090; bh=j4vFojR+htX43QKRzUEjEvM//4XU Yxh9JiUu1yadcA8=; b=xA0IqLvrtWX2nlc3Rn2GCvhW9xRXC5RkQ4BMVQNj+FJc lm+FJlDdU8A/6gSaaG4pGincA1EbVsBDrwpel1haooeUhBu++CAblMu3r/XHi7Fv Ap/mBLS1FO3jf2DbYPW/qBW03Kuvw3wDCtTfzdKl9/XK71z7sAXq8okfMSdg4/vJ dNS+ZkoAm6WTj2BkCChp2VRnRtk7Km0B66mSS6Ft4uT7VIyEWBIyGDRqfWPPA1Lf sQTetnVywpsJSqwDnxpfxab7bIjUVZnxqxM1vgHt9gVTjFg71qv5dnAHkIaLSkgN if5S7po0b1tc7vj/JlZ0c4Ba/27CuzSQV+CK54ykjw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekvddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpeflohho shhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hmqeenucggtffrrghtthgvrhhnpefgiefhuddtteeljeehveekjedtffeuheffhffffeet ieetfeehtdektdeitdekffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Aug 2022 02:58:10 -0400 (EDT) In-reply-to: <83y1v6v4x0.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.25; envelope-from=joostkremers@fastmail.fm; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:139157 Archived-At: On Tue, Aug 30 2022, Eli Zaretskii wrote: >> From: Joost Kremers >> Cc: help-gnu-emacs@gnu.org >> Date: Mon, 29 Aug 2022 22:07:41 +0200 >> >> On Mon, Aug 29 2022, Eli Zaretskii wrote: >> > The call with FRAME nil should have been enough. And in my testing, >> > it is: it sets the attributes for both the first and the subsequent >> > frames. >> >> I just tried with emacs -Q, executing only those `set-face-attribute` calls >> and >> the problem persists. I need to execute both sets in order to get it to work. > > 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. - Now evaluate the other four calls to `set-face-attribute`: (set-face-attribute 'isearch t :background 'unspecified :foreground "#d33682") (set-face-attribute 'isearch-group-1 t :background "lightskyblue1" :foreground "#d33682") (set-face-attribute 'isearch-group-2 t :background "DarkSeaGreen1" :foreground "#d33682") (set-face-attribute 'lazy-highlight t :background 'unspecified :foreground 'unspecified :box "#d33682") - Create another frame with `C-x 5 2`. - Start isearch; now the faces in the newly created frame are what I expect them to be, i.e., the same as in the initial frame. Tested on Emacs 28.1. -- Joost Kremers Life has its moments