From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: Show who is requiring Date: Mon, 19 Nov 2012 15:18:17 +0000 Message-ID: References: <80d2zd87t0.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353338355 26600 80.91.229.3 (19 Nov 2012 15:19:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2012 15:19:15 +0000 (UTC) To: Stefan Monnier , "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:19: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 1TaT7i-0003cS-Qd for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 16:18:58 +0100 Original-Received: from localhost ([::1]:46472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaT7Y-0000LC-GF for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 10:18:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaT7K-0000Kh-C1 for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:18:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaT7E-0002Df-It for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:18:34 -0500 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:20769 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaT7E-00029l-1Q for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 10:18:28 -0500 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.2.318.1; Mon, 19 Nov 2012 09:18:19 -0600 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.125]) by USSLMMBX002.net.plm.eds.com ([169.254.1.110]) with mapi id 14.02.0318.001; Mon, 19 Nov 2012 09:18:19 -0600 Thread-Topic: Show who is requiring Thread-Index: AQHNxE+NEnGGn8r6kE2/KzEq8IlZ1ZfxRKqbgAACBxA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.224.156] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 134.244.32.85 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:87789 Archived-At: > From: Stefan Monnier > Sent: Monday, November 19, 2012 8:59 AM > To: help-gnu-emacs@gnu.org > Subject: Re: Show who is requiring >=20 > > 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? >=20 > IIUC you want load-file-name. How does this report the names of files that require another package? =20 Perhaps you assume the OP's scenario is that he has already loaded the pack= ages that require? My understanding of the request is the inverse: for some package PKG, he wa= nts 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 b= e told definitively that menu-bar.el and ruler-mode.el depend on it. Cheers, Mark