From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: bug#47084: Guile 3.0 - The module-use! 'target' functionality is broken Date: Tue, 4 May 2021 01:37:33 -0300 Message-ID: <20210504013733.7a430349@aicha> References: <20210312001738.32a82355@aicha> <20210503012641.38bf8149@aicha> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/XjI/uVs57s9l8RZ11Vn+5o="; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32344"; mail-complaints-to="usenet@ciao.gmane.io" To: 47084@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue May 04 06:38:19 2021 Return-path: Envelope-to: guile-bugs@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 1ldmp9-0008Kd-1w for guile-bugs@m.gmane-mx.org; Tue, 04 May 2021 06:38:19 +0200 Original-Received: from localhost ([::1]:50542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldmp8-00067h-5T for guile-bugs@m.gmane-mx.org; Tue, 04 May 2021 00:38:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldmot-000668-9H for bug-guile@gnu.org; Tue, 04 May 2021 00:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldmor-0001QZ-Pt for bug-guile@gnu.org; Tue, 04 May 2021 00:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldmor-0003wA-Ln for bug-guile@gnu.org; Tue, 04 May 2021 00:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Pirotte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 04 May 2021 04:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47084 X-GNU-PR-Package: guile Original-Received: via spool by 47084-submit@debbugs.gnu.org id=B47084.162010306415121 (code B ref 47084); Tue, 04 May 2021 04:38:01 +0000 Original-Received: (at 47084) by debbugs.gnu.org; 4 May 2021 04:37:44 +0000 Original-Received: from localhost ([127.0.0.1]:50652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldmoa-0003vp-Hv for submit@debbugs.gnu.org; Tue, 04 May 2021 00:37:44 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:50800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldmoY-0003vd-Jp for 47084@debbugs.gnu.org; Tue, 04 May 2021 00:37:43 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id E2B411BE008D for <47084@debbugs.gnu.org>; Tue, 4 May 2021 06:37:40 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MQuQmWqLXEgI for <47084@debbugs.gnu.org>; Tue, 4 May 2021 06:37:40 +0200 (CEST) Original-Received: from aicha (unknown [179.210.52.91]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 06EFB1BE0082 for <47084@debbugs.gnu.org>; Tue, 4 May 2021 06:37:39 +0200 (CEST) In-Reply-To: <20210503012641.38bf8149@aicha> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10035 Archived-At: --Sig_/XjI/uVs57s9l8RZ11Vn+5o= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, > ... > Commit 19f38a38fde7da5fbcf29d0ebc4574e993210110 fixes the > bug, many thanks. > Now, I have a question related to 'new' warnings though - I say 'new' > because there are no warnings in 2.2 - for which I don't see how one > can resolve those, unless mute them all by calling > default-duplicate-binding-handler and remove warn-override-core > and warn from the default list. The proper way to stop these warnings is to add a #:re-export-and-replace clause to the module definition of the module that calls module-use! - I didn't think I had to do this because we didn't have to using 2.2 (nor #:re-export nor #:replace, within the context of module-use! that is, and the #:re-export-and-replace clause is new to 3.0) - like this: ;;; module (a) starts here (define-module (foo) #:use-module (srfi srfi-1)) #:re-export-and-replace (for-each)) (eval-when (expand load eval) (module-use! (module-public-interface (current-module)) (resolve-interface '(srfi srfi-1)))) ;;; module (foo) ends here Now the (bar) module or bar.scm file example file may skip the call to default-duplicate-binding-handler: ;;; file bar.scm starts here (use-modules (foo)) =20 (for-each display '(5 6 7 8)) (newline) ;; file bar.scm stops here=20 ;; drop the two above module/file somwhere ;;; now, fire geiser and (add-to-load-path "/your/path") (load "/your/path/bar.scm") ;; you shouldn't see any warnings anymore... David --Sig_/XjI/uVs57s9l8RZ11Vn+5o= Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmCQz40ACgkQ83T9k6MF etcpRAgAj/SKV/YeVKJARCAiOTJ0hvEaT4rDUaZG3l/gnVWLdNu6JBbkkEggqdQ3 J+WMI4PfgeNTVwx+uqx6WSX6/10R19v+Qgpkb0EPcXrlBgPj1mybcgUO6kW97t8l X9aAVu3+7/ffxDjw8LMM+yIyhFk3zksDX56vqx6eFJ0aGp6c9ek0ApgtFLsK0txE Y+Fh9Hkk+cIlqPl9Nn0cHkpfJBbxW7A03cV0tO5G0wDz16HzxEV+cIBSlZsIYIQf 0zK9oceptBQPvjeJc3HqfMlkuQ1+M96V+G5eBtpUOOBpLSqqv9JhaRFkBAbFmp7G KTHXZS4bLeaUQDYWPnJCd27KuWQT8g== =Lroi -----END PGP SIGNATURE----- --Sig_/XjI/uVs57s9l8RZ11Vn+5o=--