This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: scm_cur_loadp in an error hander
- To: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Subject: Re: scm_cur_loadp in an error hander
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 15 Mar 2000 14:13:43 -0500
- Cc: guile at sourceware dot cygnus dot com
- References: <m3n1o1axha.fsf@kei.cwru.edu> <xy7hfe90wr6.fsf@mdj.nada.kth.se>
Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> > I would like to display some file information in my application
> > if an error occured during file loading. I used scm_internal_catch
> > and defined the error hander like this:
>
> Try using scm_internal_stack_catch instead.
Well, it seems this doesn't help me. I cannot get the information
that I need. If I create the following ~/.guile file
---- ~/.guile ----
hello
------------------
Guile shows
% guile
ERROR: Unbound variable: hello
%
But I want the output like this:
% guile
.guile:1:1: Unbound variable: hello
%
Is this already possible with Guile? Do I need some hack?
Thanks,
Keisuke Nishida