* search-forward doesn't move point. Why?
@ 2012-03-30 4:20 pcolsen
0 siblings, 0 replies; only message in thread
From: pcolsen @ 2012-03-30 4:20 UTC (permalink / raw)
To: help-gnu-emacs
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 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54), Aquamacs Distribution 2.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-30 4:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 4:20 search-forward doesn't move point. Why? pcolsen
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.