all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daniel@bigwalter.net (Daniel Jensen)
To: help-gnu-emacs@gnu.org
Subject: Re: hook into change of position?
Date: Sun, 10 Jun 2007 14:35:26 +0200	[thread overview]
Message-ID: <87hcpgf0mp.fsf@orme.bigwalter.net> (raw)
In-Reply-To: 1181404055.751871.326110@w5g2000hsg.googlegroups.com

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	other threads:[~2007-06-10 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-09 15:47 hook into change of position? troelskn
2007-06-10 12:35 ` Daniel Jensen [this message]
2007-06-10 23:26   ` troelskn
2007-06-11 13:38     ` Daniel Jensen

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=87hcpgf0mp.fsf@orme.bigwalter.net \
    --to=daniel@bigwalter.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.