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.devel Subject: Re: master 888ff3755d4 1/3: New function internal--c-header-file-path Date: Tue, 07 Jan 2025 14:09:41 +0200 Message-ID: <8634hu6d16.fsf@gnu.org> References: <864j2b660v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32497"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 07 13:10:50 2025 Return-path: Envelope-to: ged-emacs-devel@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 1tV8Q4-0008Co-GR for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jan 2025 13:10:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV8P6-0002Ky-B3; Tue, 07 Jan 2025 07:09:48 -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 1tV8P4-0002Ka-5m for emacs-devel@gnu.org; Tue, 07 Jan 2025 07:09:46 -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 1tV8P3-0008V4-TP; Tue, 07 Jan 2025 07:09:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Pb6EIqNuR/0h8E2QpyfVSPbwAJUWshIp50YhrCfyLo4=; b=nVXmoFmUecrH662SHMZ1 rMTja+Up2LQlUjGIEw8n6yqOkNrs4TcswYSrsua2WDhJfy90Gn5McPcWVNmqMi2bgfAo/4YZZJGvd 3IkK1OFWGFDmYMcB5aIMPtLrKPat3ojlVCDXauQ93z6uJmt5wlMRHlhd9IJfM62MH9UgvuHGkGAW4 WP+FMQhJajNTzZWTGmcwpUFf/PodpGrjAKBnstezGx2MCmsfB1ObmgkkVMRn5kYABHtkWHcoegdrf YiyfRECVmeOrr8y29wiV7UZ/MWSiIDTuN4KSWhtL/fe0RG/BeufGvT34bghEKj4D7fMRGm6fzuihi CwyRoxECNZYJDA==; In-Reply-To: (message from Stefan Kangas on Mon, 6 Jan 2025 15:44:34 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327760 Archived-At: > From: Stefan Kangas > Date: Mon, 6 Jan 2025 15:44:34 -0600 > Cc: emacs-devel@gnu.org > > > The way to ask GCC to show the list of directories where it looks for > > header files is like this: > > > > (call-process "gcc" nil BUFFER nil "-v" "-E" "-") > > > > and then look in BUFFER for text that begins with "#include <...> > > search starts here:" and ends with "End of search list." What's > > in-between is the list of include directories, one directory per line, > > which GCC searches for header file, in the order it searches them. > > Thanks for helping improve this. How about the attached patch? LGTM, thanks. But I agree with Björn that we should also try "cc".