User Tools

Site Tools


tutorials:lisp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:lisp [2017/03/10 05:00]
papa [Maclisp]
tutorials:lisp [2017/03/10 10:10] (current)
papa [References]
Line 24: Line 24:
 It is also recommended that you create a Maclisp init file (''LISP.INI'') in your home directory with the following contents: It is also recommended that you create a Maclisp init file (''LISP.INI'') in your home directory with the following contents:
  
-  '';;; A very typical init file          -*- Mode:LISP; -*-+  ;;; A very typical init file / Emacs mode--> -*- Mode:LISP; -*-
   (COMMENT) ;magic   (COMMENT) ;magic
   (PROGN ; real init file stuff   (PROGN ; real init file stuff
Line 30: Line 30:
     (SETQ NOUUO T *RSET T) ;these make debugging easier     (SETQ NOUUO T *RSET T) ;these make debugging easier
     (SSTATUS FEATURE NOLDMSG) ;supress module load messages     (SSTATUS FEATURE NOLDMSG) ;supress module load messages
-    '*) ;return an asterisk for Maclisp to print out''+    '*) ;return an asterisk for Maclisp to print out
    
 === LEDIT === === LEDIT ===
 +
 +''LEDIT'' is a software package that allows a programmer to inspect, modify, and save Lisp source expressions from within a Maclisp session, abilities Maclisp itself lacks. This is achieved  by calling the Emacs editor from the programmer's Maclisp session.
 +
 +To use LEDIT:
 +
 +  - Start Maclisp and load your source file.
 +  - Evaluate ''(LOAD "LISP:LEDIT.FASL")'' (You may add this line to your LISP.INI file and eliminate this step.)
 +  - Evaluate ''(LEDIT)'' to switch to Emacs.
 +  - Load the source file into Emacs (''^X ^F'').
 +  - View, change, save source with Emacs commands.
 +  - Flag function definitions to update in Maclisp with ''M-Z''.
 +  - Return to Maclisp with ''^X Z''
  
 ===== InterLisp-10 ===== ===== InterLisp-10 =====
Line 44: Line 56:
 The dialect was in a rivalry with Maclisp prior to the development of Common Lisp.  The dialect was in a rivalry with Maclisp prior to the development of Common Lisp. 
  
-===== References =====+=== Set-up ===
  
-[[http://bitsavers.informatik.uni-stuttgart.de/pdf/xerox/interlisp/1974_InterlispRefMan.pdf|W. Teitelman. (1974)InterLisp Reference Manual [Online]. Available: http://bitsavers.informatik.uni-stuttgart.de/pdf/xerox/interlisp/1974_InterlispRefMan.pdf]]+If you have set-up your TWENEX session for Maclisp (see above), you must undefine the logical name ''LISP:'' before running InterLisp. 
 +===== References =====
  
 [[http://www.maclisp.info/pitmanual/index.html|K.M. Pitman. (2007, December 16). The Revised Maclisp Manual [Online]. Available: http://www.maclisp.info/pitmanual]] [[http://www.maclisp.info/pitmanual/index.html|K.M. Pitman. (2007, December 16). The Revised Maclisp Manual [Online]. Available: http://www.maclisp.info/pitmanual]]
  
-[[http://www.softwarepreservation.org/projects/LISP/book/Weismann_LISP1.5_Primer_1967.pdf|CWeissman. (1967). Lisp 1.5 Primer [Online]. Available: http://www.softwarepreservation.org/projects/LISP/book/Weismann_LISP1.5_Primer_1967.pdf]] +[[http://bitsavers.informatik.uni-stuttgart.de/pdf/xerox/interlisp/Interlisp_Reference_Manual_1974.pdf|WTeitelman. (1974). InterLisp Reference Manual [Online]. Available: http://bitsavers.informatik.uni-stuttgart.de/pdf/xerox/interlisp/1974_InterlispRefMan.pdf]]
- +
-----+
  
-EMACS LEDIT mode +[[http://www.softwarepreservation.org/projects/LISP/book/Weismann_LISP1.5_Primer_1967.pdf|CWeissman(1967)Lisp 1.5 Primer [Online]. Available: http://www.softwarepreservation.org/projects/LISP/book/Weismann_LISP1.5_Primer_1967.pdf]]
- +
-//(Is LEDIT another Lisp dialect, or just a TOPS-20 Emacs (non-/pre-GNU/Elisp) mode for editing Lisp source code?)// +
- +
-  --> //LEDIT is a module for connecting MACLISP & EmacsYou can inspect, edit, & save source in Emacs, then evaluate/run it in MACLISPIt's documented in INFOThere's supposed to be another module to do the same with InterLispI'd like to figure out how to use this-- papa//+
  
tutorials/lisp.1489122027.txt.gz · Last modified: 2017/03/10 05:00 by papa