emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41062: closed (27.0.91; Overlay with background face only applies to


From: GNU bug Tracking System
Subject: bug#41062: closed (27.0.91; Overlay with background face only applies to text (different behavior than in Emacs 26))
Date: Sun, 03 May 2020 21:39:02 +0000

Your message dated Sun, 03 May 2020 23:38:18 +0200
with message-id <87tv0wwvg5.fsf@randomsample>
and subject line Re: bug#41062: 27.0.91; Overlay with background face only 
applies to text (different behavior than in Emacs 26)
has caused the debbugs.gnu.org bug report #41062,
regarding 27.0.91; Overlay with background face only applies to text (different 
behavior than in Emacs 26)
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
41062: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41062
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 27.0.91; Overlay with background face only applies to text (different behavior than in Emacs 26) Date: Sun, 03 May 2020 22:32:31 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux)
I noticed a pretty big change how overlays are handled that apply a
face with a background color.

Reproduce as follows:

- emacs -Q

- Put in the scratch buffer:

(defface blue-background
  '((default :background "blue"))
  "blue background")
(setq testov (make-overlay (point-min) (point-max) nil t t))
(overlay-put testov 'face 'blue-background)

- M-x eval-buffer

In Emacs 26, you would see *everything* with a blue background until
(point-max), meaning the blue background would span the whole width of
the window, including the parts without text.

In current Emacs 27.0.91, you see blue background only applied to the
textual parts of the window. The parts without any text have the normal
background color. I have attached screenshots for both cases.

This is on GNU/Linux with Emacs26/27 both compiled from their latest
branches with GTK+ 3.24.5 and plain './configure' (no cairo).

I'm not sure if this is a bug or a deliberate change, but I couldn't
find anything in NEWS mentioning this.

-David

Attachment: emacs26-overlay.png
Description: PNG image

Attachment: emacs27-overlay.png
Description: PNG image


--- End Message ---
--- Begin Message --- Subject: Re: bug#41062: 27.0.91; Overlay with background face only applies to text (different behavior than in Emacs 26) Date: Sun, 03 May 2020 23:38:18 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux)
> See NEWS in Emacs 27:
>
> * Changes in Emacs 27.1
> [...]
> ** New face attribute ':extend' to control face extension at EOL.

[...]

Thank you! I only searched for 'overlay' and 'background' and didn't
check for 'face'...

I am closing this. Sorry for the noise.

-David


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]