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

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

Re: overlays vs text properties


From: Eric Abrahamsen
Subject: Re: overlays vs text properties
Date: Wed, 13 Jul 2011 15:21:09 -0700
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

On Wed, Jul 13 2011, PJ Weisberg wrote:

> On Wednesday, July 13, 2011, Eric Abrahamsen <address@hidden> wrote:
>> On Wed, Jul 13 2011, Eli Zaretskii wrote:
>>> Sounds like overlays are better suited for this job, unless I'm
>>> missing something.
>>
>> Only that there's no good way of moving overlays based on the movement
>> of point!
>
> I don't know if there's a good way of "moving" text properties at all. ;-)
>
> I know of one library (Magit) that moves its "highlight" overlay to
> the current section in a post-command-hook.

Thanks for everyone's responses, it sounds like post-command-hook is the
way to go, though that had originally seemed like overkill. I should
have thought of Magit as a good example to copy…

Thanks again,
Eric




reply via email to

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