bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20202: bug#20484: bug#20202: Considered Harmful 73d213: 'Comint, ter


From: Paul Eggert
Subject: bug#20202: bug#20484: bug#20202: Considered Harmful 73d213: 'Comint, term, and compile new set Emacs'
Date: Sat, 9 Apr 2016 20:30:50 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Stefan Monnier wrote:
"Do the trick" to get what, exactly?

It causes the predicate 'current_prolog_flag(emacs_inferior_process, X)' to succeed with X=true, and it causes SWI-Prolog to not attempt to put the terminal into raw mode. Although the former doesn't seem to do much of anything, latter affects the UI, notably the debugger. For example, SWI-Prolog 7.2.3 in Emacs 24 under M-x run-prolog:

?- trace, member(X, [a,b,c]).
   Call: (8) lists:member(_G2, [a, b, c]) ? a
% Execution Aborted
?-

The same interaction in emacs-25 now:

1 ?- trace, member(X, [a,b,c]).
   Call: (8) lists:member(_G2, [a, b, c]) ? a
abort
% Execution Aborted
2 ?-

I suppose the differences might be annoying to someone who does a lot of Prolog debugging. To give some perspective, although I am annoyed whenever I have to debug GNU Prolog under Emacs due to gprolog's mishandling of tty modes under Emacs, this is something I've never gotten sufficiently annoyed at to fix, even though it's been ten years since I first ran afoul of it.

One possible workaround would be something like the attached patch, which relies on SWI-Prolog's behavior of assuming GNU Emacs when INFERIOR=yes in the environment.

Attachment: prolog.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]