From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Automatic face setting based on contrast? Date: Fri, 08 Oct 2021 09:57:56 +0300 Message-ID: <837deoype3.fsf@gnu.org> References: <87k0iub53g.fsf.ref@yahoo.com> <87k0iub53g.fsf@yahoo.com> <87tuhswcfw.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25384"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 08 08:59:01 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mYjqP-0006RD-8t for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Oct 2021 08:59:01 +0200 Original-Received: from localhost ([::1]:36712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYjqO-0003Ny-1C for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Oct 2021 02:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYjph-0002iy-L7 for emacs-devel@gnu.org; Fri, 08 Oct 2021 02:58:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59196) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYjpg-0001St-Ee; Fri, 08 Oct 2021 02:58:16 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3195 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYjpe-0006go-9l; Fri, 08 Oct 2021 02:58:16 -0400 In-Reply-To: <87tuhswcfw.fsf@gmail.com> (message from Tim Cross on Fri, 08 Oct 2021 11:49:06 +1100) 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276540 Archived-At: > From: Tim Cross > Date: Fri, 08 Oct 2021 11:49:06 +1100 > > Over the years, I've seen a considerable growth in the number of faces > defined, which has made consistent definitions of themes somewhat > challenging. Running M-x list-display-faces on my system shows over 1100 > face definitions, which seems excessive. In "emacs -Q", I see only 114 faces in that display. > While many of these do use > inheritance, many don't. This is unfortunate. It would be great if all > modes which define faces by default inherit from one of the semantic > font lock faces, allowing basic theme definitions to be possible by just > tweaking the much smaller number of semantic faces and leaving tweaking > of mode specific derived faces to the user when desired. I think tweaking 100+ faces is not much easier than tweaking 1000. Both border on the impractical. > It would also be useful if there was some way of listing the defined > faces which showed which face they are derived/inherited from to make it > easier to see exactly what would be affected if you modify the 'parent' > face and which faces are not defined to inherit from one of the semantic > faces (and could be a possible candidate for redefining to inherit from > a semantic face). That sounds like a simple Grep job to me. Eventually, I don't think there's a good solution to color contrast that relies on manual tweaking of the faces.