help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show who is requiring


From: Oleksandr Gavenko
Subject: Re: Show who is requiring
Date: Sat, 17 Nov 2012 11:43:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]