all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: tool to display library dependencies?
Date: Thu, 30 Dec 2004 13:54:59 -0700	[thread overview]
Message-ID: <33j899F421chsU1@individual.net> (raw)
In-Reply-To: <mailman.10104.1104437134.27204.help-gnu-emacs@gnu.org>

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)
     (let*
       ...)
     feature)

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

-- 
Kevin Rodgers

       reply	other threads:[~2004-12-30 20:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.10104.1104437134.27204.help-gnu-emacs@gnu.org>
2004-12-30 20:54 ` Kevin Rodgers [this message]
     [not found] <mailman.10066.1104423032.27204.help-gnu-emacs@gnu.org>
2004-12-30 18:59 ` tool to display library dependencies? Kevin Rodgers
2004-12-30 19:49   ` Drew Adams
2004-12-30 15:58 Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=33j899F421chsU1@individual.net \
    --to=ihs_4664@yahoo.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.