From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pcolsen@gmail.com Newsgroups: gmane.emacs.help Subject: search-forward doesn't move point. Why? Date: Thu, 29 Mar 2012 21:20:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <17362531.2107.1333081207231.JavaMail.geo-discussion-forums@vbdn7> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1333398627 4375 80.91.229.3 (2 Apr 2012 20:30:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 20:30:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 22:30:26 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEntN-0004n6-3I for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 22:30:21 +0200 Original-Received: from localhost ([::1]:40876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEntM-0004Ud-EZ for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 16:30:20 -0400 Original-Path: usenet.stanford.edu!newsfeed.news.ucla.edu!nrc-news.nrc.ca!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 71.245.166.122 Original-X-Trace: posting.google.com 1333081207 12293 127.0.0.1 (30 Mar 2012 04:20:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 30 Mar 2012 04:20:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.245.166.122; posting-account=N-hGNQoAAAAbAnrG5D5IumBULI6vKxzG User-Agent: G2/1.0 X-Received-Bytes: 1753 Original-Xref: usenet.stanford.edu gnu.emacs.help:191853 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84264 Archived-At: 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