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.bugs Subject: bug#46973: 26.3; (elisp) `Face Remapping' Date: Sat, 13 Mar 2021 12:35:34 +0200 Message-ID: <83wnubibnt.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37189"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46973@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 13 11:36:19 2021 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 1lL1d4-0009ZT-0D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 11:36:18 +0100 Original-Received: from localhost ([::1]:41664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL1d2-0000rV-LR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 05:36:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL1cp-0000rH-OX for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 05:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lL1co-00023i-Bq for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 05:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lL1co-0005Lv-9d for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 05:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Mar 2021 10:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46973 X-GNU-PR-Package: emacs Original-Received: via spool by 46973-submit@debbugs.gnu.org id=B46973.161563173520528 (code B ref 46973); Sat, 13 Mar 2021 10:36:02 +0000 Original-Received: (at 46973) by debbugs.gnu.org; 13 Mar 2021 10:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:59124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL1cN-0005L1-0d for submit@debbugs.gnu.org; Sat, 13 Mar 2021 05:35:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL1cL-0005Kn-OE for 46973@debbugs.gnu.org; Sat, 13 Mar 2021 05:35:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60497) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL1cG-0001ed-3h; Sat, 13 Mar 2021 05:35:28 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1526 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lL1cF-0006KR-Bz; Sat, 13 Mar 2021 05:35:27 -0500 In-Reply-To: (message from Drew Adams on Sat, 6 Mar 2021 18:16:07 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:202251 Archived-At: > From: Drew Adams > Date: Sat, 6 Mar 2021 18:16:07 +0000 > > But if I do something like this, where SPECS (being a &rest arg) is the list `(variable-pitch)', which is a list of face names: > > (add-hook 'some-mode-hook > (lambda () > (face-remap-set-base 'default 'variable-pitch))) > > I get an error saying that `variable-pitch' isn't a list. > (And trying '(variable-pitch) instead gives the same error.) > > I'm probably missing something - what is it? Or is it possible that > `face-remap-set-base' has a different meaning of SPECS? The doc string of face-remap-set-base says: The remaining arguments, SPECS, specify the base of the remapping. Each one of SPECS should be either a face name or a property list of face attribute/value pairs, like in a ‘face’ text property.