From: Eli Zaretskii <eliz@gnu.org>
To: Eshel Yaron <me@eshelyaron.com>
Cc: emacs-devel@gnu.org, trevor.m.murphy@gmail.com
Subject: Re: master a4014c058b5 1/2: Add new `header-line-active' and `header-line-inactive' faces
Date: Wed, 04 Dec 2024 15:45:01 +0200 [thread overview]
Message-ID: <86y10vzhnm.fsf@gnu.org> (raw)
In-Reply-To: <m1plm7vkyh.fsf@macbookpro.home> (message from Eshel Yaron on Wed, 04 Dec 2024 10:47:18 +0100)
> From: Eshel Yaron <me@eshelyaron.com>
> Cc: Trevor Murphy <trevor.m.murphy@gmail.com>
> Date: Wed, 04 Dec 2024 10:47:18 +0100
>
> > Add new `header-line-active' and `header-line-inactive' faces
> >
> > This is all intended to parallel the 'mode-line-active' and
> > 'mode-line-inactive' distinction.
> [...]
>
> This seems to introduce a regression, consider the following recipe:
>
> 1. emacs -Q
> 2. In the scratch buffer, evaluate:
> (setq header-line-format "foobar")
> (face-remap-add-relative 'header-line 'highlight)
> 3. Type C-x C-M-= or something similar to force updating the header
> line. The header line in the scratch buffer now shows "foobar" and
> uses the highlight face, as expected
> 4. Type C-x 4 b new RET to switch to another buffer in another window
> 5. In the new buffer evaluate (setq header-line-format "foobar")
> 6. Observe that the header line in the new buffer is also using the
> highlight face. That's unexpected!
> 7. Type C-x C-M-= while the new buffer is current
> 8. Observe that the header lines in both windows no longer have the
> highlight face. That's unexpected!
>
> Before, remapping the header-line face with face-remap-add-relative
> would only affect the current buffer, as expected. Now it seems like
> the face remapping "leaks" between buffers/windows somehow...
Thanks, this is being discussed in bug#73862. I will respond there.
Please in the future report bugs to the bug tracker, even if the bug
is in the development version of Emacs.
prev parent reply other threads:[~2024-12-04 13:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <173176622414.2711857.390137952858045982@vcs3.savannah.gnu.org>
[not found] ` <20241116141026.7FC37462447@vcs3.savannah.gnu.org>
2024-12-04 9:47 ` master a4014c058b5 1/2: Add new `header-line-active' and `header-line-inactive' faces Eshel Yaron
2024-12-04 13:45 ` Eli Zaretskii [this message]
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=86y10vzhnm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=me@eshelyaron.com \
--cc=trevor.m.murphy@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.