all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Show who is requiring
Date: Mon, 19 Nov 2012 15:18:17 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1AB5D177FB@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <jwvy5hx3ah9.fsf-monnier+gnu.emacs.help@gnu.org>

> From: Stefan Monnier
> Sent: Monday, November 19, 2012 8:59 AM
> To: help-gnu-emacs@gnu.org
> 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.

Cheers,
Mark




  reply	other threads:[~2012-11-19 15:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 23:08 Show who is requiring Sebastien Vauban
2012-11-17  7:53 ` Eli Zaretskii
2012-11-17  8:29 ` Bastien
2012-11-17  9:43   ` Oleksandr Gavenko
2012-11-17 10:05     ` Bastien
     [not found] ` <mailman.13164.1353140953.855.help-gnu-emacs@gnu.org>
2012-11-17  9:41   ` Sebastien Vauban
2012-11-17 10:11     ` Eli Zaretskii
2012-11-17 10:38       ` Thien-Thi Nguyen
2012-11-17 11:02         ` Eli Zaretskii
2012-11-17 12:00           ` Thien-Thi Nguyen
2012-11-17 16:17 ` Drew Adams
2012-11-19 14:59 ` Stefan Monnier
2012-11-19 15:18   ` Ludwig, Mark [this message]
     [not found]   ` <mailman.13321.1353338324.855.help-gnu-emacs@gnu.org>
2012-11-19 16:03     ` Stefan Monnier
2012-11-19 16:13       ` Sebastien Vauban
2012-12-07 21:57         ` Sebastien Vauban
2012-12-07 22:31           ` Sebastien Vauban
2012-12-07 22:54             ` Sebastien Vauban
2012-12-11  1:57           ` Stefan Monnier
2012-11-19 15:54 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5672F8AD4C054BAF167C9801500D1AB5D177FB@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.