all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Improving load-history for modules
@ 2023-10-20 22:06 Spencer Baugh
  0 siblings, 0 replies; only message in thread
From: Spencer Baugh @ 2023-10-20 22:06 UTC (permalink / raw)
  To: emacs-devel


If I have a module which is built from multiple source files each of
which define functions and variables, it would be nice for
find-lisp-object-file-name and/or symbol-file to return the actual file
that each function and variable was defined in.  That way
help-view-source works.

It doesn't seem like this is possible currently.

It used to be possible by manually adding entries to load-history inside
the module which corresponded to each function loaded.  But bug#30164
added proper load-history entries for modules, which shadow these, so
this doesn't work anymore.  Still, we still do this in
https://github.com/janestreet/ecaml

What's the Right Way to tell Emacs about the association between source
files making up a module, and the functions defined by that module?




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-20 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 22:06 Improving load-history for modules Spencer Baugh

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.