-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find out we are running under emacs? #3
Comments
Can this be handled analogously to SWI-Prolog/swipl-devel@044aabc ? |
Hmmm. As a hack, possibly (but then we also have checking the prompt). In general I'd guess a dumb terminal is still ok to do basic paging, while it is not good enough for commandline editing. I'll probably implement some quick fix for now, but it would be nice if there was a more robust way to find out that we are running under ediprolog. |
One important point for the immediate ad hoc solution: The default prompt that ediprolog uses is:
Please see: Line 138 in 6f94bf2
This is user-configurable, though I do not expect many changes in this area, also not for the immediate future. |
However,
I think it makes the point clear that using the prompt is not a good way to find ediprolog (especially if it can be configured). For now, Most related emacs functionality such as |
ediprolog sets the prompt with Line 233 in 6f94bf2
You can see the exact toplevel interaction in the buffer ?ediprolog- prompt(X, X). X = '|: '. ?ediprolog- |
Thanks. That explains something. Now changed the test to
Note that As a side note, wouldn't it be a good idea to do something similar as for PDT where we have |
Most emacs mode that create a process put something into the environment such that the process can act on this mode. Currently SW-Prolog checks for
EMACS
,INSIDE_EMACS
andINFERIOR
. It would be nice if ediprolog did that as well. Or do we have some other not-to-wild way to discover we are running under ediprolog? Testing the prompt is all I can think of right now ...The text was updated successfully, but these errors were encountered: