[Top][All Lists]

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

search-forward doesn't move point. Why?

From: pcolsen
Subject: search-forward doesn't move point. Why?
Date: Thu, 29 Mar 2012 21:20:07 -0700 (PDT)
User-agent: G2/1.0

I've been trying to use (search-forward "string") to find "string".  The 
documentation says that if "string" is found the function will return the 
character position of the first character of the string and leave the pointer 
after the last character.  

That's not happening.  The function is returning the character position but not 
moving the pointer; the pointer stays where it started.

I'm seeing this behavior both in Aquamacs and Emacs.  I've been testing this 
with both programs using "eval-defun" on functions such as (search-forward 
"string").  The character position is returned, but the cursor is unmoved.

Can anyone tell me why this is happening and how to fix it?

I'm using

GNU Emacs 23.3.1 (x86_64-apple-darwin11.2.0), shell version.

GNU Emacs (i386-apple-darwin9.8.0, NS apple-appkit-949.54),  Aquamacs 
Distribution 2.4

reply via email to

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