From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34226: Running (defface my-face-foo ...) just after emacs -Q creates a face whose face-id is 0 Date: Mon, 28 Jan 2019 17:26:14 +0200 Message-ID: <835zu84xd5.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171619"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34226@debbugs.gnu.org To: Eduardo Ochs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 16:27:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1go8oY-000iW0-45 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2019 16:27:10 +0100 Original-Received: from localhost ([127.0.0.1]:33697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1go8oX-0002fc-3j for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2019 10:27:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1go8oQ-0002fW-PA for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 10:27:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1go8oQ-0007rW-4n for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 10:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1go8oQ-0007rR-1d for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 10:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1go8oP-0006fi-Oz for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 10:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jan 2019 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34226 X-GNU-PR-Package: emacs Original-Received: via spool by 34226-submit@debbugs.gnu.org id=B34226.154868920425623 (code B ref 34226); Mon, 28 Jan 2019 15:27:01 +0000 Original-Received: (at 34226) by debbugs.gnu.org; 28 Jan 2019 15:26:44 +0000 Original-Received: from localhost ([127.0.0.1]:49289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go8o8-0006fD-1f for submit@debbugs.gnu.org; Mon, 28 Jan 2019 10:26:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go8o7-0006f1-7W for 34226@debbugs.gnu.org; Mon, 28 Jan 2019 10:26:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1go8nv-0007mQ-1l; Mon, 28 Jan 2019 10:26:34 -0500 Original-Received: from [176.228.60.248] (port=3822 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1go8nt-00014P-9U; Mon, 28 Jan 2019 10:26:30 -0500 In-reply-to: (message from Eduardo Ochs on Sun, 27 Jan 2019 19:42:32 -0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154843 Archived-At: > From: Eduardo Ochs > Date: Sun, 27 Jan 2019 19:42:32 -0200 > > In emacs from git the faces that are created in the .emacs receive bad > face-ids - in particular, the first one gets face-id 0, which is the > same as the face-id for the "default" face. > > I discovered this bug because the first face that my .emacs creates is > used to make "^O"s be displayed as red stars, and in git emacs these > red stars were not being displayed in red. > > The shell script below creates an elisp file - with some code in its > comments meant be executed by hand - and loads and edits that elisp > file from both emacs24 and emacs-27.0.50 with "-Q" to show the (bad) > behaviour that I was getting from my .emacs. Thanks for the easy test case. Should be fixed now.