From: Andreas Hinze
Subject: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <3D12FAD6.C399CC53@smi.de>
Hi all,
i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.

When i try to lookup a definitition i get an error that the file was not
found by the browser (W3). I.e. looking for "defun" results in a browser
message like "FILE NOT FOUND: /usr/local/doc/HyperSpec/Body/mac_defun.html"

Looking for "defun" using an external browser and the CLHS symbol index leads me
to a file called "/usr/local/doc/HyperSpec/Body/m_defun.htm". 

How can i make the Ilisp lookup work ? Any suggestions are welcome.

Best
AHz

From: Sam Steingold
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <sa0it4cip7c.fsf@glip.premonitia.com>
> * In message <·················@smi.de>
> * On the subject of "Help please: ILisp Hyperspec lookup problem"
> * Sent on Fri, 21 Jun 2002 12:07:18 +0200
> * Honorable Andreas Hinze <···@smi.de> writes:
>
> i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.
> Looking for "defun" using an external browser and the CLHS symbol index leads me
> to a file called "/usr/local/doc/HyperSpec/Body/m_defun.htm". 

my clhs.el works with both CLHS versions (it determines what version it
is on the first call and work with both locally installed and remote
CLHS - the latter via w3).
<http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/clisp/clisp/emacs/clhs.el?content-type=text/plain>

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat7.2 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
The difference between genius and stupidity is that genius has its limits.
From: Andreas Hinze
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <3D135E08.E7E16778@smi.de>
Sam Steingold wrote:
> 
> > * In message <·················@smi.de>
> > * On the subject of "Help please: ILisp Hyperspec lookup problem"
> > * Sent on Fri, 21 Jun 2002 12:07:18 +0200
> > * Honorable Andreas Hinze <···@smi.de> writes:
> >
> > i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.
> > Looking for "defun" using an external browser and the CLHS symbol index leads me
> > to a file called "/usr/local/doc/HyperSpec/Body/m_defun.htm".
> 
> my clhs.el works with both CLHS versions (it determines what version it
> is on the first call and work with both locally installed and remote
> CLHS - the latter via w3).

Hi Sam,
that sounds very good. Thank you very much.

Is there a reason why it is separate from ilisp ? Currently it seems to me
that CLHS 6 is supported by Ilisp 5.12 and former CLHS is supported by 5.11 
due to the "hard coded" translation table in hyperspec.el (since i got
ilisp 5.12 around 5 hours ago i have had only a very short look at that file
so i might wrong).

Sincerly
AHz
From: Edi Weitz
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <873cvgfoms.fsf@bird.agharta.de>
Andreas Hinze <···@smi.de> writes:

> Sam Steingold wrote:
> > 
> > > * In message <·················@smi.de>
> > > * On the subject of "Help please: ILisp Hyperspec lookup problem"
> > > * Sent on Fri, 21 Jun 2002 12:07:18 +0200
> > > * Honorable Andreas Hinze <···@smi.de> writes:
> > >
> > > i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.
> > > Looking for "defun" using an external browser and the CLHS
> > > symbol index leads me to a file called
> > > "/usr/local/doc/HyperSpec/Body/m_defun.htm".
> > 
> > my clhs.el works with both CLHS versions (it determines what
> > version it is on the first call and work with both locally
> > installed and remote CLHS - the latter via w3).
> 
> Hi Sam,
> that sounds very good. Thank you very much.
> 
> Is there a reason why it is separate from ilisp ? Currently it seems
> to me that CLHS 6 is supported by Ilisp 5.12 and former CLHS is
> supported by 5.11 due to the "hard coded" translation table in
> hyperspec.el (since i got ilisp 5.12 around 5 hours ago i have had
> only a very short look at that file so i might wrong).

The hyperspec lookup facility that comes with ILISP 5.12 (originally
by Erik Naggum) will also work with both CLHS versions and it'll also
work with local as well as with remote locations. The "hard coded"
translations are there to provide a reasonable default (the version
which is currently online at Xanalys' site). If you're using another
CLHS the translation table will be built dynamically and the hard
coded stuff will be ignored.

To use a local HyperSpec put something like this into your .emacs or
.ilisp file:

  (setq common-lisp-hyperspec-root
        "file:/usr/local/lib/LispWorks/lib/4-2-0-0/manual/online/web/CLHS/")
  (setq common-lisp-hyperspec-symbol-table
        "/usr/local/lib/LispWorks/lib/4-2-0-0/manual/online/web/CLHS/Data/Map_Sym.txt")

You can use w3, w3m, Netscape, Mozilla, Konqueror, whatever browse-url
supports. I have this in my .emacs:

  (setq browse-url-netscape-program "/usr/bin/mozilla")
  (setq browse-url-browser-function '(("CLHS" . w3m-browse-url)
                                      ("." . browse-url-netscape)))

