Received: by 10.66.73.1 with SMTP id h1mr1562954pav.0.1353145457545; Sat, 17 Nov 2012 01:44:17 -0800 (PST) Path: s9ni21221pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!not-for-mail From: Oleksandr Gavenko Newsgroups: gnu.emacs.help Subject: Re: Show who is requiring Date: Sat, 17 Nov 2012 11:43:57 +0200 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Lines: 24 Approved: help-gnu-em...@gnu.org Message-ID: References: <80d2zd87t0.fsf@somewhere.org> <87k3tktyya.fsf@bzg.ath.cx> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 X-Trace: usenet.stanford.edu 1353145457 19887 208.118.235.17 (17 Nov 2012 09:44:17 GMT) X-Complaints-To: action@cs.stanford.edu To: help-gnu-em...@gnu.org Envelope-to: help-gnu-em...@gnu.org X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 37.229.16.202 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:2jXmt9CzAllTMRFjg+ERjs06FSc= 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-em...@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: , Bytes: 2226 Content-Type: text/plain On 2012-11-17, Bastien wrote: >> 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 Why instead of: (symbol-file 'c-mode) use: (find-lisp-object-file-name 'c-mode (symbol-function 'c-mode)) ?? -- Best regards!