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

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

Re: hook into change of position?


From: Daniel Jensen
Subject: Re: hook into change of position?
Date: Sun, 10 Jun 2007 14:35:26 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

troelskn <troelskn@gmail.com> writes:

> I'm trying to hack together some elisp, and I need to somehow hook a
> function callback up to be called whenever the position changes. Is
> there an obvious way to do that?

Depending on what you're trying to do, there are different options.

With post-command-hook, you can do something after every user command.
You'll have to check how point changed.

You can use an idle timer. Same thing here.

Text properties point-left and point-entered can be used to do
something for specific areas in the buffer.


reply via email to

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