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

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

bug#45338: prolog-mode: cursor jumps into inferior Prolog shell when con


From: SB
Subject: bug#45338: prolog-mode: cursor jumps into inferior Prolog shell when consulting buffer
Date: Sun, 20 Dec 2020 15:32:47 +0800

How to reproduce:
Suppose I have started the inferior Prolog shell using M-x run-prolog. If I "consult" a Prolog mode buffer using M-x prolog-consult-buffer, the Emacs cursor ends up in the inferior Prolog shell.

Expected behaviour:
The cursor should remain inside the Prolog mode buffer when consulting the buffer. The existing behaviour is inconsistent with just about every other inferior shell for other programming languages (lisp, python, scheme, etc.).

Further details:
I've noticed that the current implementation of "prolog-consult-buffer" calls "prolog-goto-prolog-process-buffer", which is responsible tor making the cursor go to inferior Prolog shell.

Questions:
* Feature request: Would the maintainers consider adding an option to disable this behaviour?
* What should I currently add to my ~/.emacs file as a temporary measure to make the cursor remain in the Prolog mode buffer instead of jumping into the inferior Prolog shell?

reply via email to

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