From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#35076: [26.1] delete-face [FEATURE REQUEST] Date: Tue, 2 Apr 2019 08:03:56 -0700 (PDT) Message-ID: <9a27e857-1408-4b17-9b6e-a461c349aad0@default> References: <<20190402000403.rb3cb4b6tzqys4vy@E15-2016.optimum.net>> <<8336n0h3yp.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59780"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35076@debbugs.gnu.org To: Eli Zaretskii , Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 17:07:18 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 1hBL0O-000FNu-6M for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 17:07:16 +0200 Original-Received: from localhost ([127.0.0.1]:56798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBL0N-0008DM-5v for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 11:07:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBL0G-0008AH-BN for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 11:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBL0D-00025g-3x for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 11:07:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56141) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBL0A-00023b-6m for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 11:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBL09-000358-UN for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 11:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2019 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35076 X-GNU-PR-Package: emacs Original-Received: via spool by 35076-submit@debbugs.gnu.org id=B35076.155421757211785 (code B ref 35076); Tue, 02 Apr 2019 15:07:01 +0000 Original-Received: (at 35076) by debbugs.gnu.org; 2 Apr 2019 15:06:12 +0000 Original-Received: from localhost ([127.0.0.1]:41452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBKzM-000340-K5 for submit@debbugs.gnu.org; Tue, 02 Apr 2019 11:06:12 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:35904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBKzI-00033k-3L for 35076@debbugs.gnu.org; Tue, 02 Apr 2019 11:06:11 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x32ExHSQ166328; Tue, 2 Apr 2019 15:06:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=FiHCbgXAzYd4+Z532PnFtK96sSUXDblxpZSnv+wt5VQ=; b=h6qdrP0OhzFm1AR0gALsEnumInZw5vGkldskPk/3JHW0FewfIa5dJzYIw5ZnbUATIPhM tdrm/BM8s76ItvLCUuTSz09H7FnvXRE7QHTfH4krzR8QcRhr0dgS0EkW6XwHSGV/U74A EBsQ3D11K6jrHouH7d6YP5T78bLlDhEIBUNUOSM5unj3cDwBqFoj9uKUWLiAtmT9VJWs gBkCmT7OKNJ1QgQ/Fppv3STZe52/VHA86QYInfP2/g1V6hn67ED/nacyi93AGFBfYhZf EDBFFgg7+6bytw2KxAPppuo++rMjIZYdHWQy+J5zKq+cefJc/UJKcSMJUWOD05C9KTM7 aA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2rj0dngxdp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 02 Apr 2019 15:06:00 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x32F3URC091067; Tue, 2 Apr 2019 15:04:00 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2rm8f4j149-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 02 Apr 2019 15:03:59 +0000 Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x32F3vxA029799; Tue, 2 Apr 2019 15:03:58 GMT In-Reply-To: <<8336n0h3yp.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4822.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9215 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904020102 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9215 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904020102 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:157093 Archived-At: > > I don't see any command or recommended method for deleting a face. Is > > there one? Shouldn't there either be one, or a discussion about it in > > the documentation? >=20 > Maybe I'm missing something, but why would we need such a method? > What would be a practical use case where it's necessary to delete a > face (as opposed to simply leaving it alone and not using it)? >=20 > I'm asking because implementing this will not be trivial, what with > all the places where faces are recorded and cached, so we'd need a > good reason to do that. OTOH, Emacs already knows how to replace a > face when it is redefined, so it isn't like we waste memory here. I almost posted the same question. On reflection I thought that it can be helpful to users (and programs) not to have to have such "extra", unwanted, unused faces laying about, remaining in a session. How so? Mainly UI considerations. Useless choices for `M-x customize face' and other uses of `read-face-*'. Less noise in the output of `list-faces-display'. If there are enough such dead-weight faces then it also might affect performance slightly, depending on the use, but this isn't what I'd worry about. I can't speak for the OP, but the nuisance of having such faces linger as UI noise is one reason, I think Yes, users can redefine a face to just inherit from `default', but the above considerations still apply. I think it would be good if users could delete faces, just like they undefine or unbind keys or unintern symbols. How costly it might be to implement this feature is an counter consideration.