[comp.archives] [apl...] J interaction mode for GNU EMACS

mjab@nanna.think.com (Michael J. A. Berry) (03/09/91)

Archive-name: languages/apl/j-interaction-mode/1991-03-07
Archive: think.com:/public/j/gmacs/j-interaction-mode.el [131.239.2.1]
Original-posting-by: mjab@nanna.think.com (Michael J. A. Berry)
Original-subject: J interaction mode for GNU EMACS
Reposted-by: emv@ox.com (Edward Vielmetti)

The following code provides a session manager for J. It lets you edit J
functions, adverbs, and conjunctions in their own buffers.  In the case of
a verb, you get two buffers -- one for the monad, one for the dyad.  In a J
definition buffer each line of the buffer contains a single statement.
gmacs does all the quoting, boxing, and what have you so you just see the
unencumbered definitions.  There are also emacs commands for loading and
saving the workspace and listing the objects by name class.  You can also
execute a J expression with result going into the current buffer (great for
inserting examples into documentation).

All the editing functions assume that a J is running.  You can start one up
using run-j or run-remote-j.  These functions should be autoloaded in your
.emacs file like this:

(autoload 'run-j "j-interaction-mode" "run J on your local machine" t)
(autoload 'run-remote-j "j-interaction-mode" "run J on your local machine" t)

;;; INSTRUCTIONS
;;; 
;;; This is a mode for interacting with J.  It is based on my earlier
;;; apl-interaction mode, but is much simpler since it doesn't have to
;;; deal with funny characters.
;;;
;;; This elisp code was written by and may possibly be 
;;; maintained by Michael Berry:
;;; 
;;; Internet:  mjab@think.com
;;; uucp:      {harvard, uunet}!think!mjab
;;; telephone: (617) 234-2056
;;;
;;; If a lot of time has passed since March, 1991, you may be able to get a
;;; more recent version of this code by anonymous FTP from think.com in the
;;; file /public/j/gmacs/j-interaction-mode.el.
;;;
;;; The J language may be obtained for an ever increasing list of computers
;;; by sending $24.00 (as of 2/91) to:
;;;
;;; Iverson Software Inc.
;;; 33 Major Street
;;; Toronto, Ontario
;;; CANADA  M5S 2K9
;;; (416) 925-6096

[430 lines of elisp, and several lines of introduction, all deleted. --Ed]