From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive Date: Sat, 05 Feb 2022 08:52:46 +0100 Message-ID: <87a6f5da29.fsf@gnus.org> References: <87ee4p9oyc.fsf@gnus.org> <878rux7ylf.fsf@gnus.org> <874k5hur34.fsf@gnus.org> <86ee4lxcly.fsf@mail.linkov.net> <87fsozojw0.fsf@gnus.org> <148bcdf2-c9bf-1809-1f3d-9886f1a7cf80@gmx.at> <14975056-17a7-b3df-e562-ea6c095d1acf@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53629@debbugs.gnu.org, =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= , Juri Linkov To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 08:54:43 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 1nGFu7-0002w0-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 08:54:43 +0100 Original-Received: from localhost ([::1]:42784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGFu6-0000d4-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 02:54:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGFsU-0008F4-IJ for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGFsU-0008DI-8h for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGFsU-0003rf-6J for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 07:53: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.164404758114848 (code B ref 53629); Sat, 05 Feb 2022 07:53:02 +0000 Original-Received: (at 53629) by debbugs.gnu.org; 5 Feb 2022 07:53:01 +0000 Original-Received: from localhost ([127.0.0.1]:33661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGFsS-0003rP-Mg for submit@debbugs.gnu.org; Sat, 05 Feb 2022 02:53:00 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:42818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGFsQ-0003rA-O8 for 53629@debbugs.gnu.org; Sat, 05 Feb 2022 02:52:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Sa/3hwkn2FEIswTqZUkkZLyYkarjqwHZ7hE2OUwtnI0=; b=L0YRfCOPfObpNNgaQ09D/BB7CG Eq+Vj0RYDi7blxIlFH/fbsLz63UTZv40LBgrlTy5y6cEmV7Idn7deI4x4RdVSNOxX4aQrYR6JV1HB A/YK4ahmFR0qhR4f+G6Kzu4pb0gZtmH6yATxh3uu+dyG/XoasW/Ai/tVEGin8dz4q9gA=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGFsF-0005j9-Po; Sat, 05 Feb 2022 08:52:50 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUKDQstJyjdwq5b UU6XfnH////rkHIoAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YCBQczLfUs3q0AAAGwSURBVDjLhZQL kqQgDIbJ0gcgwgVEDgDiAVrg/mfaBAhOz87Upqq1zeefF6BS/zdQYH5yAxiDiP/4EZRCNIZFcEiI yEEq/cebJVBHzHTuYKtJDFL36AHitqs/AdmSNcoZGyUDGn07732L5a1eaFfq7dDZswUC6nwvcO6n H3YgP4kE0ZYJfHApz1iABv1jZd/n+69dnV9BlJrg1sPV+jXqp9hthu9XbkXGNDK3oQghuoH0iBSu NoVWGnn153pJyUlm73rw2gQcaWbpuUNuUliQ9G6lCKOwFarrr6eVHD8UD0jSyNP3yP/+AF9MwPYd 3L8BUZzfgYz3LL+BIGXNN2bjsM0h+jDGdUxBcX1UudCKNBbLmiNvqUqAYCO8UigswScCBFl3rLW9 rtDYlQe4XZSJ3D6QgiJlS6uSIwxgLuP8kTNFSplmbGkHzl2Sw+Z3Bkj+Gy8jwHlL60mR0IVa6zqI qG/VyuEb9dg2r1GqataAz3MsdgcRaN5IDTP1nW0BtdrASkdNWUtHMBul13YDascMOb1CPxH0owuj EqS7lRnKaUP20kcDPgFHYzPqB/v4wPwFIi9kW81k4vIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt MDItMDVUMDc6NTE6NDUrMDA6MDAZtZTsAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTA1VDA3 OjUxOjQ1KzAwOjAwaOgsUAAAAABJRU5ErkJggg== X-Now-Playing: Sandy Denny's _Like An Old Fashioned Waltz_: "Like An Old Fashioned Waltz" In-Reply-To: <14975056-17a7-b3df-e562-ea6c095d1acf@gmx.at> (martin rudalics's message of "Sat, 5 Feb 2022 08:47:13 +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:226052 Archived-At: martin rudalics writes: > I disregarded the useless complication that 'minibuffer-selected-window' > returns nil when the selected window is not a minibuffer window. Please > try the below. > > martin > > (defun my-buffer-identification (fmt) > (list (propertize > fmt > 'face (if (let ((window (selected-window))) > (or (eq window (old-selected-window)) > (and (minibuffer-window-active-p (minibuffer-window)) > (with-selected-window (minibuffer-window) > (eq window (minibuffer-selected-window)))))) Thanks; seems to work fine. Perhaps we should make this into a utility function and then document this technique in the manual in the mode line section? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no