From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: August Karlstrom Newsgroups: gmane.emacs.help Subject: Re: Finding Unused Identifiers Date: Thu, 02 Mar 2006 22:25:10 GMT Organization: Telia Internet Message-ID: 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 1141414550 17623 80.91.229.2 (3 Mar 2006 19:35:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 19:35:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 20:35:50 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 1FFG45-0002hc-DS for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 20:35:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFG44-0000so-Kh for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 14:35:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) 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: 50 Original-NNTP-Posting-Host: 83.250.237.84 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsb.telia.net 1141338310 83.250.237.84 (Thu, 02 Mar 2006 23:25:10 CET) Original-NNTP-Posting-Date: Thu, 02 Mar 2006 23:25:10 CET Original-Xref: shelby.stanford.edu gnu.emacs.help:137886 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:33500 Archived-At: B. T. Raven wrote: > "Markus Triska" wrote in message > news:4406fc36$0$11610$3b214f66@tunews.univie.ac.at... > >>Hi August, >> >>August Karlstrom wrote: >> >> >>>Is there a way to find all unused identifiers in an Elisp file? >>> >> >>There's no programmatic way. >> >>All the best, >>Markus. > > > I probably don't even understand the question I mean "forgotten" variables and functions that were never intended to be exported. I know that in Elisp all identifiers with file scope are exported, but it would be nice to at least have a list of all declared-but-never-used-in-the-same-file identifiers. That would give you an hint of what can safely be removed. > but, out of curiosity I ran > the following in *scratch*: > > (boundp 't) > t > (boundp t) > t > (boundp 'v31416) > nil > > > Why can't the file be loaded, tokenized, and then run the list of tokens > against boundp? Or by "unused" do you mean something other than unbound? > > Ed > August -- I am the "ILOVEGNU" signature virus. Just copy me to your signature. This email was infected under the terms of the GNU General Public License.