From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#45264: 26.3; `face-remap-set-base' seems to be bugged Date: Tue, 15 Dec 2020 16:31:31 -0800 (PST) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6694"; mail-complaints-to="usenet@ciao.gmane.io" To: 45264@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 16 01:32:12 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 1kpKjj-0001bL-Lm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 01:32:11 +0100 Original-Received: from localhost ([::1]:35270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpKji-0008Ui-5n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 19:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpKja-0008TN-Dv for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 19:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpKja-0007Y2-5q for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 19:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpKja-00063o-2e for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 19:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Dec 2020 00:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45264 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160807870023263 (code B ref -1); Wed, 16 Dec 2020 00:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Dec 2020 00:31:40 +0000 Original-Received: from localhost ([127.0.0.1]:59474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpKjE-000638-7t for submit@debbugs.gnu.org; Tue, 15 Dec 2020 19:31:40 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpKjC-000631-DO for submit@debbugs.gnu.org; Tue, 15 Dec 2020 19:31:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpKjC-0008Sx-3k for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 19:31:38 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:37704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpKj9-0007X2-Kc for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 19:31:37 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BG0E238102090 for ; Wed, 16 Dec 2020 00:31:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=bKnueE7ywfvszfX4OxHz2f0iZ2cZn7X+m7L46K5mkqU=; b=o1+avGOmp8XDvBg9OLZk45BWoDxI0YI+LmcPNGxRS5WMh2jrs8wOmoN2JhsAPRByFxQU 70aquWrjK1qoo1Gt2Awti6aAjdbwd5WfK4socbD9qHjv0uBzD327rl/5OuMvit2CYCE5 HZLDJ/o7Jh38UHvJ1ej1hWq7N+GjUjQ4nWdBtAU3DD0oQCvokjUL9hf3bp8sPvFNtEbk SNC9QENQYUjb3VOjWQunbICweRdRfxM/IdnlHJE4gjHxwJNJN7+SahTtrlEEt795tfHu PtgakaFSJJH2HzyctUyLfwbtRU6BxEwxmQpffJ5cWTo2QMqLHYpbjRW9xaCGBvsYMCfY pw== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 35cntm5f0v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 16 Dec 2020 00:31:33 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BG0FEHT112997 for ; Wed, 16 Dec 2020 00:31:33 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 35d7enrwmg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Dec 2020 00:31:33 +0000 Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0BG0VW4q026306 for ; Wed, 16 Dec 2020 00:31:32 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9836 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012160000 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9836 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012160000 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:196193 Archived-At: See https://emacs.stackexchange.com/a/62301/105 (defface foo '((t (:background "red"))) "...") (face-remap-set-base 'font-lock-keyword-face 'foo) The &rest arg SPECS is `(foo)', which is, as required, a list of (one) face. But the code actually expects `foo' itself to be a list. It raises an error, because it sets SPECS to just `foo' and then tries to take the car of it. (while (and (consp specs) (not (null (car specs))) (null (cdr specs))) (setq specs (car specs))) ; <=3D=3D=3D=3D=3D=3D=3D=3D=3D (if (or (null specs) (and (eq (car specs) face) ; <=3D=3D=3D=3D=3D=3D=3D=3D=3D (null (cdr specs)))) Is there a doc bug (both manual and doc string)? Or is there a code bug? Or am I missing something? In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor `Microsoft Corp.', version 10.0.18362 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''