unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59065: 28.2; Mapping default face affects extended faces
@ 2022-11-06  1:13 Al Haji-Ali
  2022-11-06  9:34 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Al Haji-Ali @ 2022-11-06  1:13 UTC (permalink / raw)
  To: 59065


I'll admit this "bug" is a convoluted one. I am noticing a weird behaviour where extended background colour to the whole window instead of a single line when a face a remapped.

To re-produce an example:

0. Run `emacs -Q`

1. Create a buffer with this content and ensure `org-mode` is on
------------------------------------------------------------
* One
#+begin_src emacs-lisp
#+end_src
* Two
#+begin_src emacs-lisp
#+end_src
------------------------------------------------------------

2. Call `org-narrow-to-subtree` on "One".

3. Change the face `org-block-end-line` to have an extended background on the end-line of the org-block

(set-face-attribute
   'org-block-end-line nil
   :extend t
   :background "#4e5079")

4. Create a any font remap like this trivial one

(face-remap-add-relative 'default 'default)

or even this one

(face-remap-add-relative
        'default
        '(:filtered (:window not-real-filter t) not-real-face)

5. Notice how the background colour on the last line of the narrowed buffer extends over the whole window instead of just the line.

Best regards,
-- Al





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#59065: 28.2; Mapping default face affects extended faces
  2022-11-06  1:13 bug#59065: 28.2; Mapping default face affects extended faces Al Haji-Ali
@ 2022-11-06  9:34 ` Eli Zaretskii
  2022-11-12 12:44   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2022-11-06  9:34 UTC (permalink / raw)
  To: Al Haji-Ali; +Cc: 59065

> From: Al Haji-Ali <abdo.haji.ali@gmail.com>
> Date: Sun, 06 Nov 2022 01:13:23 +0000
> 
> 0. Run `emacs -Q`
> 
> 1. Create a buffer with this content and ensure `org-mode` is on
> ------------------------------------------------------------
> * One
> #+begin_src emacs-lisp
> #+end_src
> * Two
> #+begin_src emacs-lisp
> #+end_src
> ------------------------------------------------------------
> 
> 2. Call `org-narrow-to-subtree` on "One".
> 
> 3. Change the face `org-block-end-line` to have an extended background on the end-line of the org-block
> 
> (set-face-attribute
>    'org-block-end-line nil
>    :extend t
>    :background "#4e5079")
> 
> 4. Create a any font remap like this trivial one
> 
> (face-remap-add-relative 'default 'default)
> 
> or even this one
> 
> (face-remap-add-relative
>         'default
>         '(:filtered (:window not-real-filter t) not-real-face)
> 
> 5. Notice how the background colour on the last line of the narrowed buffer extends over the whole window instead of just the line.

Thanks, should be fixed now (on the master branch).





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#59065: 28.2; Mapping default face affects extended faces
  2022-11-06  9:34 ` Eli Zaretskii
@ 2022-11-12 12:44   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2022-11-12 12:44 UTC (permalink / raw)
  To: abdo.haji.ali; +Cc: 59065-done

> Cc: 59065@debbugs.gnu.org
> Date: Sun, 06 Nov 2022 11:34:51 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Al Haji-Ali <abdo.haji.ali@gmail.com>
> > Date: Sun, 06 Nov 2022 01:13:23 +0000
> > 
> > 0. Run `emacs -Q`
> > 
> > 1. Create a buffer with this content and ensure `org-mode` is on
> > ------------------------------------------------------------
> > * One
> > #+begin_src emacs-lisp
> > #+end_src
> > * Two
> > #+begin_src emacs-lisp
> > #+end_src
> > ------------------------------------------------------------
> > 
> > 2. Call `org-narrow-to-subtree` on "One".
> > 
> > 3. Change the face `org-block-end-line` to have an extended background on the end-line of the org-block
> > 
> > (set-face-attribute
> >    'org-block-end-line nil
> >    :extend t
> >    :background "#4e5079")
> > 
> > 4. Create a any font remap like this trivial one
> > 
> > (face-remap-add-relative 'default 'default)
> > 
> > or even this one
> > 
> > (face-remap-add-relative
> >         'default
> >         '(:filtered (:window not-real-filter t) not-real-face)
> > 
> > 5. Notice how the background colour on the last line of the narrowed buffer extends over the whole window instead of just the line.
> 
> Thanks, should be fixed now (on the master branch).

No further comments, so I will assume the bug is indeed fixed, and
close the bug as fixed.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-12 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06  1:13 bug#59065: 28.2; Mapping default face affects extended faces Al Haji-Ali
2022-11-06  9:34 ` Eli Zaretskii
2022-11-12 12:44   ` 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).