From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: 'Compiler' functionality for Emacs Lisp Date: Thu, 29 Jul 2010 11:54:23 +0200 Organization: A noiseless patient Spider Message-ID: References: <87hbjjgdbd.fsf@decebal.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291854945 25085 80.91.229.12 (9 Dec 2010 00:35:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 00:35:45 +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 01:35:41 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 1PQUU1-0007Rj-3z for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:35:41 +0100 Original-Received: from localhost ([127.0.0.1]:42316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQUTv-0001a3-74 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:35:35 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Injection-Date: Thu, 29 Jul 2010 09:54:23 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="q8gLPzp46U2R+2DD9zVgGw"; logging-data="28032"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/duW4nYtItMh+plbcZY5ci" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Yl1vQpPMN9vlV2CXWntzTjdHnks= sha1:ShdgY2FqCd+EOFrxJMc9wBwiPh4= Original-Xref: usenet.stanford.edu gnu.emacs.help:180175 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:76306 Archived-At: > 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? The byte-compiler's warnings are pretty much the "best" there is currently. Stefan