From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#58641: 29.0.50; cc-fonts signals void variable: font-lock-reference-face Date: Tue, 25 Oct 2022 13:43:21 +0000 Message-ID: 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="9874"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-cc-mode@gnu.org, 58641-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 25 15:44:57 2022 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 1onKEj-0002Pp-9z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Oct 2022 15:44:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onKDs-0001tm-Oj; Tue, 25 Oct 2022 09:44:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onKDr-0001tR-JN for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onKDr-0005YZ-CK for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onKDr-0001Ta-6z for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:44:03 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2022 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58641 X-GNU-PR-Package: emacs Mail-Followup-To: 58641@debbugs.gnu.org, acm@muc.de, monnier@iro.umontreal.ca Original-Received: via spool by 58641-done@debbugs.gnu.org id=D58641.16667054105588 (code D ref 58641); Tue, 25 Oct 2022 13:44:02 +0000 Original-Received: (at 58641-done) by debbugs.gnu.org; 25 Oct 2022 13:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:50739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onKDJ-0001S3-NW for submit@debbugs.gnu.org; Tue, 25 Oct 2022 09:43:29 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:27337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onKDH-0001Ro-WA for 58641-done@debbugs.gnu.org; Tue, 25 Oct 2022 09:43:28 -0400 Original-Received: (qmail 378 invoked by uid 3782); 25 Oct 2022 15:43:21 +0200 Original-Received: from acm.muc.de (p4fe15bed.dip0.t-ipconnect.de [79.225.91.237]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 25 Oct 2022 15:43:21 +0200 Original-Received: (qmail 21825 invoked by uid 1000); 25 Oct 2022 13:43:21 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246149 Archived-At: Hello, Stefan. On Tue, Oct 25, 2022 at 08:51:39 -0400, Stefan Monnier wrote: > Hi Alan, > >> If I start > >> % emacs -Q --eval '(make-face `font-lock-reference-face)' -l cc-fonts > >> I get the error: > >> defconst: Symbol’s value as variable is void: font-lock-reference-face > >> Something like the patch below seems in order. > > GRRRR! Yes, it is in order. A small point, perhaps, but we aim for > > perfection in CC Mode. ;-) > For the record, I bumped into the above because apparently one of the > many packages I have installed defines `font-lock-reference-face` > (probably some very old code that should be removed as well, but > I haven't tracked it down yet). Ah, so that was it. I've just committed a patch, and I'm closing the bug with this post. I didn't actually comment your comment about font-lock-constant-face, I amended the code instead. > Stefan -- Alan Mackenzie (Nuremberg, Germany).