From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive Date: Wed, 02 Feb 2022 22:00:41 +0200 Organization: LINKOV.NET Message-ID: <86ee4lxcly.fsf@mail.linkov.net> References: <87ee4p9oyc.fsf@gnus.org> <878rux7ylf.fsf@gnus.org> <874k5hur34.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 53629@debbugs.gnu.org, =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 21:42:14 2022 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 1nFMSE-0003N5-GZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 21:42:14 +0100 Original-Received: from localhost ([::1]:56024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFMSB-0000oo-J1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 15:42:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFLsF-0003HY-7c for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2022 15:05:16 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFLsE-00043J-Km for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2022 15:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFLsE-0000OS-B7 for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2022 15:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Feb 2022 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53629-submit@debbugs.gnu.org id=B53629.16438322731470 (code B ref 53629); Wed, 02 Feb 2022 20:05:02 +0000 Original-Received: (at 53629) by debbugs.gnu.org; 2 Feb 2022 20:04:33 +0000 Original-Received: from localhost ([127.0.0.1]:53751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFLrk-0000Ne-Tg for submit@debbugs.gnu.org; Wed, 02 Feb 2022 15:04:33 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:46591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFLri-0000NP-8X for 53629@debbugs.gnu.org; Wed, 02 Feb 2022 15:04:31 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id C578440005; Wed, 2 Feb 2022 20:04:22 +0000 (UTC) In-Reply-To: <874k5hur34.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 02 Feb 2022 18:16:15 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:225830 Archived-At: >> I'm not sure how I can customize the way I want with >> `mode-line-buffer-identification` yet, so maybe that's why having another face to >> customize the inactive state still makes sense. I also found this discussion: >> https://emacs.stackexchange.com/questions/10033/change-mode-line-buffer-id-face-for-inactive-windows >> - but I don't think there's a solution there. > > No, there doesn't seem to be. I really thought there was a way to get > at whether the window we're making the buffer line for is selected or > not, but there doesn't seem to be? Anybody know? tab-line.el uses such trick: (face (if (eq buffer (window-buffer)) (if (eq (selected-window) (old-selected-window)) 'tab-line-tab-current 'tab-line-tab) 'tab-line-tab-inactive))