* Re: master a4014c058b5 1/2: Add new `header-line-active' and `header-line-inactive' faces
[not found] ` <20241116141026.7FC37462447@vcs3.savannah.gnu.org>
@ 2024-12-04 9:47 ` Eshel Yaron
2024-12-04 13:45 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Eshel Yaron @ 2024-12-04 9:47 UTC (permalink / raw)
To: emacs-devel; +Cc: Trevor Murphy
Hi,
Eli Zaretskii <eliz@gnu.org> writes:
> branch: master
> commit a4014c058b547d4f9c8c61c6737c85c2636fdb34
> Author: Trevor Murphy <trevor.m.murphy@gmail.com>
> Commit: Eli Zaretskii <eliz@gnu.org>
>
> 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...
Best regards,
Eshel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master a4014c058b5 1/2: Add new `header-line-active' and `header-line-inactive' faces
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
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-12-04 13:45 UTC (permalink / raw)
To: Eshel Yaron; +Cc: emacs-devel, trevor.m.murphy
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-04 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
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).