I did what you described, with no response (ciao works fine outside emacs). I noticed that at the bottom of the bottom window the bar reads as follows:
--** *Ciao/Prolog* (Ciao/Prolog/LPdoc Listener: run ) --L1--All --------
That looks right. When I run a query, I get nothing. Also, when I use the preprocessor I get: "no such file or directory, ciaopp". Since ciaopp is in the Lib directory, my guess is that I need some kind of environment variable to indicate library directory. (Outside emacs, I loaded the dec_10 library without a problem so ciao seems to be installed correctly.) Under Unix, the following recommendations are given:
====== If you are able to open the Ciao/Prolog menu but the Ciao manuals are not found or the `ciao' command (the top-level) is not found when loading `.pl' files, the probable cause is that you do not have the Ciao paths in the `INFOPATH' and `MANPATH' _environment variables_ (whether these variables are set automatically or not for users depends on how the Ciao system was installed). Under Un*x, you can add these paths easily by including the line:
`source <CIAOLIBDIR>/DOTcshrc' ========
That would set the CIAOLIB variable. Under Win95 it is not so clear how to set the CIAOLIB environment variable. On the other hand, it is probably a question of defining the variable in the ciaosh.bat (since ciao runs in DOS!) Also, I will try to track down those pesky D:\ and replacing it with D:/ in the emacs code. (There is a ciao-lpdoc-libpath; I haven't noticed any other library variables. In ciao.el there are some D:\ to change.)
I'm going to investigate the ciao-set-library-path under emacs. It looks like that function would not work under Windows.
Thanks for the help.
Note: the link in the InfoReader manual "Troubleshooting (nasty messages and nifty workarounds):" does not work.
-----Original Message----- From: owner-ciao-users(a)clip.dia.fi.upm.es [mailto:owner-ciao-users(a)clip.dia.fi.upm.es]On Behalf Of Larner, Dan <larner(a)parc.xerox.com> Sent: Thursday, January 11, 2001 9:38 AM To: 'winder(a)interchange.ubc.ca'; Ciao Users Subject: RE: emacs: top level processor
Here's a way that works for me:
Start emacs Load hw.pl into an emacs buffer Ciao/Prolog menu -> Load buffer into top level Ciao/Prolog menu -> Query and main file -> Set Query In minibuffer, enter "main(X)." (without the quotes) Ciao/Prolog menu -> Query and main file -> Call Query Select yes in the dialog that pops up
-- Dan