From: Daniel Brockman <daniel@brockman.se>
To: emacs-devel@gnu.org
Subject: Re: Invisibility bug: `invisible' vs `display'
Date: Thu, 22 Feb 2007 22:23:07 +0100 [thread overview]
Message-ID: <873b4x99ac.fsf@wigwam.brockman.se> (raw)
In-Reply-To: 85wt29di14.fsf@lola.goethe.zz
David Kastrup <dak@gnu.org> writes:
> Daniel Brockman <daniel@brockman.se> writes:
>
>> David Kastrup <dak@gnu.org> writes:
>>
>>> Daniel Brockman <daniel@brockman.se> 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 <daniel@brockman.se>
next prev parent reply other threads:[~2007-02-22 21:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-12 19:00 Invisibility bug: `invisible' vs `display' Daniel Brockman
2007-02-12 20:39 ` Daniel Brockman
2007-02-12 23:46 ` Chong Yidong
2007-02-13 1:09 ` Daniel Brockman
2007-02-13 7:13 ` David Kastrup
2007-02-13 14:59 ` Daniel Brockman
2007-02-22 2:57 ` Daniel Brockman
2007-02-22 11:27 ` Kim F. Storm
2007-02-22 11:42 ` David Kastrup
2007-02-22 13:22 ` Daniel Brockman
2007-02-22 13:38 ` David Kastrup
2007-02-22 14:15 ` Daniel Brockman
2007-02-22 17:19 ` Johan Bockgård
2007-02-22 17:37 ` David Kastrup
2007-02-22 20:39 ` Daniel Brockman
2007-02-22 21:00 ` David Kastrup
2007-02-22 21:23 ` Daniel Brockman [this message]
2007-02-22 21:51 ` David Kastrup
2007-02-23 13:23 ` Daniel Brockman
2007-02-22 17:08 ` Kim F. Storm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873b4x99ac.fsf@wigwam.brockman.se \
--to=daniel@brockman.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).