unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
To: guile-user@gnu.org, "Christopher Lam" <christopher.lck@gmail.com>,
	"Ludovic Courtès" <ludo@gnu.org>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: Unbound variable warning/exception
Date: Mon, 21 Dec 2020 11:48:14 +0100	[thread overview]
Message-ID: <A27E6529-81F1-4001-8B3B-84EB0807E882@korwin-zmijowski.fr> (raw)
In-Reply-To: <CAKVAZZJxA_+3+A9Xr8bjyMYA6Z=FBtFMXvUPMzwqpGAJ1djVnA@mail.gmail.com>

Hello !

Looking in the all of core Guile could save time!
I can see already an emacs geiser trick to add it automatically haha.
Auto-completion + auto-use-module = Awesome!

Cheers,

Jérémy

Le 21 décembre 2020 00:11:38 GMT+01:00, Christopher Lam <christopher.lck@gmail.com> a écrit :
>The exception printer would be a good one to upgrade.
>
>The dilemma is whether to search available modules in the current
>repository, or in the whole of core guile. Do we want to show e.g. "Unbound
>variable: vector-for-each. Did you forget (use-modules (srfi srfi-43))" ?
>
>On Sun, 20 Dec 2020 at 21:36, Ludovic Courtès <ludo@gnu.org> wrote:
>
>> Hi,
>>
>> Aleix Conchillo Flaqué <aconchillo@gmail.com> skribis:
>>
>> > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam
>> > <christopher.lck@gmail.com> wrote:
>> >>
>> >> Hi guilers, I saw in guix the incredibly useful unbound-variable
>> exception
>> >> printer written by Ludovic. I've adapted for use in gnucash as
>> >> https://github.com/Gnucash/gnucash/commit/6f951784 -- there are now in
>> >> guile 3.0.4 many more unbound-var warnings than in 3.0.2 -- 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.
>>
>> 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.
>>
>> Perhaps what could be done is export an 'unbound-variable handler that
>> does all this, and have the REPL use it?
>>
>> Thanks,
>> Ludo’.
>>
>>
>>

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.


      reply	other threads:[~2020-12-21 10:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19  1:25 Unbound variable warning/exception Christopher Lam
2020-12-19  1:46 ` Aleix Conchillo Flaqué
2020-12-19 10:08   ` Massimiliano Gubinelli
2020-12-19 13:07     ` Christopher Lam
2020-12-19 16:30       ` Massimiliano Gubinelli
2020-12-20 21:36   ` Ludovic Courtès
2020-12-20 23:11     ` Christopher Lam
2020-12-21 10:48       ` Jérémy Korwin-Zmijowski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A27E6529-81F1-4001-8B3B-84EB0807E882@korwin-zmijowski.fr \
    --to=jeremy@korwin-zmijowski.fr \
    --cc=christopher.lck@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).