From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.devel Subject: Re: Add some built-in faces for inheritance Date: Sun, 20 Sep 2020 09:21:37 -0400 Message-ID: References: <5a3685f0-a1dd-44f9-9e15-e8f1bc35ea57@default> <87h7rw7zxf.fsf@gmail.com> <213CCC9C-B9CB-453B-A9C9-A5D0FB4FDE4F@gmail.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="26978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:wZ4JGvI00cajlPg2+ManbmR8WLE= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 20 15:22:46 2020 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 1kJzIk-0006uE-6r for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 15:22:46 +0200 Original-Received: from localhost ([::1]:60144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJzIj-0002lF-8J for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Sep 2020 09:22:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJzHp-0001Xe-DI for emacs-devel@gnu.org; Sun, 20 Sep 2020 09:21:49 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:53676 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJzHn-0002iV-Vk for emacs-devel@gnu.org; Sun, 20 Sep 2020 09:21:49 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kJzHl-0005qX-3P for emacs-devel@gnu.org; Sun, 20 Sep 2020 15:21:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 06:28:40 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:256248 Archived-At: +1 on this idea. I always cringe a little when I see a package define faces with hardcoded color values. I think the majority (perhaps ~80%) should be inherited so that themes can work without having to declare every face in every package. A few ideas off the top of my head from setting faces long ago. - a label and value face that could be used for message headers (and their values), key/values in code, org properties, etc. - title, author, date - filename, directoryname, executable, symlink, url, - level-1 - level-10 to be used in message/gnus citations, outlines, html headings, org/markdown headings, regexp group highlights, symbol-overlay.el, etc. - enabled, disabled, emphasized for UI elements Perhaps there are a set of faces to be merged with others to support emphasis. In gnus headers, I want the header name in one color (label face above), the header value in another (value above), and I want to highlight the values of Subject and From. Perhaps those use title or author face, or perhaps they merge with emphasized face which does bold by default but could allow someone to change it to underline or a different background, etc. -- Howard