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: Wed, 31 Aug 2022 05:25:36 +0300 Message-ID: <83bks1tahr.fsf@gnu.org> References: <871qszs2ku.fsf@fastmail.fm> <83wnarw61n.fsf@gnu.org> <878rn6u7gs.fsf@fastmail.fm> <83y1v6v4x0.fsf@gnu.org> <87pmgip69s.fsf@fastmail.fm> <83r10xu0xp.fsf@gnu.org> <83fshdtx02.fsf@gnu.org> <83edwxtwbj.fsf@gnu.org> <83czchtva6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 04:26:08 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 1oTDQd-0008ps-Ox for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 04:26:07 +0200 Original-Received: from localhost ([::1]:53730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTDQc-0006KK-Gt for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 22:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTDQB-0006K3-3N for help-gnu-emacs@gnu.org; Tue, 30 Aug 2022 22:25:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTDQ9-0001JK-7C; Tue, 30 Aug 2022 22:25:38 -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=os9C0buh1FzFiaD80Ji7jj0lFC8U6BtI35qWgGKD1kw=; b=HB3/+UueN36a ZgqCDJI+9jHmmLNt1YAxPk7x96ax2lCLxmv9dV44AHIngMzKF1g1+RfQ74g1SabsjwiCWaVSXXSS+ F5L6fueC4qjHuHKN6hMsiDykLRw/+ROJgwOCiYicswkR9e7ZJCwPOf2C6u961IswLVK3A2JVA/2iS MsDn6W5d30tuKuhPFC7PAcuQ9N4mWJkMLX5qobhSODDwgnFA+piGCFPOntJluvZO+ugX2evJwSM+u P5Jkzn55ca7vzpBpJpM1fYgR/rKqUjhvXvjCTGaJb4kaZgpIUYkU3uE9h5wstmIuChVnd0WgOUgG4 GCtTqGhZNCU7SHmdoMnXPw==; Original-Received: from [87.69.77.57] (port=1461 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 1oTDPk-0001Dc-0s; Tue, 30 Aug 2022 22:25:32 -0400 In-Reply-To: (message from Gregory Heytings on Tue, 30 Aug 2022 19:15:59 +0000) 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:139189 Archived-At: > Date: Tue, 30 Aug 2022 19:15:59 +0000 > From: Gregory Heytings > cc: help-gnu-emacs@gnu.org > > > Actually, nil is not valid as a color, but people still use it. > > > > See the discussion of bug#54156. > > > > I remember that discussion indeed. So according to what you said there > Joost should use > > (set-face-attribute 'isearch nil :background 'unspecified :foreground "#d33682") > (set-face-attribute 'isearch t :background 'unspecified :foreground "#d33682") > > What I don't understand is why the second call to set-face-attribute is > needed: here at least, the first call also affects future frames. According to the discussion there, if all the calls use 'unspecified, only the first one is needed. But if nil is used, something that people think they can do, both calls are needed.