From: August Karlstrom <fusionfive@comhem.se>
Subject: Re: Finding Unused Identifiers
Date: Thu, 02 Mar 2006 22:25:10 GMT [thread overview]
Message-ID: <ahKNf.46807$d5.203324@newsb.telia.net> (raw)
In-Reply-To: <1YDNf.5345$F56.2416@newsread3.news.atl.earthlink.net>
B. T. Raven wrote:
> "Markus Triska" <triska@gmx.at> 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.
next prev parent reply other threads:[~2006-03-02 22:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-02 13:31 Finding Unused Identifiers August Karlstrom
2006-03-02 14:07 ` Markus Triska
2006-03-02 15:13 ` B. T. Raven
2006-03-02 17:18 ` Markus Triska
2006-03-02 22:25 ` August Karlstrom [this message]
2006-03-03 8:39 ` Peter Tury
2006-03-03 11:25 ` Pascal Bourguignon
2006-03-03 13:31 ` Markus Triska
2006-03-04 2:21 ` Pascal Bourguignon
2006-03-04 15:20 ` Markus Triska
2006-03-04 19:19 ` August Karlstrom
2006-03-05 3:15 ` August Karlstrom
2006-03-05 15:13 ` Markus Triska
2006-03-05 16:05 ` August Karlstrom
2006-03-08 18:43 ` Kevin Rodgers
[not found] ` <mailman.88.1141843635.2832.help-gnu-emacs@gnu.org>
2006-03-09 13:08 ` August Karlstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ahKNf.46807$d5.203324@newsb.telia.net' \
--to=fusionfive@comhem.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).