From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.help Subject: Re: Finding Unused Identifiers Date: Thu, 02 Mar 2006 18:18:05 +0100 Message-ID: <440728cc$0$8024$3b214f66@tunews.univie.ac.at> References: <4406fc36$0$11610$3b214f66@tunews.univie.ac.at> <1YDNf.5345$F56.2416@newsread3.news.atl.earthlink.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141420745 8258 80.91.229.2 (3 Mar 2006 21:19:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 21:19:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 22:19:02 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFHfh-0001Gt-Th for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 22:18:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFHfh-0006Gt-Vi for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 16:18:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news-hub.siol.net!kanja.arnes.si!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051010) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1YDNf.5345$F56.2416@newsread3.news.atl.earthlink.net> Original-Lines: 25 Original-NNTP-Posting-Host: v212-157.vps.tuwien.ac.at Original-X-Trace: 1141319884 tunews.univie.ac.at 8024 128.131.212.157 Original-X-Complaints-To: abuse@tuwien.ac.at Original-Xref: shelby.stanford.edu gnu.emacs.help:137884 Original-To: help-gnu-emacs@gnu.org 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:33509 Archived-At: Hi! B. T. Raven wrote: > by "unused" do you mean something other than unbound? I took it to mean "(at least) one write access (set, let, ...), and no read access". > Why can't the file be loaded Consider: (let ((a 0)) (complicated-function) ; not involving a (print a)) If "complicated-function" halts, a is (subsequently) used. If it doesn't, a remains unused (the "print" part is never reached). Since whether a Lisp function halts is undecidable, there's no algorithm that always both terminates and correctly identifies all such identifiers in arbitrary programs. All the best, Markus.