all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: overlays vs text properties
Date: Wed, 13 Jul 2011 15:21:09 -0700	[thread overview]
Message-ID: <87wrflu8iy.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAJsNXTkJmDBfY_xcz9Cqit=T2mi2XODRt4C__Zkbwt7H6weLZQ@mail.gmail.com

On Wed, Jul 13 2011, PJ Weisberg wrote:

> On Wednesday, July 13, 2011, Eric Abrahamsen <eric@ericabrahamsen.net> 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	other threads:[~2011-07-13 22:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13  6:12 overlays vs text properties Eric Abrahamsen
2011-07-13  6:59 ` Eli Zaretskii
2011-07-13  7:23   ` Eric Abrahamsen
2011-07-13  7:28     ` Eli Zaretskii
2011-07-13  7:32       ` Eric Abrahamsen
2011-07-13  8:07         ` PJ Weisberg
2011-07-13 22:21           ` Eric Abrahamsen [this message]
2011-07-13  9:57         ` Eli Zaretskii
2011-07-13 14:55     ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrflu8iy.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.