From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Automatic face setting based on contrast? Date: Fri, 08 Oct 2021 11:49:06 +1100 Message-ID: <87tuhswcfw.fsf@gmail.com> References: <87k0iub53g.fsf.ref@yahoo.com> <87k0iub53g.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 28.0.60 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 08 03:09:35 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 1mYeOF-0001IA-IF for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Oct 2021 03:09:35 +0200 Original-Received: from localhost ([::1]:41306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYeOD-0005PW-DY for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Oct 2021 21:09:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYeN7-0004ir-UR for emacs-devel@gnu.org; Thu, 07 Oct 2021 21:08:25 -0400 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:37632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYeN6-0005ih-EU for emacs-devel@gnu.org; Thu, 07 Oct 2021 21:08:25 -0400 Original-Received: by mail-pl1-x629.google.com with SMTP id n11so4665611plf.4 for ; Thu, 07 Oct 2021 18:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=v9EgA+H5DrELpNm6km49arC0HFFdTZjD5hdxJvnzYkg=; b=i4hRxSoISWU0+9P+W+UI9jZnYAg/Cqnpbhn1DXQckgE1bjp3N5ko96MIgJtFeJ4F2A ClfytVaMfmoB5h10Hm0A+gjd1ZDpn/29U/Up1HdR2d3CIHL5ugmJPC23tD4EAd1P3ilI g52TmapRI9PkkYfdgbua/W+m412tU8x/lhPGv/933tzUjzxoEwQFCX2ThWdfahPY9RzX S4KJFNuwiEh7+FgDKPr53WQQJjQpRHNg1Qyd5YtyySOV+S+0/3SSFtrWEVVeanGHYvgI OGLiQDW9TCtHrRL1Zx/Q5KKYTMuZKmYLNi949G1IK0yUlP/5aCGIq1dXLhCJ9f89nDRJ qYaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=v9EgA+H5DrELpNm6km49arC0HFFdTZjD5hdxJvnzYkg=; b=YjMP9ZAvaRgQfMUDIs1GP4dJUYtiJSIKMNg7+57aGZ+33HpoF1kK2WFBW2B7qV0Ku9 JUtOYAJgrQNlIJw0IjUmJIGMbIOcUl0bwOo4EOr/hCsICwhGybbvs7inbOBJm7a/RZda 6PoiHUdyF3xrs4+bmpuUTaSDvhKPvJ2Ao7WlXyKZRzthdwVFzcqSLRp5haRP4mLLONOg IN0EUWNquPAbYAil3e/PPqBVMgggcSdW3dL19osxpaOhfH986lrBHc3PonQqNk0ybHxC Qj4wYvpWLROzkLMdxD2lCICcHYXJLr877dMhtCn27v1vHz2XtjSJv9p6FLMTn1ItR9Pb 4UmA== X-Gm-Message-State: AOAM533iM/YZdnbK5m8uS24Ek3FIl6vFLETzWnEm/WIOuOfqwb7osyZn ZPi4dAzTLOF5h6QXvAYpY7lRVwrQk7I= X-Google-Smtp-Source: ABdhPJwmk/iLmTViadFZZIdKa6149Ik1tzr6xUQs9HrczNRdKB/ku5HfKYhErbAhhkfmmEsV+DF9dA== X-Received: by 2002:a17:90b:114:: with SMTP id p20mr9160285pjz.232.1633655302333; Thu, 07 Oct 2021 18:08:22 -0700 (PDT) Original-Received: from tim-desktop ([124.149.107.237]) by smtp.gmail.com with ESMTPSA id t8sm8914989pjt.39.2021.10.07.18.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 18:08:22 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:276534 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > Another idea is semantic faces. For example, instead of just having the > > face `info-title-1', we would have a general face `title1' that a face > > in a mode that implements headlines would inherit from. We obviously > > already have some semantic faces, like `font-lock-doc-face', but the > > concept could perhaps be developed. > > We already have quite a bit of this sort of inheritance, don't we? It > would be easy to install more; it's a matter of detail. 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. 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. 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).