[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependency graph for Emacs Lisp files

From: Lars Ingebrigtsen
Subject: Re: Dependency graph for Emacs Lisp files
Date: Thu, 01 Aug 2019 14:16:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

address@hidden (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

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]