From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?ISO-8859-1?Q?J=E9r=E9my_Korwin-Zmijowski?= Newsgroups: gmane.lisp.guile.user Subject: Re: Unbound variable warning/exception Date: Mon, 21 Dec 2020 11:48:14 +0100 Message-ID: References: <878s9s88iq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27134"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: guile-user To: guile-user@gnu.org, Christopher Lam , =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Dec 21 11:49:54 2020 Return-path: Envelope-to: guile-user@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 1krIlF-0006wO-1Q for guile-user@m.gmane-mx.org; Mon, 21 Dec 2020 11:49:53 +0100 Original-Received: from localhost ([::1]:48740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krIlE-0005Q4-4R for guile-user@m.gmane-mx.org; Mon, 21 Dec 2020 05:49:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krIjo-0005B0-Gh for guile-user@gnu.org; Mon, 21 Dec 2020 05:48:24 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:42903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krIjm-0007Ir-3G; Mon, 21 Dec 2020 05:48:24 -0500 X-Originating-IP: 91.169.127.99 Original-Received: from [127.0.0.1] (91-169-127-99.subs.proxad.net [91.169.127.99]) (Authenticated sender: jeremy@korwin-zmijowski.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id B2D331BF204; Mon, 21 Dec 2020 10:48:16 +0000 (UTC) In-Reply-To: Received-SPF: none client-ip=217.70.183.201; envelope-from=jeremy@korwin-zmijowski.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17099 Archived-At: Hello ! Looking in the all of core Guile could save time! I can see already an emacs geiser trick to add it automatically haha=2E Auto-completion + auto-use-module =3D Awesome! Cheers, J=C3=A9r=C3=A9my Le 21 d=C3=A9cembre 2020 00:11:38 GMT+01:00, Christopher Lam a =C3=A9crit=C2=A0: >The exception printer would be a good one to upgrade=2E > >The dilemma is whether to search available modules in the current >repository, or in the whole of core guile=2E Do we want to show e=2Eg=2E = "Unbound >variable: vector-for-each=2E Did you forget (use-modules (srfi srfi-43))"= ? > >On Sun, 20 Dec 2020 at 21:36, Ludovic Court=C3=A8s wrote= : > >> Hi, >> >> Aleix Conchillo Flaqu=C3=A9 skribis: >> >> > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam >> > wrote: >> >> >> >> Hi guilers, I saw in guix the incredibly useful unbound-variable >> exception >> >> printer written by Ludovic=2E I've adapted for use in gnucash as >> >> https://github=2Ecom/Gnucash/gnucash/commit/6f951784 -- there are no= w in >> >> guile 3=2E0=2E4 many more unbound-var warnings than in 3=2E0=2E2 -- = wouldn't it >> be >> >> a useful hint to add to the warning in core guile as well? >> > >> > Wow, this is great! >> > >> > This should definitely be added to guile by default=2E >> >> In Guix, the hint is displayed by an 'unbound-variable exception >> handler, not by the 'unbound-variable printer; I think doing it in the >> printer could be confusing=2E >> >> Perhaps what could be done is export an 'unbound-variable handler that >> does all this, and have the REPL use it? >> >> Thanks, >> Ludo=E2=80=99=2E >> >> >> --=20 Envoy=C3=A9 de mon appareil Android avec Courriel K-9 Mail=2E Veuillez exc= user ma bri=C3=A8vet=C3=A9=2E