This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: scm_cur_loadp in an error hander


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]