The only problem I seem to be having is the interaction of emacs with ciao; all the emacs functions work (such as storing queries). On the other hand I don't get a ciao prompt and a query in the emacs listener window does not make it to ciao, nor is ciao able to get the response back to emacs. All the path info seems to be accurate; ciao does start as a process under emacs (though when I exit emacs, emacs does not seem to stop the process. I have a work-around for that.)
I'm not sure how to debug the problem, so I thought I would compare the ciao prolog.el and another prolog.el at http://www.freesoft.cz/software/emacs/prolog-mode/. for SWI. This brings me to a few questions:
1. Is there any way to know if ciao is sending a prompt to emacs ? (In other words, can I watch that interaction?)
2. Is the ciao prolog.el related to the Emil-Åström-SWI prolog.el (see above)? Does the latter work with ciao?
3. When I run the preprocessor, ciaopp, the error message is "no such file", and indeed only ciaopp.pl is installed in .../library. Does the preprocessor use a cioapp.cpx or something else? I'm assuming that it should be something other than ciaopp.pl. (Like ciaopp.po or ciaopp.cpx.. and even in the /shell subdirectory.)
Thanks,
Bill Winder
(Note: in the navigator doc the same error appears as in the info doc: @xref{Troubleshooting (nasty messages and nifty workarounds)} )
I still can't make the listener window listen; i.e when I
"call query" under
"query and main file" the query is written to the listener
window and then
nothing. (I have been trying to run the hello world program).
My guess is
that I'm not launching the query properly. Does the listener
window listen?
A couple of quick observations here:
The most typical way in which people send queries to the top-level is by typing them directly in the listener window (which does 'listen'!).
The facility of storing a query and sending it to the top-level (the 'listener') is most useful when a query needs to be issued over and over again. People seem to take advantage of this mostly while using the source-level debugger.
In any case, recall that in emacs typing M-p ('escape' followed by 'p' or 'Meta' and 'p' simultaneously) in the Listener window recalls the previous query automatically.