🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.lisp.x
6 messages
6 total messages Started by Stephen R. Phillips Mon, 05 Oct 1992 02:03
Xlisp built in editor?
#204
Author: Stephen R. Phillips
Date: Mon, 05 Oct 1992 02:03
7 lines
506 bytes
Are thier any editors for Xlisp?
IE like EMACS? 
This would make making lisp programs a lot easier for me.

Perhaps an IDE even.
HEck I'll have to hack Xlisp 2.1 code to do that :(
Cyberman
Re: Xlisp built in editor?
#207
Author: Kenn Goutal
Date: Tue, 06 Oct 1992 06:15
25 lines
1523 bytes
In article <1992Oct5.020318.25900@exucom.com> cyberman@exucom.com (Stephen R. Phillips) writes:
>Are thier any editors for Xlisp?
>IE like EMACS? 

Not that I've ever heard of, but according to Appendix B of /The XLISP
Primer/ (by Bonnie Fladung, appendix by DMB his own self) there is, or
at least was, a function (DOS <cmd>), which you could presumably could
use to call your favourite editor on the source file of a function, and
then you could (LOAD ...) it again.  Not terrifically fast or elegant.
I haven't tried the (DOS) function lately, so I don't know if it's still
there.  Also, I have XLISP-PLUS -- dunno how it differs from the original
in this regard.

I'm afraid that the best suggestion I've heard so far is the one that I
happen to use, which is to pop open two windows, one running XLISP and 
one running DOS command line or whatever, and call the editor from the
latter window and then (as above) reload the function from the edited
source file.

>Perhaps an IDE even.

Amen to that, brother.  Hmmm...  Care to write a spec for such a beast?

-- Kenn Goutal
kenn@mv.mv.com
Re: Xlisp built in editor?
#208
Author: Tom Almy
Date: Tue, 06 Oct 1992 20:34
15 lines
900 bytes
In article <1992Oct5.020318.25900@exucom.com> cyberman@exucom.com (Stephen R. Phillips) writes:
>Are there any editors for Xlisp?
>IE like EMACS? 

On the PC I use Epsilon (a commercial EMACS clone), and run Xlisp (the 80386
version) in a process window. I wrote my own "Lisp-Mode". It is also possible
to shell out of Xlisp to run an editor. Any decent EMACS like editor should
be possible to hack out a Lisp Mode for indenting, paren matching, etc.



-- 
Tom Almy
toma@sail.labs.tek.com
Standard Disclaimers Apply
Re: Xlisp built in editor?
#218
Author: Tom Almy
Date: Wed, 07 Oct 1992 14:51
27 lines
1461 bytes
In article <1992Oct6.061516.8215@mv.mv.com> kgg@mv.mv.com (Kenn Goutal) writes:

>at least was, a function (DOS <cmd>), which you could presumably could
>use to call your favourite editor on the source file of a function, and
>then you could (LOAD ...) it again.  Not terrifically fast or elegant.

Xlisp comes with a small LSP file, EDIT, that automates this.

>Also, I have XLISP-PLUS -- dunno how it differs from the original
>in this regard.

The EDIT.LSP in XLISP-PLUS has some additional features.

>>Perhaps an IDE even.
>Amen to that, brother.  Hmmm...  Care to write a spec for such a beast?

With XLISP-PLUS you can use REPAIR.LSP, SAVE, RESTORE, and PP.LSP and avoid
using an external editor altogether. The problem is that REPAIR.LSP is a
LIST oriented editor which in most respects is more dificult to use than
a typical screen oriented editor, although it does have the advantage that
you parenthesis are ALWAYS matched!


-- 
Tom Almy
toma@sail.labs.tek.com
Standard Disclaimers Apply
Re: Xlisp built in editor?
#220
Author: Meinhard E. Mayer (Hardy)
Date: Thu, 08 Oct 1992 18:24
16 lines
1123 bytes
In article <1992Oct5.020318.25900@exucom.com> cyberman@exucom.com (Stephen R. Phillips) writes:

???   Are thier any editors for Xlisp?
???   IE like EMACS? 
???   This would make making lisp programs a lot easier for me.

With gnu-emacs you can run xlisp as a subprocess (in the same manner
as scheme, or winterp, for example). 
It requires some customization of your .emacs file, or putting
together an xlisp.el file, if no one has done this yet. 

--
Hardy 
-----
Meinhard E. Mayer,  Department of Physics, UC Irvine 
e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET
Re: Xlisp built in editor?
#221
Author: Tim Mikkelsen
Date: Tue, 13 Oct 1992 19:00
45 lines
1469 bytes
In case you don't have it, here is the file "EDIT.LSP": 

;;;
;;; file: EDIT.LSP
;;;

;;;(setq *breakenable* t)
;;;(setq *tracenable* t)

;;;
;;; This variable is the default file to edit
;;;

(defvar edit-file 'nil)

(defvar editor "emacs")

;;;
;;; edit a file using the specified editor
;;; if the file editted was a lisp file (.lsp) load it
;;;

(defun edit (&optional file)
    (read-char) ; get rid of newline sitting in input stream
    (and (not file)
         (null edit-file)
         (setq file (get-filename)))
    (if (not (stringp file))
	(setq file edit-file))
    (if (not (stringp editor))
	(setq editor (get-editor)))
    (system (strcat editor " " file))
    (setq edit-file file)
    (let ((len (length edit-file)))
	(if (string= (string-downcase (subseq edit-file (- len 4))) ".lsp")
	    (load edit-file))))

(defun get-filename ()
	(princ "File: ")
	(read-line))

(defun get-editor ()
	(princ "Editor: ")
	(read-line))
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads