all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Shanley <rjshanley18@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Problem using search-forward
Date: Fri, 5 Oct 2012 10:46:41 -0700 (PDT)	[thread overview]
Message-ID: <9aed3b85-f743-4bd0-994f-c44304d8078a@googlegroups.com> (raw)

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


             reply	other threads:[~2012-10-05 17:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05 17:46 Bob Shanley [this message]
2012-10-07 18:26 ` Problem using search-forward Tassilo Horn
2012-10-08  4:10   ` Eric Abrahamsen

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

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

  git send-email \
    --in-reply-to=9aed3b85-f743-4bd0-994f-c44304d8078a@googlegroups.com \
    --to=rjshanley18@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.
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.