From: Lars Ingebrigtsen <larsi@gnus.org>
To: phillip.lord@russet.org.uk (Phillip Lord)
Cc: emacs-devel@gnu.org
Subject: Re: Dependency graph for Emacs Lisp files
Date: Thu, 01 Aug 2019 14:16:44 +0200 [thread overview]
Message-ID: <87tvb1m66r.fsf@mouse.gnus.org> (raw)
In-Reply-To: <87pnlphyxk.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 01 Aug 2019 13:07:03 +0100")
phillip.lord@russet.org.uk (Phillip Lord) writes:
> `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.
autoloads generally don't lead to compilation breakages, do they? You
can't autoload a macro meaningfully, or a variable...
> 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.
I am no make expert at all, so I don't quite know what that would look
like.
My thought was that if file A.el depended on file B.el, and B.el has
changed, then there would just be a step in the compilation process that
deleted both A.elc and B.elc, and then the rest of the process would
continue on as before.
(We need to delete B.elc because otherwise `(require B)' in A.el would
load the old B.elc, and A.el might be byte-compiled before B.el.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-08-01 12:16 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
2019-08-01 12:16 ` Lars Ingebrigtsen [this message]
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=87tvb1m66r.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=phillip.lord@russet.org.uk \
/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.