From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf Schlatte Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Mon, 09 Dec 2024 16:50:58 +0100 Message-ID: References: <86ttbcdhwn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39637"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:ZFudjPu/WFrPMoY6IxoMAavob+Y= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 16:51:54 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 1tKg38-000A9K-4Y for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 16:51:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKg2b-0000mF-Tp; Mon, 09 Dec 2024 10:51:21 -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 1tKg2X-0000lz-1l for help-gnu-emacs@gnu.org; Mon, 09 Dec 2024 10:51:17 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKg2U-0007nP-Hk for help-gnu-emacs@gnu.org; Mon, 09 Dec 2024 10:51:16 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1tKg2O-0009F5-21 for help-gnu-emacs@gnu.org; Mon, 09 Dec 2024 16:51:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:148718 Archived-At: Eli Zaretskii writes: >> From: Marco Antoniotti >> Date: Mon, 9 Dec 2024 10:58:57 +0100 >> >> On my Mac, If I install emacs as a "formula" (i.e., not a s an app) things >> seem installed as they should be. OTOH the brew "cask" (which installs a >> .app in the Application directory) seems to create something that Apple >> likes, but that STILL may be told to have a pointer to the include >> directory as it does to the data-directory. >> >> This is obviously something that the brew folks should deal with, but the >> notion of having a variable that tracks the include directory still has >> merit. At least as an extra guideline to people like the brew maintainers. > > As I tried to explain, if emacs-module.h is not installed in its > intended place, we cannot know where it is installed. We only know > that from the default installation locations we have in our Makefiles, > but if some distros modify that, we cannot know. > > And I still contend that the correct installation should put this file > where all the other header files are, and then the compiler will > always find it. Users who don't want to fight the uphill battle > against brew could simply copy the file to the compiler's include > directory, and be done. `make install' for the nextstep backend produces Emacs.app, a self-contained bundle that can be double-clicked to start Emacs but is also a directory that contains the standard Emacs files inside, as Emacs.app/Contents/Resources/{etc,include,info,lisp,man,site-lisp,...}. I guess this is the case that Marco encounters: C-h N opens /Emacs.app/Contents/Resources/etc/NEWS, so the running Emacs must have some knowledge about where it is installed.