Which means: Use w3m (as an Emacs subprocess) for CLHS pages, use
Mozilla for all other URLs. Works fine.

Cheers,
Edi.
From: Erik Naggum
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <3233682591958719@naggum.net>
* Andreas Hinze
| Is there a reason why it is separate from ilisp ? Currently it seems to me
| that CLHS 6 is supported by Ilisp 5.12 and former CLHS is supported by 5.11
| due to the "hard coded" translation table in hyperspec.el (since i got ilisp
| 5.12 around 5 hours ago i have had only a very short look at that file so i
| might wrong).

  It is "hard coded" only because there was no "soft" index when I first wrote
  this thing.  I had to extract the information from some HTML crap and I was
  not in the mood to do that whenever Emacs needed to build the index.  I had
  no idea Xanalys would go and change the filenames, which seemed rather stupid
  to me, anyway, but at least they provided a usable index, which was very nice
  when they first had to go do it.  Still, it would be a _lot_ better to have
  an algorithmic mapping instead of a table lookup, so one could simply use the
  symbol name.  A package could have a base URL as parts of its documentation
  using the same algorithm to arrive at the actual symbol, the way the function
  documentation seems to have been designed to help achieve.
-- 
  Guide to non-spammers: If you want to send me a business proposal, please be
  specific and do not put "business proposal" in the Subject header.  If it is
  urgent, do not use the word "urgent".  If you need an immediate answer, give
  me a reason, do not shout "for your immediate attention".  Thank you.
From: Andreas Hinze
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <3D16E83A.175BAEFF@smi.de>
After installing Ilisp 5.12 it all works fine.
Thank you all for helping.
(I also tried to understand what's going on in the package. It's quite
 interesting to see how experienced lispers solve those problems).

Best 
AHz
From: Hannu Koivisto
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <87elf0wxmp.fsf@lynx.ionific.com>
Andreas Hinze <···@smi.de> writes:

> i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.

I suggest that you upgrade to ILISP 5.12.  If that alone does not
help, take a look at variables (and their documentation) whose
names start with common-lisp-hyperspec.  The commentary at the
beginning of hyperspec.el may also be of help.

-- 
Hannu
From: Roman Belenov
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <uelf0bvr4.fsf@yandex.ru>
Andreas Hinze <···@smi.de> writes:

> Hi all,
> i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.
>
> When i try to lookup a definitition i get an error that the file was not
> found by the browser (W3). I.e. looking for "defun" results in a browser
> message like "FILE NOT FOUND: /usr/local/doc/HyperSpec/Body/mac_defun.html"
>
> Looking for "defun" using an external browser and the CLHS symbol index leads me
> to a file called "/usr/local/doc/HyperSpec/Body/m_defun.htm". 
>
> How can i make the Ilisp lookup work ? Any suggestions are welcome.

Upgrade to ilisp 5.12


-- 
 							With regards, Roman.
From: Andreas Hinze
Subject: Re: Help please: ILisp Hyperspec lookup problem
Date: 
Message-ID: <3D13317C.E2D2295B@smi.de>
Roman Belenov wrote:
> 
> Andreas Hinze <···@smi.de> writes:
> 
> > Hi all,
> > i'm using XEmacs 21.4 with Ilisp 5.11 and CLHS 6.0 on linux.
> >
> > When i try to lookup a definitition i get an error that the file was not
> > found by the browser (W3). I.e. looking for "defun" results in a browser
> > message like "FILE NOT FOUND: /usr/local/doc/HyperSpec/Body/mac_defun.html"
> >
> > Looking for "defun" using an external browser and the CLHS symbol index leads me
> > to a file called "/usr/local/doc/HyperSpec/Body/m_defun.htm".
> >
> > How can i make the Ilisp lookup work ? Any suggestions are welcome.
> 
> Upgrade to ilisp 5.12
> 
Indeed. I picked up 5.12 and checked the hyperspec.el file. There is a comment
from Eddi Waltz that he updated the table to CLHS 6.
I didn't know that it was changed in 5.12.

Thank you very much.
Best
AHz