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

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

Re: Retrieving the "include" directory for Emacs Modules


From: Eli Zaretskii
Subject: Re: Retrieving the "include" directory for Emacs Modules
Date: Sun, 08 Dec 2024 18:39:07 +0200

> Date: Sun, 08 Dec 2024 10:47:54 -0500
> From:  Stefan Monnier via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org>
> 
> > I honestly don't understand why you need this at all.  emacs-module.h
> > is supposed to be installed in the compilers include tree, where the
> > compiler looks for header files by default.  So you shouldn't even
> > need to know where the header lives, in order to compile a module.
> > The module's code should just do
> >
> >   #include <emacs-module.h>
> >
> > and that's it.  Or what am I missing?
> 
> That presumes that Emacs is installed system-wide (and "properly").

What other way is there to install Emacs?

> When the compilation of the module is initiated from within Emacs, it
> would make a lot of sense for this "ambient" Emacs to be able to tell
> `make/gcc/younameit` explicitly and reliably where its own
> `emacs-module.h` can be found.

But if Emacs is "not installed properly", we don't know that.



reply via email to

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