From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Elisp manual: Note that created faces cannot be removed. Date: Sat, 20 Jul 2019 18:37:15 +0000 Message-ID: <20190720183715.GC27030@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92309"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 20 20:37:24 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1houEV-000Nsb-3n for ged-emacs-devel@m.gmane.org; Sat, 20 Jul 2019 20:37:23 +0200 Original-Received: from localhost ([::1]:52460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1houET-0004Ur-EU for ged-emacs-devel@m.gmane.org; Sat, 20 Jul 2019 14:37:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54083) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1houER-0004Ul-8Z for emacs-devel@gnu.org; Sat, 20 Jul 2019 14:37:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1houEQ-00069f-9V for emacs-devel@gnu.org; Sat, 20 Jul 2019 14:37:19 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:25442 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1houEP-000692-UL for emacs-devel@gnu.org; Sat, 20 Jul 2019 14:37:18 -0400 Original-Received: (qmail 28580 invoked by uid 3782); 20 Jul 2019 17:44:51 -0000 Original-Received: from acm.muc.de (p2E5D5FE3.dip0.t-ipconnect.de [46.93.95.227]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 Jul 2019 19:44:51 +0200 Original-Received: (qmail 29985 invoked by uid 1000); 20 Jul 2019 18:37:15 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238748 Archived-At: Hello, Emacs. It transpires that once a face has been created by defface, it cannot then be removed. This is not mentioned in the Elisp manual, despite this non removeability being exceptionally rare in Emacs. So I propose the following patch, which is surely(?) uncontroversial: diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 276d60b21a..22b7eb0bd1 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -2476,6 +2476,9 @@ Defining Faces usual procedure is to define a face with @code{defface}, and then use its name directly. +Note that once you have defined a face with @code{defface}, you cannot +later remove this face except by restarting Emacs. + @defmac defface face spec doc [keyword value]@dots{} This macro declares @var{face} as a named face whose default face spec is given by @var{spec}. You should not quote the symbol @var{face}, . Is it too late to push this patch to Emacs 26, or does the rule about documentation changes being OK still hold? -- Alan Mackenzie (Nuremberg, Germany).