From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: use Elisp to improve your Elisp - some code issues Date: Sun, 2 Aug 2015 09:25:07 -0700 (PDT) Message-ID: <38c2189a-bf58-4812-9d11-3ef50a19b32a@googlegroups.com> References: <871tfmwk8v.fsf@nl106-137-147.student.uu.se> (message from Emanuel Berg on Sun, 02 Aug 2015 03:29:36 +0200)> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1438533019 11201 80.91.229.3 (2 Aug 2015 16:30:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2015 16:30:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 02 18:30:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZLw9R-0005DC-Rz for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2015 18:30:18 +0200 Original-Received: from localhost ([::1]:56393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLw9Q-0001yp-TJ for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2015 12:30:16 -0400 X-Received: by 10.107.11.159 with SMTP id 31mr13528027iol.21.1438532708255; Sun, 02 Aug 2015 09:25:08 -0700 (PDT) X-Received: by 10.50.138.70 with SMTP id qo6mr160350igb.13.1438532708238; Sun, 02 Aug 2015 09:25:08 -0700 (PDT) Original-Path: usenet.stanford.edu!f3no6423050igg.0!news-out.google.com!o13ni6859igw.0!nntp.google.com!pg9no6343398igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.195.43.196; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 117.195.43.196 User-Agent: G2/1.0 Injection-Date: Sun, 02 Aug 2015 16:25:08 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213928 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106213 Archived-At: On Sunday, August 2, 2015 at 9:06:33 PM UTC+5:30, Robert Thorpe wrote: > Emanuel Berg writes: > > > "Pascal J. Bourguignon" > > writes: > > > >> No. > >> > >> I said that if you went beyond those simple case, > >> your regexp solution would break lamentably. > > > > This is an interface to regexps so it sure doesn't go > > anywhere beyond what can be expressed by regexps. > > I agree with Pascal & Marcin. > > Why not use the "read" function to read in the code of the file. Then > you have everything as a tree. You can use car and cdr to walk the tree If something like this https://common-lisp.net/project/cl-match/doc/clmatch.htm is there it sure makes life more pleasant than car/cdr. [Disclaimer: I dont know much about common-lisp nor about whether these things are there in elisp. Talking from (ancient) scheme experience ]