emacs-devel
[Top][All Lists]
Advanced

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

Re: How does one find out what file a library has been loaded from?


From: Eli Zaretskii
Subject: Re: How does one find out what file a library has been loaded from?
Date: Sun, 24 Jul 2022 19:07:26 +0300

> From: Andrea Corallo <akrl@sdf.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
> Date: Tue, 19 Jul 2022 15:32:40 +0000
> 
> If you have a native compiled function (say `find-file') to get the eln
> file containing it one can use.
> 
> (native-comp-unit-file (subr-native-comp-unit (symbol-function #'find-file)))

Andrea, does anything similar to subr-native-comp-unit exists for
other types of symbols accepted by symbol-file: defvar and defface?

If not, then the only way to produce the same information for them
would be to generate the base name of the .eln file with
comp-el-to-eln-rel-filename, and then look for that file along
native-comp-eln-load-path, right?



reply via email to

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