From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66317: Project mode-line Date: Tue, 10 Oct 2023 14:46:49 +0300 Message-ID: <0d89af0c-070b-f681-7486-e923799c4c2e@gutov.dev> References: <86jzs4ntxb.fsf@mail.linkov.net> <86sf6r4omc.fsf@mail.linkov.net> <86jzs34mg6.fsf@mail.linkov.net> <83zg0z6062.fsf@gnu.org> <86il7mc3xr.fsf@mail.linkov.net> <867co29v1y.fsf@mail.linkov.net> <8634yjhbxq.fsf@mail.linkov.net> <86o7h7nex8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8163"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Eli Zaretskii , 66317@debbugs.gnu.org To: Juri Linkov , Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 10 13:48:09 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qqBDc-0001sl-Lj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Oct 2023 13:48:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqBDJ-0005rW-5g; Tue, 10 Oct 2023 07:47:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqBDB-0005qq-Lo for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 07:47:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqBDA-0006QR-Mn for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 07:47:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqBDV-0006JF-Ms for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 07:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Oct 2023 11:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66317 X-GNU-PR-Package: emacs Original-Received: via spool by 66317-submit@debbugs.gnu.org id=B66317.169693844124188 (code B ref 66317); Tue, 10 Oct 2023 11:48:01 +0000 Original-Received: (at 66317) by debbugs.gnu.org; 10 Oct 2023 11:47:21 +0000 Original-Received: from localhost ([127.0.0.1]:34161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBCq-0006I3-RX for submit@debbugs.gnu.org; Tue, 10 Oct 2023 07:47:21 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBCp-0006Hn-3g for 66317@debbugs.gnu.org; Tue, 10 Oct 2023 07:47:20 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C474C5C0236; Tue, 10 Oct 2023 07:46:52 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 10 Oct 2023 07:46:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1696938412; x=1697024812; bh=Zus7QM9m6nd8IWoyQTOBi2L5G6z6Y3pGAmY m42ifUoM=; b=vuVBa7zJw2ClMl0Y+TzaG8MUaCQPBl8SN0A0zbf2PMbfQ0v1IMr Yr0XAMWRH9odhRSbhk38GUvei2HwvdzNzKFnJbb2vkheBL3sn1Nm2I9/74/rSSQp zVSltzxRzxt699yWJPTA9CaMu4wGyzMT9ZweZPqt0/uPS6hBkC76fAQj1pFZf7O7 KMjYlD8JjNZ1K6ZGas79KXmidAu9xdmw9haq8pC/X1UqllkIYpLOjgOJ70u7VQ58 JQGhnXU/dHbSEd4asgtwkYQGnUPQuAcq0JIqUwvD2My9e3hiU/r3iWx2mvc14wPv RdgJOgcTSefJklhrwQM8FMUtvkj7n0bW5Mw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696938412; x=1697024812; bh=Zus7QM9m6nd8IWoyQTOBi2L5G6z6Y3pGAmY m42ifUoM=; b=kwcusBzU7HX26vSBnC860DQScvaMadvxTUEKbAwBfLpp1Z0XpIZ ZTbhqfIUDXj1AMHM4FKHdshqPEIDcyfbB24dQucfo8Xq9+bhOEo+Hi68Vs8uSgQa HcYrfDN+kVEM/eBe05ab1+f9aYc3ijDXQM69keOXhOT7Ibdj+yzh6gfJ9Vzwn1B/ +F88zFukMJ2ENZvU5WPFT8PqK892ocHqqei/qFceZkte6/8vz5drCtkJ59x4rThR 5BZBMMiB/XWyKB2lPWEeDRRg+VtCE7g6Ty/JVEyyIL8qL6oV2+YDoKujK3b2UQfs WACs/W/vzQwxkv5Ud1kNi2GM2ZOijD41xAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheehgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Oct 2023 07:46:51 -0400 (EDT) Content-Language: en-US In-Reply-To: <86o7h7nex8.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272199 Archived-At: On 10/10/2023 09:56, Juri Linkov wrote: >>>>> Thanks, I've tried this patch on top of Emacs master and it seems to >>>>> work well. One small suggestion is to consider giving the project name >>>>> in the mode line a dedicated face, so people/themes could customize its >>>>> appearance. (By default, it could just inherit from `default`.) >>>> Thanks for suggestion, will do on the second round after pushing the >>>> initial version. >>> I'm not yet sure whether better to add a new face or a new variable like >>> grep-hit-face and xref-num-matches-face that refers to the existing face. >>> Then it would be possible to set such variable e.g. to the face `vc-state-base` >>> that inherits from `default`. >> Personally I think a variable pointing to a face name is a somewhat >> redundant indirection, since customizing the face to inherit from some >> other face is just as easy as customizing the variable to point to a >> different face. But either way works, of course. > Probably adding a variable would be more suitable since currently > there are no faces defined in project.el at all. FWIW, I don't have a strong opinion.