From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter Milliken" Newsgroups: gmane.emacs.help Subject: Re: Is there an after-move-functions hook? Date: Wed, 30 Oct 2002 06:57:53 +1100 Organization: OzEmail Ltd, Australia Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035921733 20364 80.91.224.249 (29 Oct 2002 20:02:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 20:02:13 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186cYr-0005Gg-00 for ; Tue, 29 Oct 2002 21:02:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186cYF-0004hd-00; Tue, 29 Oct 2002 15:01:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!ozemail.com.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 203.15.64.10 Original-X-Trace: ozemail.com.au 1035921442 203.15.64.10 (Wed, 30 Oct 2002 06:57:22 EST) Original-NNTP-Posting-Date: Wed, 30 Oct 2002 06:57:22 EST Original-Distribution: world Original-Xref: shelby.stanford.edu gnu.emacs.help:106524 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3074 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3074 Have a look at the pre-command-hook and post-command-hook. Movement of point is directed by "commands", after all :-) Peter "Alan Mackenzie" wrote in message news:uuilpa.r5.ln@acm.acm... > i.e., something like after-changed-functions, but called each time point > is move? > > My answer to the next question is this: Suppose the user is typing in a > string, and has got this far: > > "start of string > ^ > | > point > > Should he move point away from the string without typing the terminating > ", I would like to splash font-lock-warning-font all over the string. As > soon as point comes back into the string, I would restore it to the > normal restful tasteful font-lock-string-font. > > Alternatively, is there any other elisp programming trick which would > achieve this for me? > > -- > Alan Mackenzie (Munich, Germany) > Email: aacm@muuc.dee; to decode, wherever there is a repeated letter > (like "aa"), remove half of them (leaving, say, "a"). >