home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2268 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.8 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!mips!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: need some help with conditions and CLIM
  5. Message-ID: <171n9mINNe9u@early-bird.think.com>
  6. Date: 21 Aug 92 03:18:14 GMT
  7. References: <CHYDE.92Aug20142411@pecos.ads.com>
  8. Distribution: comp
  9. Organization: Thinking Machines Corporation, Cambridge MA, USA
  10. Lines: 29
  11. NNTP-Posting-Host: gandalf.think.com
  12.  
  13. In article <CHYDE.92Aug20142411@pecos.ads.com> chyde@pecos.ads.com (Clinton Hyde) writes:
  14. >at the moment, I'm getting a ABORT or some sort signalled out of
  15. >CLIM's accepting-values, but if I use handler-case to try to grab it,
  16. >I seem to have the wrong name or something. so what I need today is to
  17. >know what gets signalled when I click on the <abort> exit-box. for the
  18. >future I'd like to know how to find ANYTHING that's signalled.
  19.  
  20. If it's done correctly, aborting should be implemented by invoking a
  21. restart, not by signalling a condition.  If you want to establish a handler
  22. for this, you can use WITH-SIMPLE-RESTART or RESTART-CASE, specifying the
  23. restart named ABORT.
  24.  
  25. You'll have to do this inside the ACCEPTING-VALUES, since ACCEPTING-VALUES
  26. presumably sets up its own ABORT restart, and the innermost one is the one
  27. that will be invoked.
  28.  
  29. It's also possible that ACCEPTING-VALUES is using some other mechanism to
  30. implement the exit boxes.  It could just be doing a RETURN-FROM.
  31.  
  32. I don't know of a way to find out what restarts or other exit mechanisms
  33. are being invoked, the way you can for conditions being signalled.  And if
  34. it's using a lexical mechanism like GO or RETURN-FROM, there's no way for
  35. you to intercept it even if you do find out.
  36.  
  37. -- 
  38. Barry Margolin
  39. System Manager, Thinking Machines Corp.
  40.  
  41. barmar@think.com          {uunet,harvard}!think!barmar
  42.