From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marco Antoniotti Newsgroups: gmane.emacs.help Subject: Re: Re: Retrieving the "include" directory for Emacs Modules Date: Sun, 8 Dec 2024 10:59:28 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32723"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 08 11:00:34 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKE5a-0008MO-C2 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Dec 2024 11:00:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKE4o-00089U-SS; Sun, 08 Dec 2024 04:59:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKE4m-00089M-Mi for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 04:59:44 -0500 Original-Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKE4j-0007kj-2w for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 04:59:44 -0500 Original-Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-e3990f53d30so438849276.1 for ; Sun, 08 Dec 2024 01:59:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733651979; x=1734256779; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=hQ8zNhzGFKJmpbmBaY+3Imd/sb0yRWzkbNmMypmO+jk=; b=cuuGWfpqBIDGvJpuN39uqXtXL8YPxAlIiI0/WtGjFRL49MIgQGci62BqxJM9aqTE8w ONo7c7EEgXmY4g6jTA433LvnpjQ5sRoQrRfJWONNAaQAtvM8zE9jssvjaaEzLZ5ega1b KE3ygQ+E8lTgdNBzcAzJBQH3b5YjFEr5qcBft9ZJde7mSFqVQWz7D6URrrFMHBgCZ4Z+ IayoY30MoeZ9yhhllyODI28iGuDkP3VEdwAOI/zxOoX5hwMXFdZdSUgAbjPJzOr7hNAZ cUH/dJCj3JRbb50XECdLFt/WL1WWebAD6BjNABVQenpyN1gFWtfhKyn/WPu+9P+djjou fwNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733651979; x=1734256779; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hQ8zNhzGFKJmpbmBaY+3Imd/sb0yRWzkbNmMypmO+jk=; b=cLJyQ7NtoxvbEyOo5kQrjKpOvN7iytB4Zo1Siqolgxn+g58C2ki6Mps7880pn0E6+4 6Ek+tn4oEcTSi0GpBxeEUE90Wk2z5B6sV8HmgPhGivry+gJ4+LHtHOStpx83jLGRSOPT OhtWZs2aGqXlQskRc/LD7ckgfJlsc6KQr5zYkSf0ySngt4fcHePbJVnwwUL0ZWIS9zIZ f9wVwlWJP0FeXNqetkOwYVt7ohI/m937kLLxBDUM4CPr3vNDOz8oPUV884UdW3odlLJY udw2C8sfZOxblFayD3LnTbzOSaFQ9DpiLK+n3C95LZ4144z9eQTwZIdO9b4qtwLUGsyo rAng== X-Gm-Message-State: AOJu0Yx18hcI3cvH89o1DkfgY+2G1P5m2zBlYFGBxMSB6PR9ipkVwOZs Tu25g3Xr1Wzoc2IE/LdHNV9/Ap+dGAjy4dBY1/41iNg1GHXSqmRkWEDiYZnWuoQDpeL9AKeuW1B hqhcuV8aJbbsmK9whnt3/zCuIMI3H8SHU X-Gm-Gg: ASbGncsjuiFTR87ZojzUKKfp68b2EKuIfEHcXMexoNd7Xfm7lCZga9cJ8foYWkzhYVS hVCGg2a0e56Mdv5bhFXonX04KBMKiNM4= X-Google-Smtp-Source: AGHT+IGrUKGqF7dUGFvuCDnUW7+DALU6cDjaIflh20KO6LPo6uqY+e/pvO5oTVIgTawbBGUCW7HuBGG3V65pEWlI8bE= X-Received: by 2002:a05:6902:2487:b0:e39:90db:4024 with SMTP id 3f1490d57ef6-e3a0b71a0f6mr2980207276.8.1733651979605; Sun, 08 Dec 2024 01:59:39 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=marcoxa@gmail.com; helo=mail-yb1-xb32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148673 Archived-At: 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=E2=80=AFPM wro= te: > 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 > To: help-gnu-emacs@gnu.org > Subject: Retrieving the "include" directory for Emacs Modules > Message-ID: > qcARJ9Bp+1Djrg@mail.gmail.com> > Content-Type: text/plain; charset=3D"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 > To: help-gnu-emacs@gnu.org > Subject: Re: Retrieving the "include" directory for Emacs Modules > Message-ID: <86zfl7h2ag.fsf@gnu.org> > > > From: Marco Antoniotti > > 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 inclu= de > > 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 > *********************************************** > --=20 Marco Antoniotti Somewhere over the Rainbow