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

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

bug#1222: overlay display inherits face properties from buffer


From: Lars Ingebrigtsen
Subject: bug#1222: overlay display inherits face properties from buffer
Date: Mon, 30 Sep 2019 09:01:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

> This issue also affects before- and after-strings, albeit in slightly
> different ways:
>
> Example:
>
> (let ((buff (generate-new-buffer "overlay test"))
>       o)
>   (with-current-buffer buff
>     (insert (propertize "text" 'face '(:background "red")))
>     (setq o (make-overlay (point-min) (point-max)))
>     (overlay-put o 'display "display")
>     (overlay-put o 'before-string "before-string")
>     (overlay-put o 'after-string "after-string")
>     (insert (propertize "more" 'face '(:background "green")))
>     (pop-to-buffer buff)))
>
> "before-string" and "display" have a red background, "after-string"
> has a green background.
>
> Ideally, face properties should not be inherited from the buffer in
> this way.

Hm...  is this the same as bug#25348?  If so, it was decided there that
this was behaviour as designed, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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