Newsgroups: comp.lang.lisp.franz
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!news.acsu.buffalo.edu!dsinc!spool.mu.edu!munnari.OZ.AU!harbinger.cc.monash.edu.au!nntp.coast.net!sgigate.sgi.com!sdd.hp.com!night.primate.wisc.edu!aplcenmp!hall
From: hall@aplcenmp.apl.jhu.edu (Marty Hall)
Subject: Re: fi-clman under ILISP in Xemacs
Message-ID: <DtpopK.G7B@aplcenmp.apl.jhu.edu>
Organization: JHU/APL Research Center, Hopkins P/T CS Faculty
References: <4qv42t$4e4@nntp5.u.washington.edu>
Distribution: inet
Date: Fri, 28 Jun 1996 13:12:56 GMT
Lines: 50

In <4qv42t$4e4@nntp5.u.washington.edu> aumann@shoubuli (Craig Aumann) writes:
>
>Instead of using the Franz Emacs-Lisp interface, I have decided to use
>the ILISP interface.  I have got most everything to work fine, but I
>have not figured out how to get C-c D to load the fi-clman under ILISP
>mode.  Any suggestions greatly appreciated.

This is actually quite useful. I use Allegro's FI mode since you can't
use Composer without it, but like to have clman available even when
that is not loaded. (I would prefer if they made extensions to ILISP
instead of their own mode, though).

Anyhow, here is how I do it:

(A) Set up an executable script lets you invoke clman from the UNIX
command line:

#!/bin/csh -f

/usr/local/acl4.2/lib/emacs/fi-2.0.16/clman /usr/local/acl4.2/lib/emacs/fi-2.0.16/clman.data $1 | more

BTW, this lets you do "clman <whatever>" anytime from UNIX. You have
to escape shell chars though. Ie "clman \&key".

(B) Make an emacs command that calls this UNIX program.

(defun clman (Lisp-Symbol)
  "[MRH] Look up symbol in the Franz manual using /usr/local/bin/clman script"
  (interactive "sLisp Symbol: ")   ; prompt for a string if called interactively
  (let ((Pop-Up-Windows-Orig pop-up-windows))
    (setq pop-up-windows nil)      ; Don't split screen -- get whole thing
    (pop-to-buffer "*clman*")
    (erase-buffer)               ; In case there was previous man page there

    ;; I actually have commands here that set font-lock-keywords to 
    ;; fontify the resultant page. Email me if you want this.

    (shell-command (concat "clman " Lisp-Symbol) t)
    (kill-line 1)                ; Delete top line (blank or "stty ...")
    (setq pop-up-windows Pop-Up-Windows-Orig)
    t))

(C) Bind a key to this function. I use global-set-key so that I can access 
clman any time, but you probably only want it in fi:common-lisp-mode.

(D) I also put this into my Lisp pull-down menu.

					- Marty
(proclaim '(inline skates))
Lisp Resources: <http://www.apl.jhu.edu/~hall/lisp.html>
