[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 13:40:00 +0200 |
> From: Marco Antoniotti <marcoxa@gmail.com>
> Date: Sun, 8 Dec 2024 10:59:28 +0100
>
> Sorry Eli
>
> your solution is not portable and it doesn't work on Mac and Windows (29.2)
>
> On Mac the following works
>
> ELISP> (expand-file-name "../include" data-directory)
> "/Applications/Emacs.app/Contents/Resources/include"
>
> On Windows the include folder is "higher" up.
> "C:\Program Files\Emacs\emacs-29.2\include\"
Sorry, I used too few "..". The correct way is
(expand-file-name "../../../../include" data-directory)
> Given that people (like me) are experimenting with emacs modules, I'd lobby
> for the introduction of a 'include-direcotry' variable.
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?
- Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/07
- Re: Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules,
Eli Zaretskii <=
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/09
Re: Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/08