Path: utzoo!utgpu!watmath!clyde!att!rutgers!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!ilham From: ilham@athena.mit.edu (Ilham Ahmed) Newsgroups: comp.emacs Subject: Re: customizing run-lisp Keywords: lisp, emacs Message-ID: <8235@bloom-beacon.MIT.EDU> Date: 30 Nov 88 19:34:10 GMT References: <545200001@uxg.cso.uiuc.edu> <32874@bbn.COM> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: ilham@athena.mit.edu (Ilham Ahmed) Organization: Massachusetts Institute of Technology Lines: 61 In article <32874@bbn.COM> jr@bbn.com (John Robinson) writes: >In article <545200001@uxg.cso.uiuc.edu>, gengler@UXG writes: >>How do you change the command used by 'run-lisp' to invoke a >>lisp processor of a different name. >> >>Our system's (gould) lisp is invoked with the command 'clisp' not >>'lisp' as run-lisp expects. How can I change this? > >Here's run-lisp's definition: > >(defun run-lisp () > "Run an inferior Lisp process, input and output via buffer *lisp*." > (interactive) > (switch-to-buffer (make-shell "lisp" inferior-lisp-program)) > (inferior-lisp-mode)) > >Insert a 'c' inside the string argument to make-shell. Then place >your cursor after the last right-paren and type ^X^E (eval-last-sexp) >to install this modified run-lisp in your emacs. > >To do this every time you start emacs, put the defun inside your >.emacs file. To make run-lisp more general, replace the explicit >string with a variable, and defvar it as apporpriate. >-- >/jr >jr@bbn.com or bbn!jr The way to invoke another lisp is to setq the inferior-lisp-program variable. So in your case you should put in your .emacs : (setq inferior-lisp-program "clisp") I do not know if this is true everywhere, but there is an error in one of the functions in shell.el. The function is "inferior-lisp-mode" and the error in a statement in that procedure should be changed from : (lisp-mode-variables) to (lisp-mode-variables nil) as "lisp-mode-variables" defined in lisp-mode.el requires an argument. Hope that helps. - Ilham User Consultant Project Athena, MIT ============================================================================== \\\!/// From : Ilhamuddin Ahmed _ _ UUCP : {backbone}!mit-eddie!athena!ilham ( Q Q ) Arpa : ilham@juicy-juice.lcs.mit.edu ---,,,,-------U-------,,,,--- USnail: 211 Walcott 3, Ames Street HELLO!!! Cambridge, MA 02139. ----------------------------- (617)-225-6256. ==============================================================================