From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Shanley Newsgroups: gmane.emacs.help Subject: Problem using search-forward Date: Fri, 5 Oct 2012 10:46:41 -0700 (PDT) Message-ID: <9aed3b85-f743-4bd0-994f-c44304d8078a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1349459413 10787 80.91.229.3 (5 Oct 2012 17:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 17:50:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 19:50:19 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 1TKC2U-0007Si-N1 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2012 19:50:18 +0200 Original-Received: from localhost ([::1]:60426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKC2O-0000pQ-GR for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2012 13:50:12 -0400 Original-Received: by 10.66.85.136 with SMTP id h8mr2435586paz.46.1349459202263; Fri, 05 Oct 2012 10:46:42 -0700 (PDT) Original-Received: by 10.68.225.234 with SMTP id rn10mr3369996pbc.3.1349459202207; Fri, 05 Oct 2012 10:46:42 -0700 (PDT) Original-Path: usenet.stanford.edu!kt20no11148442pbb.1!news-out.google.com!t10ni23613332pbh.0!nntp.google.com!kt20no11148439pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.240.30.23; posting-account=jrmFYgoAAAB9SfxmSvqZwykinZ09XuFp Original-NNTP-Posting-Host: 216.240.30.23 User-Agent: G2/1.0 Injection-Date: Fri, 05 Oct 2012 17:46:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:194756 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:87091 Archived-At: stringToFind("this is a string"); ; Given the above string and point positioned at the beginning of the line ; I want to move point to right after the ";" ; These work: ; (search-forward ");") ; (let ( (n 34) ) (search-forward ");" n)) ; These do not: ; (defun eol ( ) (end-of-line) (point)) ; (search-forward ");" (eol)) ; (let ( (n (eol)) ) (message "this is the value %d" n) (search-forward ");" n)) ; They result in a Search failed: ");" and point moves to end of line ; What am I missing? ; Thanks for the help