From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: Show who is requiring Date: Sat, 17 Nov 2012 10:41:29 +0100 Organization: Sebastien Vauban Message-ID: <80haoo7eie.fsf@somewhere.org> References: <80d2zd87t0.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353145512 26079 80.91.229.3 (17 Nov 2012 09:45:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2012 09:45:12 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Sat Nov 17 10:45:23 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 1TZexn-0006Mw-2f for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 10:45:23 +0100 Original-Received: from localhost ([::1]:57749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZexc-0002N7-VP for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 04:45:12 -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: 32 Injection-Info: mx04.eternal-september.org; posting-host="5da807328d6a3351ee2b595083918cf6"; logging-data="27098"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18LjU8h50XdS0Cy47oNEQoe" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:cQYHUYBQVJZmLNN5zq3xDpuypmU= sha1:uuwDeYSO7tTIEn4mySOwq6GZNGI= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:195417 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:87741 Archived-At: Hi Eli and Bastien, Bastien wrote: > Sebastien Vauban writes: > >> 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? > > Check this out: > > C-h f find-lisp-object-file-name RET I wasn't clear enough: what I'd like is that if, for example, helm-m-x.el contains a require of helm.el, then (with my advice'd require), when requiring helm-m-x, I'd see in the Messages: helm-m-x.el is now requiring helm.el So, I'm interested in the name of the package which contains require's of other packages (and executes them). That could be done statically on the file system, but I'd like to see the view of "who called who" for my Emacs session. Am I clearer in what I'm searching for? Best regards, Seb -- Sebastien Vauban