Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help please: ILisp Hyperspec lookup problem

19 views
Skip to first unread message

Andreas Hinze

unread,
Jun 21, 2002, 6:07:18 AM6/21/02
to
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

Roman Belenov

unread,
Jun 21, 2002, 9:34:55 AM6/21/02
to
Andreas Hinze <a...@smi.de> writes:

Upgrade to ilisp 5.12


--
With regards, Roman.

Hannu Koivisto

unread,
Jun 21, 2002, 9:48:46 AM6/21/02
to
Andreas Hinze <a...@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

Andreas Hinze

unread,
Jun 21, 2002, 10:00:28 AM6/21/02
to
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

Sam Steingold

unread,
Jun 21, 2002, 12:14:32 PM6/21/02
to
> * In message <3D12FAD6...@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 <a...@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.

Andreas Hinze

unread,
Jun 21, 2002, 1:10:32 PM6/21/02
to
Sam Steingold wrote:
>
> > * In message <3D12FAD6...@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 <a...@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

Edi Weitz

unread,
Jun 21, 2002, 2:55:07 PM6/21/02
to
Andreas Hinze <a...@smi.de> writes:

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.

Erik Naggum

unread,
Jun 21, 2002, 5:09:52 PM6/21/02
to
* 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.

Andreas Hinze

unread,
Jun 24, 2002, 5:36:58 AM6/24/02
to
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

0 new messages