[Top][All Lists]

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

Re: elisp regexp, what does this mean?

From: Lennart Borgman
Subject: Re: elisp regexp, what does this mean?
Date: Tue, 3 Mar 2009 10:38:27 +0100

On Tue, Mar 3, 2009 at 9:22 AM,  <address@hidden> wrote:
> I am trying to understand what the following:
> (defun erl-ie-eval-expression (node)
>  (interactive (list (erl-ie-read-nodename)))
>  (erl-ie-read-nodename)
>  (let ((end (point))
>        (beg (save-excursion
>               (loop do (re-search-backward "\\(\\`\\|^\\<\\)")
>                     while (looking-at "end"))
>               (point))))
>    (erl-ie-evaluate beg end node t)))
> Or rather the inner part involving the (scattered toothpick style)
> regexp.
> It is a function in distel-ie.el in
> I understand that the intent of the function is to grab a piece of
> erlang source code and  pass it over for evaluation on the erlang
> side. Doing so by starting from point and looking backward until...
> yes, what/how?

(beginning of buffer) OR (beginning of line FOLLOWED BY start of word)

See (info "(elisp) Regexp Backslash")

reply via email to

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