On Thu, Mar 01, 2001 at 06:35:04PM +0530, Gaurav Priyolkar wrote:
> > If nothing works, single step through the process of walking auto-mode-alist
> > (M-x debug-on-entry). Sometimes that's tedious - just try calling emacs's
> > regexp matching routines with your string and the regexp and debug it.
> 
> emacs has a interactive regular expression matching routines/debugger? Sounds
> very useful! I could not find much in info, how do I use/invoke it?

C-h f re-search-forward gives:

re-search-forward is an interactive built-in function.

Search forward from point for regular expression REGEXP.
Set point to the end of the occurrence found, and return point.
An optional second argument bounds the search; it is a buffer position.
The match found must not extend after that position.
Optional third argument, if t, means if fail just return nil (no error).
  If not nil and not t, move to limit of search and return nil.
Optional fourth argument is repeat count--search for successive occurrences.
See also the functions `match-beginning', `match-end' and `replace-match'.

(re-search-forward REGEXP &optional BOUND NOERROR COUNT)

You can always type in an elisp expression in a scratch buffer or a 
.el file and use the eval-* commands to evaluate them interactively.

        -Arun

----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to