From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Newsgroups: gmane.emacs.bugs Subject: bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive Date: Mon, 31 Jan 2022 17:07:25 -0300 Message-ID: References: <87ee4p9oyc.fsf@gnus.org> <878rux7ylf.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000938b6905d6e65760" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53629@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 31 21:53:49 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 1nEdgK-0007Jr-U7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 21:53:49 +0100 Original-Received: from localhost ([::1]:35374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEdgJ-0001Yb-Le for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 15:53:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEcz0-0006eg-LD for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 15:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEcz0-0004ub-7p for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 15:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEcyz-00028l-SR for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 15:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 20:09:01 +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.16436596918158 (code B ref 53629); Mon, 31 Jan 2022 20:09:01 +0000 Original-Received: (at 53629) by debbugs.gnu.org; 31 Jan 2022 20:08:11 +0000 Original-Received: from localhost ([127.0.0.1]:41036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEcyB-00027W-BM for submit@debbugs.gnu.org; Mon, 31 Jan 2022 15:08:11 -0500 Original-Received: from mail-vk1-f170.google.com ([209.85.221.170]:46934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEcy9-00027C-Aa for 53629@debbugs.gnu.org; Mon, 31 Jan 2022 15:08:10 -0500 Original-Received: by mail-vk1-f170.google.com with SMTP id z15so9015091vkp.13 for <53629@debbugs.gnu.org>; Mon, 31 Jan 2022 12:08:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5NUC38I3Ea5lvBBobZtEI0J4PlvKUkAgkUpytEVZZZU=; b=Y19VMlW86QofHE75DuTEVKc+ch3UuldJYbIFsSnbSp/x1URm1TcN2D0h7WQqBjwK/h vnNKTuaHiNAiTqjxxqTH1RapbSApzIzFQZag7o5hXRxUGhz9OKvEMtg3X7xLzFVsFhrn eECEL8HqrZEDVu2rM9DJS09RhCcsJfChyx8aSTQNvzxr5mD4a0rPZpvu8xspF1Dib1CE snJgTkMA2dxR1PSYXAwKkWpAdQYOmsSEoJLrDBR2ycgQcJ0mRogqNQY/2U0TwWpHD3L/ nJVrnZmlSp51+r3rqSZ/sWbI1RxF0/56mGXxBgaVAlkr7BFGuI466oZ5nIhVGh/JBA07 mEqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5NUC38I3Ea5lvBBobZtEI0J4PlvKUkAgkUpytEVZZZU=; b=u1P8XoErg4GXf3CZsYGxrgYRJ0qoICrWhLNXUCqL4cQUBK6sKLUDukGGmDoLcTGfJR mwA5nonOpsKmadJ4Vxr57b//EC94SldcLEYs4iDuSQBjKGkB8P9nMkh0gQYgtK49MnPU 7PHDrWHMGW5JNeGz6lieHTRtn2nAYgP4ByarwxgMfK9A9imSvsGRHlQd45Dbu07Bq3Ol 43P+MRwzdZkevOaKIAEuxad9y7mzea0neTQFWaTvPaGuX9rXH20xFT8kLkOsugdWXtiK BYvUqhRtftPiEx9/AtYyf+uuXfZQPTuHY3dlvyE9e+iK/ZiOdOZK5S8j9RmoKVsrJ16A Bp3A== X-Gm-Message-State: AOAM5324aIVmoKHKwbNvslnnIyTCOVH9IHbnBpXi+8Cd7Xdj+TICYyaR WmGl1JUTYT2K8fjiTiKC2/lmCB8+D2nIa0qLWWyCdtC4wJU= X-Google-Smtp-Source: ABdhPJwPtBSpgpTIgrWjuYJYviioFRr4ORRfeAqUT3zMH0Gs0U/Tp/8dasRlIfC7Ha2UOK5/hhf3+68NkZz4LaDl2l8= X-Received: by 2002:a05:6122:21a1:: with SMTP id j33mr8626306vkd.34.1643659683661; Mon, 31 Jan 2022 12:08:03 -0800 (PST) In-Reply-To: <878rux7ylf.fsf@gnus.org> 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:225727 Archived-At: --000000000000938b6905d6e65760 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I don't think I can. I've tried changing the face options, but I didn't find a way to customize it the way I want, with different backgrounds or font-weight. For example, I can't set the `mode-line-buffer-id` of `mode-line` face to have bold font and the `mode-line-inactive` to have a font without bold. 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. On Sun, Jan 30, 2022 at 5:33 PM Lars Ingebrigtsen wrote: > Jos=C3=A9 J=C3=BAnior writes: > > > Yes, it's exactly that. If I want to set a different background color > > for the `mode-line-buffer-id` when the buffer is inactive, I can't do > > it with the faces options of the `mode-line` group. > > Can't you achieve that by redefining `mode-line-buffer-id' to inherit > from mode-line-inactive with the proper shadowings? > > If that's not sufficient, you can alter > `mode-line-buffer-identification' to return whatever you wish, so I > don't think another face here is necessary. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --000000000000938b6905d6e65760 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I don't think I can. I've tried changing the = face options, but I didn't find a way to customize it the way I want, w= ith different backgrounds or font-weight. For example, I can't set the = `mode-line-buffer-id` of `mode-line` face to have bold font and the `mode-l= ine-inactive` to have a font without bold.

I&= #39;m not sure how I can customize the way I want with `mode-line-buffer-id= entification` 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/1= 0033/change-mode-line-buffer-id-face-for-inactive-windows - but I don&#= 39;t think there's a solution there.

On Sun, Jan 30, 2022 at 5:33 = PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Jo= s=C3=A9 J=C3=BAnior <jjnilton@gmail.com> writes:

> Yes, it's exactly that. If I want to set a different background co= lor
> for the `mode-line-buffer-id` when the buffer is inactive, I can't= do
> it with the faces options of the `mode-line` group.

Can't you achieve that by redefining `mode-line-buffer-id' to inher= it
from mode-line-inactive with the proper shadowings?

If that's not sufficient, you can alter
`mode-line-buffer-identification' to return whatever you wish, so I
don't think another face here is necessary.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--000000000000938b6905d6e65760--