From: Marco Antoniotti <marcoxa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Re: Retrieving the "include" directory for Emacs Modules
Date: Sun, 8 Dec 2024 10:59:28 +0100 [thread overview]
Message-ID: <CAKmY7cXFeP0NFxTY3sHsSR8V5=xf0LGELFOJUA_CMCrecC9GZw@mail.gmail.com> (raw)
In-Reply-To: <mailman.77.1733590872.28947.help-gnu-emacs@gnu.org>
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\"
Given that people (like me) are experimenting with emacs modules, I'd lobby
for the introduction of a 'include-direcotry' variable.
All the best
Marco
On Sat, Dec 7, 2024 at 6:02 PM <help-gnu-emacs-request@gnu.org> wrote:
> Send help-gnu-emacs mailing list submissions to
> help-gnu-emacs@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> or, via email, send a message with subject or body 'help' to
> help-gnu-emacs-request@gnu.org
>
> You can reach the person managing the list at
> help-gnu-emacs-owner@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of help-gnu-emacs digest..."
>
>
> Today's Topics:
>
> 1. Retrieving the "include" directory for Emacs Modules
> (Marco Antoniotti)
> 2. Re: Retrieving the "include" directory for Emacs Modules
> (Eli Zaretskii)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 7 Dec 2024 17:27:16 +0100
> From: Marco Antoniotti <marcoxa@gmail.com>
> To: help-gnu-emacs@gnu.org
> Subject: Retrieving the "include" directory for Emacs Modules
> Message-ID:
> <CAKmY7cVprXCPm6kibaCoBjWutcW2QMmRQCL=
> qcARJ9Bp+1Djrg@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi
>
> To compile Emacs C modules we need the proper 'include' directory. I.e.,
> we need to stick that information into Makefiles.
>
> We do have lisp-directory (and we can surmise the location of the include
> directory from it), but it would be nice to have something like
> em-include-directory (the em- prefix for "Emacs Module").
>
> Meanwhile, any idea about how to make this somewhat portable?
>
> Any idea?
>
> --
> Marco Antoniotti
> Somewhere over the Rainbow
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 07 Dec 2024 18:43:19 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Retrieving the "include" directory for Emacs Modules
> Message-ID: <86zfl7h2ag.fsf@gnu.org>
>
> > From: Marco Antoniotti <marcoxa@gmail.com>
> > Date: Sat, 7 Dec 2024 17:27:16 +0100
> >
> > To compile Emacs C modules we need the proper 'include' directory. I.e.,
> > we need to stick that information into Makefiles.
> >
> > We do have lisp-directory (and we can surmise the location of the include
> > directory from it), but it would be nice to have something like
> > em-include-directory (the em- prefix for "Emacs Module").
>
> Isn't that
>
> (expand-file-name "../../../include" data-directory)
>
> ?
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> https://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>
> ------------------------------
>
> End of help-gnu-emacs Digest, Vol 265, Issue 33
> ***********************************************
>
--
Marco Antoniotti
Somewhere over the Rainbow
next parent reply other threads:[~2024-12-08 9:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.77.1733590872.28947.help-gnu-emacs@gnu.org>
2024-12-08 9:59 ` Marco Antoniotti [this message]
2024-12-08 11:40 ` Retrieving the "include" directory for Emacs Modules Eli Zaretskii
2024-12-08 15:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-08 16:39 ` Eli Zaretskii
2024-12-08 16:48 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-08 17:46 ` Eli Zaretskii
2024-12-09 14:11 ` Stefan Monnier via Users list for the GNU Emacs text editor
[not found] <mailman.606.1733669386.12711.help-gnu-emacs@gnu.org>
2024-12-08 15:18 ` Marco Antoniotti
2024-12-08 15:29 ` Jean Louis
2024-12-08 15:36 ` Marco Antoniotti
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='CAKmY7cXFeP0NFxTY3sHsSR8V5=xf0LGELFOJUA_CMCrecC9GZw@mail.gmail.com' \
--to=marcoxa@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.