From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: heinz.eriksson@gmail.com Newsgroups: gmane.emacs.help Subject: elisp regexp, what does this mean? Date: Tue, 3 Mar 2009 00:22:48 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236071212 18564 80.91.229.12 (3 Mar 2009 09:06:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 09:06:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 10:08:06 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LeQbL-0001gi-HZ for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 10:07:47 +0100 Original-Received: from localhost ([127.0.0.1]:60209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeQa0-0000Hz-9Q for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 04:06:24 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!13g2000yql.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 194.237.142.10 Original-X-Trace: posting.google.com 1236068568 7881 127.0.0.1 (3 Mar 2009 08:22:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 Mar 2009 08:22:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 13g2000yql.googlegroups.com; posting-host=194.237.142.10; posting-account=6tWG9woAAADWA1zelEoq6cQ-b3n31zAO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167243 X-Mailman-Approved-At: Tue, 03 Mar 2009 04:06:03 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62543 Archived-At: 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 http://code.google.com/p/distel/ 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? BR