all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Dependency graph for Emacs Lisp files
Date: Thu, 01 Aug 2019 13:34:44 +0200	[thread overview]
Message-ID: <8736ilnmp7.fsf@mouse.gnus.org> (raw)

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




             reply	other threads:[~2019-08-01 11:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 11:34 Lars Ingebrigtsen [this message]
2019-08-01 12:07 ` Dependency graph for Emacs Lisp files 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736ilnmp7.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.