[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tool to display library dependencies?

From: Kevin Rodgers
Subject: Re: tool to display library dependencies?
Date: Thu, 30 Dec 2004 13:54:59 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Drew Adams wrote:
> When I try (progn (require 'foo) (file-dependencies "foo")) in Emacs 20 I
> get an error from the call to (feature-file mwheel): "mwheel is not a
> currently loaded feature".
> This is such a _useful_ feature, and it's so close to being generally
> usable. I can try myself to hack it up to get around this, but perhaps you
> have a suggestion or two (or a fix)?

Sure, just conditionalize the lambda body:

(if (featurep feature)

That will yield a feature symbol instead of a file name string for all
features that were not actually loaded.

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]