From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: elisp regexp, what does this mean? Date: Tue, 3 Mar 2009 10:38:27 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236073156 24480 80.91.229.12 (3 Mar 2009 09:39:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 09:39:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: heinz.eriksson@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 10:40:33 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 1LeR6r-0002fA-T0 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 10:40:22 +0100 Original-Received: from localhost ([127.0.0.1]:47878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeR5W-0000i4-PY for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 04:38:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeR55-0000hO-D4 for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 04:38:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeR53-0000gi-BF for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 04:38:30 -0500 Original-Received: from [199.232.76.173] (port=42475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeR53-0000gT-6T for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 04:38:29 -0500 Original-Received: from mail-gx0-f160.google.com ([209.85.217.160]:43484) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LeR52-0000vu-QS for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 04:38:28 -0500 Original-Received: by gxk4 with SMTP id 4so5295105gxk.18 for ; Tue, 03 Mar 2009 01:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=NBXDvpQGZYhHdq2WZN2LcvPA5tYh0OzzPyu4t/9qJik=; b=a5Bcl1+f9sXzMFdH0Y2/nXAv1eJE9a611noarqYClOFSDkxVzDwBXyKkBodE0+n0EC 0irQGiszHrRZtg4hlYgKzy2aiuLfKUkFdMK+1W949P+8QUDUqCvj7vVVmIWEHVdamn3T y3H1HYL6p69H+Chp34cm8GZ9WvzbzP+cik49Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AxJ5O5rlah3b1/N8T5npiqIRolPXAxscdwACVfYfKdGNfzBO3UnMVBchhcRecZkouJ GFZcg+ExkK5y5tEBXlCuHXs01PdzI6TJmKFxDu5ktriN/UbcmstRjWer0ugDO5XOBQUV wIz2pKzm1Qjx8W0D5IYe7UB3IN/ZkenYEm96s= Original-Received: by 10.231.12.138 with SMTP id x10mr3573684ibx.16.1236073107492; Tue, 03 Mar 2009 01:38:27 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62545 Archived-At: On Tue, Mar 3, 2009 at 9:22 AM, wrote: > I am trying to understand what the following: > > (defun erl-ie-eval-expression (node) > =C2=A0(interactive (list (erl-ie-read-nodename))) > =C2=A0(erl-ie-read-nodename) > =C2=A0(let ((end (point)) > =C2=A0 =C2=A0 =C2=A0 =C2=A0(beg (save-excursion > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (loop do (re-search-back= ward "\\(\\`\\|^\\<\\)") > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 whi= le (looking-at "end")) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (point)))) > =C2=A0 =C2=A0(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 =C2=A0pass 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")