GNU bug report logs - #1220
overlay before- and after-string and mouse-face

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 22 Oct 2008 00:50:03 UTC

Severity: normal

Found in version 23.0.60

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 1220 in the body.
You can then email your comments to 1220 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 stored:
bug#1220; Package emacs. Full text and rfc822 format available.

Message #3 received at quiet <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: quiet <at> debbugs.gnu.org
Subject: overlay before- and after-string and mouse-face
Date: Tue, 21 Oct 2008 20:39:13 -0400
Package: emacs
Version: 23.0.60

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

The mouse-face property of an overlay with a display string does not
affect any before-string, but it does affect the after-string.

This can be worked around to some extent by copying the mouse-face
property to the before-string, but one cannot get the whole overlay
highlighted at one time.

Example:

(let ((buff (generate-new-buffer "overlay test"))
      o)
  (with-current-buffer buff
    (insert "text")
    (setq o (make-overlay (point-min) (point-max)))
    (overlay-put o 'mouse-face '(:background "green"))
    (overlay-put o 'display "display")
    (overlay-put o 'before-string "before string")
    (overlay-put o 'after-string "after string")
    (pop-to-buffer buff)))

"displayafter string" has mouse-face, but "before string" does not.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Mon, 22 Jun 2009 02:00:05 GMT) Full text and rfc822 format available.

Notification sent to Glenn Morris <rgm <at> gnu.org>:
bug acknowledged by developer. (Mon, 22 Jun 2009 02:00:06 GMT) Full text and rfc822 format available.

Message #8 received at 1220-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 1220-done <at> debbugs.gnu.org
Subject: Re: overlay before- and after-string and mouse-face
Date: Sun, 21 Jun 2009 21:55:34 -0400
> The mouse-face property of an overlay with a display string does not
> affect any before-string, but it does affect the after-string.
>
> This can be worked around to some extent by copying the mouse-face
> property to the before-string, but one cannot get the whole overlay
> highlighted at one time.

I've checked a fix for this into the trunk.



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 12 Aug 2009 14:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 187 days ago.

Previous Next


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