From: Lars Ingebrigtsen <larsi@gnus.org>
To: martin rudalics <rudalics@gmx.at>
Cc: 53629@debbugs.gnu.org, "José Júnior" <jjnilton@gmail.com>,
"Juri Linkov" <juri@linkov.net>
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 [thread overview]
Message-ID: <87a6f5da29.fsf@gnus.org> (raw)
In-Reply-To: <14975056-17a7-b3df-e562-ea6c095d1acf@gmx.at> (martin rudalics's message of "Sat, 5 Feb 2022 08:47:13 +0100")
martin rudalics <rudalics@gmx.at> 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
next prev parent reply other threads:[~2022-02-05 7:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-29 20:19 bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive José Júnior
2022-01-30 0:24 ` bug#53629: [External] : " Drew Adams
2022-01-30 16:46 ` José Júnior
2022-01-31 20:09 ` José Júnior
2022-01-31 20:38 ` Drew Adams
2022-01-31 20:49 ` Drew Adams
2022-01-31 20:55 ` Drew Adams
2022-01-30 16:18 ` Lars Ingebrigtsen
2022-01-30 16:48 ` José Júnior
2022-01-30 20:33 ` Lars Ingebrigtsen
2022-01-31 20:07 ` José Júnior
2022-02-02 17:16 ` Lars Ingebrigtsen
2022-02-02 20:00 ` Juri Linkov
2022-02-03 19:00 ` Lars Ingebrigtsen
2022-02-04 3:15 ` José Júnior
2022-02-04 9:58 ` martin rudalics
2022-02-05 2:03 ` José Júnior
2022-02-05 7:47 ` martin rudalics
2022-02-05 7:52 ` Lars Ingebrigtsen [this message]
2022-02-05 12:10 ` José Júnior
2022-02-05 21:46 ` Lars Ingebrigtsen
2022-02-05 22:11 ` José Júnior
2022-02-06 17:59 ` Juri Linkov
2022-02-06 22:48 ` Lars Ingebrigtsen
2022-02-08 11:48 ` José Júnior
2022-02-08 18:22 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6f5da29.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=53629@debbugs.gnu.org \
--cc=jjnilton@gmail.com \
--cc=juri@linkov.net \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).