home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0249.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  1.5 KB  |  39 lines

  1.  
  2. >>Escuse me if this is a simple question, but i am a Unix novice.
  3. >>What is the best way to go between VI & Franz when debugging a
  4. >>program?  The way I currently do it is to ctrl-Z out of Franz,
  5. >>FG to my VI process, correct my code, FG back to FRANZ, load the
  6. >>corrected code.  Is there a better way (do not tell me about
  7. >>Emacs because that is not an option)?
  8.  
  9. It's undocumented in the franz opus 37 manual, but may be in the opus
  10. 38:  In franz, type (vi foo) and lisp will spin up vi.  If it can't
  11. find the file foo, it tries for foo.l before creating a new file.  If
  12. you invoke it as (vil foo), it will load foo back in after you exit
  13. from vi.  There are similar functions called ex and exl.  
  14.  
  15. If you're using BSD4.2, you probably have opus 38.  A new book is out
  16. called Lispcraft.  It is based on franz, opus 38 in particular.  You
  17. might want to pick that up.  The old standby, Lisp, by Winston and
  18. Horn, documented Maclisp which is close to franz.  Their new, 2nd
  19. edition is based on Common Lisp, however, which is different, so watch 
  20. out!
  21.  
  22. If you don't like ex or vi (say you're an ed-masochist), there are hooks
  23. for other editors.  Put the following in the .lisprc file in your home
  24. directory:
  25.  
  26. (def ed (nlambda (x)
  27.            (exvi 'ed x nil)))
  28. (def edl (nlambda (x)
  29.             (exvi 'ed x t)))
  30.  
  31. These will give you the same function as ex/vi and exl/vil except
  32. using ed.  These functions are found in /usr/lib/lisp/auxfns0.l (opus
  33. 37, anyway).
  34.  
  35. Dick Dramstad
  36. rad@mitre-bedford
  37.  
  38.  
  39.