From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: point change hook Date: Wed, 6 May 2009 10:05:48 +0200 Message-ID: References: <769ab215-23dd-415c-bb2f-ad3e938c8dec@p4g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241597194 19951 80.91.229.12 (6 May 2009 08:06:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 08:06:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 06 10:06:24 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1c91-0003Sv-Ll for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2009 10:06:23 +0200 Original-Received: from localhost ([127.0.0.1]:51399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1c91-0002lL-7V for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2009 04:06:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1c8a-0002k6-TQ for help-gnu-emacs@gnu.org; Wed, 06 May 2009 04:05:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1c8U-0002i3-Mp for help-gnu-emacs@gnu.org; Wed, 06 May 2009 04:05:55 -0400 Original-Received: from [199.232.76.173] (port=54910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1c8U-0002hy-GN for help-gnu-emacs@gnu.org; Wed, 06 May 2009 04:05:50 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:62016) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1c8T-0001tD-9N for help-gnu-emacs@gnu.org; Wed, 06 May 2009 04:05:49 -0400 Original-Received: by fxm17 with SMTP id 17so5576313fxm.42 for ; Wed, 06 May 2009 01:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0fztRZ6Ihj0458FJOBjIppAEs/sMjJy3okuhh8m1z1Q=; b=AhmN8VbidrJwaeroS68JLQnHCW1XuaVij9FJtn2xFLfMY6s6QOqfRq7Fs4n4MPKWW/ fSSoZfvhfB4tal3VNW1P9TNdRdjZ12UYOM9cg3eHyeNLJjKMy6WEym+qKxKJZNUWKuyr apJqH3gnkYXDPXtSLexUAyvMUHPKpzSMCHKC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TWy5Aj3Fi4ixXZnEGErA/OOlSyNtFypOxRp9ysnl5lL5cbnth1ULuAlQ9vN3eSkYLm a5Gs/wkSNcM/71fZQTpB6669cykVDtEYS/SL/ZGtK9+czPXG65/NTK1afy36/znMJ9sI SWqNsPCZkoeCvLCwiXt3jCery1Ydd8PibGBbo= Original-Received: by 10.223.115.146 with SMTP id i18mr761417faq.6.1241597148027; Wed, 06 May 2009 01:05:48 -0700 (PDT) In-Reply-To: <769ab215-23dd-415c-bb2f-ad3e938c8dec@p4g2000vba.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64202 Archived-At: On Wed, May 6, 2009 at 9:12 AM, tomer wrote: > Is there a hook for point change. > I want to execute a function each time the point is changed. > Is it possible? > Thanks > Tomer Hi Tomer, I suspect you want to run this hook after each command that has changed the point. In that case you can use pre-command-hook or post-command-hook. (Together with saving the old point somehow of course.)