From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vili Aapro Newsgroups: gmane.lisp.guile.devel Subject: Re: Feature request: make Guile compiler always write absolute paths in .go files for Geiser compatiblity Date: Mon, 25 Sep 2023 12:36:04 +0300 Message-ID: <20230925123604.57571c02@vilij-ESPRIMO-Q510> References: <20230901123326.0f0632cb@vilij-LIFEBOOK-E744> <43058127-5a40-309b-1d82-649e8eb394a2@telenet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21616"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: Maxime Devos Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Sep 25 11:36:55 2023 Return-path: Envelope-to: guile-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 1qki1N-0005PF-N0 for guile-devel@m.gmane-mx.org; Mon, 25 Sep 2023 11:36:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qki0o-0002Cg-0n; Mon, 25 Sep 2023 05:36:18 -0400 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 1qki0l-0002Bk-Sb for guile-devel@gnu.org; Mon, 25 Sep 2023 05:36:16 -0400 Original-Received: from mail.kapsi.fi ([2001:67c:1be8::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qki0j-0000Ht-RS for guile-devel@gnu.org; Mon, 25 Sep 2023 05:36:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EJguileK04l3Ycn8pQDzVNVBcoP2VFV4D0SgD8j7rSw=; b=o+iBU2spclpzcVeU5bg5bfmLMW 3BAVXK7P3apFL8VoCX7ouBKaW5MmTSjxwKI46NJ2ZEj3XvldCtzpqt1pUGcQcFJhmNxoaUfCEFblC jFGHgyEpiZeiu2rIDmHOE+l/4Ky/O1VMvRMDE3swBUVFQ30RyQFS6nL52pvpXhCdDyRn/bvIaiMMy VVi0EX/8lBfMGh8tvaa8b+CfoEy16Mw2cHDqnmtottl/ik/amXgyxxcxAOBLjYPa9akEKoiDLWF7b kwOuTj7OXmZrz3k3uzxGqEW8S4W2xcjBLQR5LD7SDJMTwd8DZObnx6a3HmMUy/xd5YLNjqUMVnXXS oenTgQ3A==; Original-Received: from dyvqbjxz4-y9z98tdhrkt-4.rev.dnainternet.fi ([2001:14bb:45a:13ce:98f8:3b4e:f203:3391] helo=vilij-ESPRIMO-Q510) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qki0c-0068UQ-0E; Mon, 25 Sep 2023 12:36:06 +0300 In-Reply-To: <43058127-5a40-309b-1d82-649e8eb394a2@telenet.be> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-SA-Exim-Connect-IP: 2001:14bb:45a:13ce:98f8:3b4e:f203:3391 X-SA-Exim-Mail-From: vili.aapro@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Received-SPF: pass client-ip=2001:67c:1be8::25; envelope-from=vilij@kapsi.fi; helo=mail.kapsi.fi X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21978 Archived-At: On Mon, 25 Sep 2023 11:26:31 +0200 Maxime Devos wrote: > Sounds like a very bad idea. The absolute file name would be somewhere > in the build directory, which very likely doesn't exist anymore on a > typical installation. Yes, you are right. > I suppose that whatever code > is responsible for loading .go/.scm can be adjusted to add a prefix > turning it in an absolute file name. Yes, this must be the way. The loader should do the job. > > One wrong way to find out the absolute path would be to go through > > %load-path, but the semantics of that would break under mutation. > Can you elaborate? I was just thinking of a dirty fix on the Emacs side of things, to search for the module through %load-path, that that would break when %load-path was mutated.