help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using search-forward


From: Bob Shanley
Subject: Problem using search-forward
Date: Fri, 5 Oct 2012 10:46:41 -0700 (PDT)
User-agent: G2/1.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]