GNU bug report logs -
#20202
24.3; Comint mode sets a bad $EMACS
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Wed, 25 Mar 2015 21:46:02 UTC
Severity: minor
Found in version 24.3
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #156 received at 20202 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[prolog.diff (text/x-diff, attachment)]
This bug report was last modified 7 years and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.