unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: pcolsen@gmail.com
To: help-gnu-emacs@gnu.org
Subject: search-forward doesn't move point.  Why?
Date: Thu, 29 Mar 2012 21:20:07 -0700 (PDT)	[thread overview]
Message-ID: <17362531.2107.1333081207231.JavaMail.geo-discussion-forums@vbdn7> (raw)

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


                 reply	other threads:[~2012-03-30  4:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17362531.2107.1333081207231.JavaMail.geo-discussion-forums@vbdn7 \
    --to=pcolsen@gmail.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).