简体   繁体   中英

how do I interact with the inferior prolog process in emacs?

I've installed SWI-Prolog and Emacs' prolog mode. I have a first_steps.pl file with prolog in it, and I do Cc Cb to consult the buffer. This opens a second buffer, *prolog* , whose mode is (Inferior Prolog: run) .

All well and good. However, it's completely unclear how to interact with that inferior prolog mode buffer. There is no prompt. Typing things and pressing return does nothing. How can I execute queries based on the code consulted from the buffer, ie, interact with SWI-prolog?

Note that this related question does not seem to address usage of the inferior mode, only installation of prolog mode: Using prolog with emacs

In my case, I changed the variable prolog-program-name to use the full path to my swipl executable, then it was fine. Emacs might just not be able to find your interpreter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM