[net.lang.lisp] kcl and ed

fxtv@litp.UUCP (VAILLANT) (01/19/86)

kcl (Kyoto Common Lisp) provides the 'ed' function. Is it possible
to specify that I prefer Emacs (vi is the default) in a Unix 4.2bsd
environment?

felix@lifia.UUCP (Francois Felix INGRAND) (01/21/86)

In article <116@litp.UUCP> fxtv@litp.UUCP (VAILLANT) writes:
>kcl (Kyoto Common Lisp) provides the 'ed' function. Is it possible
>to specify that I prefer Emacs (vi is the default) in a Unix 4.2bsd
>environment?

You must change the source of the ed function in the file :
.../lsp/autoload.lsp (do not compile this file), and initilalize the system.
If you choose this solution writing for example :

(defun ed (&optional filename)
  (system (format nil "emacs ~A" filename)))

instead of:

(defun ed (&optional filename)
  (system (format nil "vi ~A" filename)))

Every body will have to use emacs....

The other solution is to put the definition above in your init.lsp file.

An other point. Considering the time take by emacs or kcl to load, I have
write a small software (inspired by GNUemacs.ledit-mode) which enable to use
kcl, call an emacs (GNU), edit, go back in kcl without killing emacs and (if
you want) transfering some file or piece of file in your kcl environment. Of
course you can go back in the same emacs environment, and so on. It is very
usefull for debuging. If you are interesting, mail me, I will send you the
source. 

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Francois Felix INGRAND       (-: Pourquoi tant de haine... :-(     \ | / 
UUCP: ...{mcvax,vmucnam}!lifia!felix               EDIKA            \|/ >
      ...{mcvax,vmucnam}!imag!felix                                ( O: )
                                                                    /|\ >
Disclaimer:  The views and opinions expressed here are mine...     / | \ 
             Please don't tell my employer...