GNU bug report logs - #1222
overlay display inherits face properties from buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Glenn Morris <rgm@HIDDEN>; dated Wed, 22 Oct 2008 01:10:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-11.3 required=4.0 tests=AWL,BAYES_00,FAKE_REPLY_C,
	HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at 1222-quiet) by emacsbugs.donarmstrong.com; 22 Oct 2008 01:13:10 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9M1D72g003349
	for <1222-quiet@HIDDEN>; Tue, 21 Oct 2008 18:13:08 -0700
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm@HIDDEN>)
	id 1KsSF0-0008K6-E9; Tue, 21 Oct 2008 21:10:26 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 1222-quiet <at> debbugs.gnu.org
Subject: Re: bug#1222: overlay display inherits face properties from buffer
X-Spook: Honduras doctrine CISU Commecen sniper beanpole ASLET SDI
X-Ran: r,'~LykiqVD[S=od}/pg-:eIUnvb4ybePe#_0(}NQNfs3}NUY@ikyoEL[@.>#6#O(9okxb
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 21 Oct 2008 21:10:26 -0400
Message-ID: <1wbpxd5ta5.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


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.




Information stored:
bug#1222; Package emacs. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-13.8 required=4.0 tests=AWL,BAYES_00,HAS_PACKAGE,
	RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at quiet) by emacsbugs.donarmstrong.com; 22 Oct 2008 01:00:40 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9M10cOW032637
	for <quiet@HIDDEN>; Tue, 21 Oct 2008 18:00:39 -0700
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm@HIDDEN>)
	id 1KsS2u-0007tE-UY; Tue, 21 Oct 2008 20:57:56 -0400
From: Glenn Morris <rgm@HIDDEN>
To: quiet <at> debbugs.gnu.org
Subject: overlay display inherits face properties from buffer
X-Spook: Noriega AIEWS Sundevil ASIO KGB Mossad world domination
X-Ran: MnP2yO_PrL=de#BQS0*H4EGWK6]Dc&AtwwF&9NAz+T,-@tiUncno6hFCu9ppWqP%tTRkc?
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 21 Oct 2008 20:57:56 -0400
Message-ID: <xvljwh5tuz.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Package: emacs
Version: 23.0.60
Severity: minor

This bug is extracted from #1176, which contained several issues.

The display property of an overlay inherits face properties from the
following buffer text. The workaround is to fully specify the face
properties of the display text.

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 'display (propertize "display" 'face 'default))
    (pop-to-buffer buff)))

"display" has a red background. The commented out part shows the
workaround.




Report stored:
bug#1222; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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