help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Add code from other files


From: Emanuel Berg
Subject: Re: Add code from other files
Date: Thu, 04 Jul 2024 21:57:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

uzibalqa wrote:

> I have a main file and three auxiliary files. I can use
> `load` for the auxiliary files and use `provide` for the
> main file. Would this be the correct approach ?

Use `provide' downmost in all your files, and whenever one
function is needed in some other file, you `require' that file
first (topmost) in THAT file.

Is a good way to do it.

If you byte-compile it will tell you, if some file uses
something not defined in that file, and also not require'd
from another where it is.

So you can both find bugs that way and find out what needs to
be required by what.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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