all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "José Júnior" <jjnilton@gmail.com>
Cc: "53629@debbugs.gnu.org" <53629@debbugs.gnu.org>
Subject: bug#53629: [External] : bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive
Date: Mon, 31 Jan 2022 20:55:23 +0000	[thread overview]
Message-ID: <SJ0PR10MB548872D463763F3997552C6DF3259@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <CAGD2S5Xhb6Va=dWhQWiBjJMHkMqp1Z+L6C+TQNBC5acNV42TQw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

Yeah, that's the problem. If I change the setq-default to setq, and if you turn on the mode when a Dired window is selected, then the highlighting works there. I'll have to find a general fix. Thx.

Same thing with *info* windows.
I think it has to do with this (from `C-h v mode-line-buffer-identification'):

Mode line construct for identifying the buffer being displayed.
Its default value is ("%12b") with some text properties added.
Major modes that edit things other than ordinary files may change this
(e.g. Info, Dired,...)

I'll take a look later, when I get some time. Thanks for the report.

Hi José. No, I don't know why. I'll take a look (later). I confirm that I see the same thing. Dunno why Dired windows would be an exception.

I just noticed that the library doesn't seem to work on the dired buffer, on other buffers it does seem to work well. Do you know what could be the cause?

See library `modeline-win.el'.
Does it do what you're looking for?

It highlights the buffer name in the
mode-line for the selected window.

That is, whichever window is currently
selected, its buffer name in the mode
line is highlighted (using face
`mlw-mode-line-buffer-id-selected-window').

The code is here:
https://www.emacswiki.org/emacs/download/modeline-win.el<https://urldefense.com/v3/__https:/www.emacswiki.org/emacs/download/modeline-win.el__;!!ACWV5N9M2RV99hQ!fhaUnMpb2nBbq8z6sp8VIKwMVw95_ydxBOJpl_m_pSJiap2TsvVjfpOn0qMCjA_0$>
It's just a few lines of code.

[-- Attachment #2: Type: text/html, Size: 6357 bytes --]

  parent reply	other threads:[~2022-01-31 20:55 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 [this message]
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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB548872D463763F3997552C6DF3259@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=53629@debbugs.gnu.org \
    --cc=jjnilton@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.