From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Wed, 11 Dec 2024 15:01:44 +0200 Message-ID: <86bjxi4blz.fsf@gnu.org> References: <86ttbcdhwn.fsf@gnu.org> <865xnscj0s.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3140"; 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 Wed Dec 11 14:02:28 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 1tLMMG-0000hC-Bm for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 14:02:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLMLn-0006mH-5T; Wed, 11 Dec 2024 08:01:59 -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 1tLMLe-0006k7-S7 for help-gnu-emacs@gnu.org; Wed, 11 Dec 2024 08:01:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLMLe-0003Ef-Js for help-gnu-emacs@gnu.org; Wed, 11 Dec 2024 08:01:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6H3F8a7pQFafIUlnb/dRG+mPnhdc0BsgNzWkVkKopPE=; b=YI1Sbcc+6HNk X1SuIUx5gbyZXcPsOAXGKG2BYZInAv6P4ekCMNpA4b0Tr+OYn5KHlHQ+hQEqs0qFyVAlCTP3lMtF0 U0gkvRvsgUkzbMVMTZLqp4gKw3Z52EQlkTWhbkYeWPhxfGxfJYKEx/FAgFokXFyBuwlEtfl/LtSza j0IuPO5bQkdv/9jZyR+cWE2mm8CJa7Unkzz64MygHmH89ns9QV1ZTjK8MYBRpTbfwTGVTcc4u54/b OQAmHo63yrwEVM+BM6kYCoCisly2bYkIBfsrUIQJDEMfSN4kXFicrvWjPT+we5utzVq3ph5VCmF3Z XXEuz5ow18A9F0QDdo8BtQ==; In-Reply-To: (message from Stefan Monnier via Users list for the GNU Emacs text editor on Tue, 10 Dec 2024 22:23:05 -0500) 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:148757 Archived-At: > Date: Tue, 10 Dec 2024 22:23:05 -0500 > From: Stefan Monnier via Users list for the GNU Emacs text editor > > >> > As I tried to explain, if emacs-module.h is not installed in its > >> > intended place, we cannot know where it is installed. > >> The patch below would make sure that `emacs-module.h` is always > >> available at `$(data-directory)/include/emacs-module.h`. > > Sorry, this is wrong. [...] this is a change that will break previous > > (and correct) behavior. > > I don't see how it would break anything: the .h file is still *also* > copied to the $(includedir) for those people who want to compile their > module outside of Emacs. That makes this easier to accept, but there are still issues. > > No compiler will look in that directory without a suitable -I option, > > That's OK: the sole purpose of the change is to let ELPA packages call > `gcc` with such a `-I`! Let's discuss this in a proper place, not here, okay? In particular, I'd like to hear more opinions and data points, from people who don't necessarily read this forum.