From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Show who is requiring Date: Mon, 19 Nov 2012 11:03:59 -0500 Organization: A noiseless patient Spider Message-ID: References: <80d2zd87t0.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353341120 21520 80.91.229.3 (19 Nov 2012 16:05:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2012 16:05:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 17:05:32 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TaTql-0006Ro-1d for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 17:05:31 +0100 Original-Received: from localhost ([::1]:48646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTqX-0003EO-CZ for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 11:05:17 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Injection-Info: mx04.eternal-september.org; posting-host="9b718dca22ff4598baab0f6e08a1d03d"; logging-data="3946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18847ReZEwPOGQDqNPE4q3e" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:qNBwKmqU4ji3G+8EifdHOqPjwlE= sha1:mxymjYzCutGGyjXkEpopspHIS9U= Original-Xref: usenet.stanford.edu gnu.emacs.help:195470 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87792 Archived-At: >> > 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? IIUC he has put an advice on `require', so in this advice, `load-file-name' should contain the name of the code that's calling the `require'. Stefan