all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem using search-forward
@ 2012-10-05 17:46 Bob Shanley
  2012-10-07 18:26 ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Bob Shanley @ 2012-10-05 17:46 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-08  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 17:46 Problem using search-forward Bob Shanley
2012-10-07 18:26 ` Tassilo Horn
2012-10-08  4:10   ` Eric Abrahamsen

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.