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

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

RE: looping through re-seach-forward gives error


From: Drew Adams
Subject: RE: looping through re-seach-forward gives error
Date: Sun, 20 Mar 2016 15:13:47 -0700 (PDT)

>     (defun find-start-of-sexp ()
>        (re-search-forward "(" (point-max) t)
>        (backward-char)
>        (point-marker))

What happens if (re-search-forward "(" (point-max) t) returns nil?

>     (defun find-end-of-sexp ()
>       (forward-sexp)
>       (point-marker))

What happens if (forward-sexp) has a problem?



reply via email to

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