From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.help Subject: Re: 'Compiler' functionality for Emacs Lisp Date: Wed, 28 Jul 2010 21:47:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <84ff3313-f54d-43e4-8a41-bff72c732a63@x24g2000pro.googlegroups.com> References: <87hbjjgdbd.fsf@decebal.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291859441 9532 80.91.229.12 (9 Dec 2010 01:50:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:50:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 02:50:37 2010 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.69) (envelope-from ) id 1PQVeX-0004W8-68 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:50:37 +0100 Original-Received: from localhost ([127.0.0.1]:55331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQVeW-000686-Bf for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:50:36 -0500 Original-Path: usenet.stanford.edu!newsfeed.esat.net!colt.net!feeder.news-service.com!postnews.google.com!x24g2000pro.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 75.28.152.199 Original-X-Trace: posting.google.com 1280378872 10829 127.0.0.1 (29 Jul 2010 04:47:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Jul 2010 04:47:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x24g2000pro.googlegroups.com; posting-host=75.28.152.199; posting-account=Xy1x0QoAAAC1_8XWVbTILoO5VL5JMCDm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:180167 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:76418 Archived-At: On Jul 28, 8:46=A0pm, Cecil Westerhof wrote: > When using for example C++ the compiler does a lot of checks for you. > For example it checks if all your variables are declared or used and > it does even find potential memory leaks. Is there something like this > for Emacs Lisp? I am writing bigger functions nowadays. Yesterday I > found out that not all my variables where declared in a let block and > I had forgotten to remove a few I where not using anymore. Is there > something that could do these checks for me? > > I am using: GNU Emacs 23.1.1. > > -- > Cecil Westerhof > Senior Software Engineer > LinkedIn:http://www.linkedin.com/in/cecilwesterhof You could add a lint like primitive function (necessary for speed) once you figure out how the C code in emacs works. Be sure to share on this group what you find on this matter.