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

  1. One feature of our vi functions is to ask (after returning from vi)
  2. whether or not you want to load the file.  This gives you the freedom
  3. to decide later when you know if you modified the file.  To implement
  4. this, you could change the last line of exvi from:
  5.  
  6.     (cond (doload (load edit_file)))
  7.  
  8. to:
  9.  
  10.     (cond ((or doload (query "Load " edit_file "? "))
  11.            (load edit_file)))
  12.  
  13. and define query:
  14.  
  15.     (defmacro (&rest prompt)
  16.       `(progn (msg ,@prompt) (yesp (read))))
  17.  
  18. (or something like that).  Exvi is defined in common1.l.
  19.  
  20. Enjoy!
  21.  
  22.                 -Liz
  23.  
  24. PS  You could also send me mail asking about getting our software!
  25.  
  26.  
  27.