emacs-devel
[Top][All Lists]
Advanced

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

Re: Invisibility bug: `invisible' vs `display'


From: Daniel Brockman
Subject: Re: Invisibility bug: `invisible' vs `display'
Date: Thu, 22 Feb 2007 22:23:07 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

David Kastrup <address@hidden> writes:

> Daniel Brockman <address@hidden> writes:
>
>> David Kastrup <address@hidden> writes:
>>
>>> Daniel Brockman <address@hidden> writes:
>>>
>>>> How can an overlay with identical start and end points
>>>> display anything?
>>>
>>> Using the display property.  Are you sure that you understand the
>>> difference between overlays and text properties?  Text properties are
>>> bound to characters, overlays to buffer positions.
>>
>> Well, I'm obviously confused.  I thought overlay properties
>> applied to the characters under the overlay.
>
> They apply to the region between its buffer positions.
> Which is usually pretty similar to "characters under the
> overlay".  But zero-length overlays exist and work, too,
> and when copying text from a buffer, overlay properties
> are not copied as part of the text.

I can't get zero-length overlays to display anything using
the `display' property.  Here's what I'm doing:

   (overlay-put (make-overlay (point) (point)) 'display "foo")

> You can even have overlays that are restricted to a single
> window displaying the buffer and will not have an effect
> on other windows showing the same buffer.

That's cool.  I didn't know that.

-- 
Daniel Brockman <address@hidden>





reply via email to

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