[Top][All Lists]

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

RE: Show who is requiring

From: Ludwig, Mark
Subject: RE: Show who is requiring
Date: Mon, 19 Nov 2012 15:18:17 +0000

> From: Stefan Monnier
> Sent: Monday, November 19, 2012 8:59 AM
> To:
> Subject: Re: Show who is requiring
> > I tried using (current-buffer) to get the name of the "source" package
> > (i.e., the one which makes the `require' request), but that's
> > wrong. Any idea how to get the name of the "caller" package?
> IIUC you want load-file-name.

How does this report the names of files that require another package?  

Perhaps you assume the OP's scenario is that he has already loaded the packages 
that require?
My understanding of the request is the inverse: for some package PKG, he wants 
to find where it is used.
The OP wants a list of other packages that require PKG.

For example, from the 23.1 Lisp source, we have (grep -n):

fringe.el:162:  :require 'fringe
fringe.el:262:(provide 'fringe)
menu-bar.el:874:  (require 'fringe)
menu-bar.el:886:  (require 'fringe)
menu-bar.el:898:  (require 'fringe)
ruler-mode.el:114:(require 'fringe)

If the OP is interested in the fringe package, he is looking for a way to be 
told definitively that menu-bar.el and ruler-mode.el depend on it.


reply via email to

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