From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Show who is requiring Date: Mon, 19 Nov 2012 08:54:28 -0700 Message-ID: References: <80d2zd87t0.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353340489 15718 80.91.229.3 (19 Nov 2012 15:54:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2012 15:54:49 +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 16:55:01 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 1TaTga-000558-M5 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 16:55:00 +0100 Original-Received: from localhost ([::1]:39883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTgQ-0006Bv-FW for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 10:54:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTgG-0006BY-71 for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:54:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaTg6-00058I-Cb for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:54:40 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:46247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTg6-00057z-6P for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:54:30 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TaTg9-0004iR-Pz for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 16:54:33 +0100 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2012 16:54:33 +0100 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2012 16:54:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <80d2zd87t0.fsf@somewhere.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:87791 Archived-At: On 11/16/12 4:08 PM, Sebastien Vauban wrote: > Hello, > > I'd like to advice `require' in order to show which package is making the call > to require another one. > > 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? I think the `load-file-name' variable has that information. -- Kevin Rodgers Denver, Colorado, USA