GNU bug report logs - #59065
28.2; Mapping default face affects extended faces

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Sun, 6 Nov 2022 01:14:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59065 in the body.
You can then email your comments to 59065 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59065; Package emacs. (Sun, 06 Nov 2022 01:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Al Haji-Ali <abdo.haji.ali <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Nov 2022 01:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; Mapping default face affects extended faces
Date: Sun, 06 Nov 2022 01:13:23 +0000
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59065; Package emacs. (Sun, 06 Nov 2022 09:36:02 GMT) Full text and rfc822 format available.

Message #8 received at 59065 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Cc: 59065 <at> debbugs.gnu.org
Subject: Re: bug#59065: 28.2; Mapping default face affects extended faces
Date: Sun, 06 Nov 2022 11:34:51 +0200
> From: Al Haji-Ali <abdo.haji.ali <at> 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).




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 12 Nov 2022 12:45:02 GMT) Full text and rfc822 format available.

Notification sent to Al Haji-Ali <abdo.haji.ali <at> gmail.com>:
bug acknowledged by developer. (Sat, 12 Nov 2022 12:45:02 GMT) Full text and rfc822 format available.

Message #13 received at 59065-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: abdo.haji.ali <at> gmail.com
Cc: 59065-done <at> debbugs.gnu.org
Subject: Re: bug#59065: 28.2; Mapping default face affects extended faces
Date: Sat, 12 Nov 2022 14:44:38 +0200
> Cc: 59065 <at> debbugs.gnu.org
> Date: Sun, 06 Nov 2022 11:34:51 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Al Haji-Ali <abdo.haji.ali <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Dec 2022 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.