all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Dependency graph for Emacs Lisp files
@ 2019-08-01 11:34 Lars Ingebrigtsen
  2019-08-01 12:07 ` Phillip Lord
  2019-08-01 13:00 ` Stefan Monnier
  0 siblings, 2 replies; 13+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-01 11:34 UTC (permalink / raw)
  To: emacs-devel

Currently, saying "make" in Emacs doesn't recompile .el files that
depend on other files.  This is generally not a catastrophe, because it
only makes a difference when you change a macro/defsubst (and sometimes
a variable).

But when it does matter, it's annoying that you have to do a "make
bootstrap" to get to a working state.

Making a full dependency graph is difficult, of course, due to all the
various methods files depend on each other (require, load, autoload),
but for the things we're interested in to reduce breakages
(macros/defsubst/defvar), we get 97% of the way there by just looking at
`require'.

So would it make a sense to add something that, along the lines of the
stuff that gathers autoloads, creates a dependency.el file (by just
doing `re-search-forward "(require '"' on all the files), and that would
use this to delete .elc files before compiling the lisp directory, based
on whether something "up" in the dependency chain has changed?

(I'd guess there are some complications here because the resulting graph
can be cyclical, but I don't think that's something that can't be worked
around...)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-08-01 15:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-01 11:34 Dependency graph for Emacs Lisp files Lars Ingebrigtsen
2019-08-01 12:07 ` Phillip Lord
2019-08-01 12:16   ` Lars Ingebrigtsen
2019-08-01 12:41     ` Noam Postavsky
2019-08-01 13:18       ` Lars Ingebrigtsen
2019-08-01 13:10     ` Phillip Lord
2019-08-01 13:16       ` Lars Ingebrigtsen
2019-08-01 13:24         ` Andreas Schwab
2019-08-01 15:29         ` Stefan Monnier
2019-08-01 15:57           ` Lars Ingebrigtsen
2019-08-01 13:00 ` Stefan Monnier
2019-08-01 13:26   ` Lars Ingebrigtsen
2019-08-01 15:27     ` Stefan Monnier

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.