home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / winterp-1.13 / doc / RUNNING < prev    next >
Encoding:
Text File  |  1991-10-06  |  4.5 KB  |  101 lines

  1. # WINTERP Copyright 1989, 1990, 1991 Hewlett-Packard Company (by Niels Mayer).
  2. # XLISP version 2.1, Copyright (c) 1989, by David Betz.
  3. #
  4. # Permission to use, copy, modify, distribute, and sell this software and its
  5. # documentation for any purpose is hereby granted without fee, provided that
  6. # the above copyright notice appear in all copies and that both that
  7. # copyright notice and this permission notice appear in supporting
  8. # documentation, and that the name of Hewlett-Packard, David Betz and
  9. # Niels Mayer not be used in advertising or publicity pertaining to distribution
  10. # of the software without specific, written prior permission.  Hewlett-Packard,
  11. # David Betz and Niels Mayer makes no representations about the suitability of
  12. # this software and documentation for any purpose.  It is provided "as is"
  13. # without express or implied warranty.
  14. #
  15.  
  16. RUNNING WINTERP:
  17. ================
  18.  
  19.     0) First, you should compile WINTERP. See ./COMPILING for details.
  20.  
  21.     1) Once WINTERP has been compiled, start up the 'winterp' program
  22.     in ./../src-server/winterp by running it in a terminal emulator
  23.     window (xterm, hpterm, gnu-emacs' M-X shell). WINTERP will create
  24.     windows and widgets when you ask it to, the results of evaluating 
  25.     Winterp-Lisp language expressions will print to "standard
  26.     output", and any XLISP, Motif, Xt, or X error messages will print
  27.     to "standard error".
  28.  
  29.     See ./winterp.doc for X resources that you may want to set before
  30.     starting up WINTERP. In particular, you should set resources
  31.     "Winterp.lispInitFile" and "Winterp.lispLibDir" according to the
  32.     directions given in the section of winterp.doc entitled
  33.     "WINTERP Resources (~/.Xdefaults)".
  34.  
  35.     2) make sure you've installed the winterp client program
  36.     './winterp/src-client/wl' somewhere on your search path ($PATH).
  37.  
  38.     See ./winterp.doc sections entitled "Usage: the WINTERP-Lisp Unix
  39.     Domain Socket client" for details on 'wl'.
  40.  
  41.     3) start up gnu-emacs. In gnu-emacs, load the emacs-lisp file
  42.     ./../src-client/winterp.el. (Use M-x load-file, or do
  43.     (load "<pathname>/winterp") in your ~/.emacs file)
  44.  
  45.     See ./winterp.doc sections entitled 
  46.     "Usage: the Gnu-Emacs programmers interface" for details.
  47.  
  48.     4) in gnuemacs, do find-file (^X^f) on one of the example programs
  49.     in ./../examples/*.lsp: a good start might be the simple search
  50.     browser    application built upon the unix 'grep' command --
  51.     ./../examples/grep-br.lsp'. See ./../examples/README for a 
  52.     description of the example code provided in the WINTERP
  53.     distribution.
  54.  
  55.     After visiting a *.lsp file, the buffer you're in should be in
  56.     'lisp'-mode. Place the point somewhere within a lisp s-expression
  57.     (aka, in between the opening and closing parentheses of a lisp
  58.     statement), and hit C-M-X to send the expression you're pointing at
  59.     to WINTERP. If you don't like hitting C-M-X, you can rebind the
  60.     gnuemacs function winterp-send-defun to    a more accessible key.
  61.     To send the current buffer being edited to WINTERP, you may use M-X
  62.     winterp-send-buffer
  63.  
  64.     5) browse around  the various files in ./../examples and evaluate
  65.     various forms.... The best way to see the power of combining Motif
  66.     widgets with XLISP is via programming by example.
  67.  
  68.             --------------------
  69.  
  70. If you don't use gnuemacs, you can still send lisp input to WINTERP,
  71. although it's much less elegant. While WINTERP is running inside a terminal
  72. emulator, just use the 'wl' command to send forms to the lisp interpreter.
  73. Assuming you either started WINTERP while cd'd to ./../examples, or
  74. assuming that you set resource "Winterp.lispLibDir" to the examples
  75. directory, you can then issue the following command to the shell
  76.         wl '(load "grep-br")'
  77. WINTERP will then load the file grep-br.lsp, and the grep search browser
  78. application will appear momentarily.
  79.  
  80.             --------------------
  81.  
  82. Another way for non-emacs users to program in Winterp-Lisp is by using the
  83. Winterp control panel, which is written in Winterp-Lisp. You should load
  84. file ./../examples/w_ctrlpnl.lsp from your WINTERP initialization file.
  85. For details on how to do that, see the section in winterp.doc that
  86. documents resource "Winterp.lispInitFile". Just to try things out, you can
  87. just load the control panel from the shell:
  88.         wl '(load "w_ctrlpnl")'
  89.  
  90. w_ctrlpnl.lsp will give you a simple file-browser (based on the Motif
  91. XmFileSelectionBox widget) that will allow you to load Winterp-Lisp files
  92. into WINTERP.  You may also edit files in an editor (based on the Motif
  93. XmText widget), and interactively send individual Winterp-Lisp expressions
  94. off for evaluation using the "Eval @ Point" button. See
  95. ./../examples/README and ./../examples/w_ctrlpnl.lsp for details.
  96.  
  97.             --------------------
  98.  
  99.  
  100.