all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phillip.lord@russet.org.uk (Phillip Lord)
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Dependency graph for Emacs Lisp files
Date: Thu, 01 Aug 2019 13:07:03 +0100	[thread overview]
Message-ID: <87pnlphyxk.fsf@russet.org.uk> (raw)
In-Reply-To: <8736ilnmp7.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 01 Aug 2019 13:34:44 +0200")



Lars Ingebrigtsen <larsi@gnus.org> writes:

> 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...)


`make check` currently uses the a fudge based on name matching between
tests and source files, but it missed any other form of
dependency. Having something better would be nice. I think autoloads
dependencies might be more thatn 3% of the problem, though, but if you
add a mechanism based on `require` then an autoload dependency could be
added later.

Rather than creating "dependency.el", though, why not create an
includeable Makefile? That way you might need to delete anything, just
let Make to it's dependency thing.

Phil



  reply	other threads:[~2019-08-01 12:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 11:34 Dependency graph for Emacs Lisp files Lars Ingebrigtsen
2019-08-01 12:07 ` Phillip Lord [this message]
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=87pnlphyxk.fsf@russet.org.uk \
    --to=phillip.lord@russet.org.uk \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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.