GNU bug report logs -
#45338
prolog-mode: cursor jumps into inferior Prolog shell when consulting buffer
Previous Next
Reported by: SB <progscriptclone <at> gmail.com>
Date: Sun, 20 Dec 2020 14:55:01 UTC
Severity: normal
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45338 in the body.
You can then email your comments to 45338 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45338
; Package
emacs
.
(Sun, 20 Dec 2020 14:55:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
SB <progscriptclone <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 20 Dec 2020 14:55:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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?
<https://github.com/emacs-mirror/emacs/blob/emacs-27/lisp/progmodes/prolog.el#L2610-L2614>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45338
; Package
emacs
.
(Sat, 16 Jan 2021 11:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 45338 <at> debbugs.gnu.org (full text, mbox):
There is support for the feature you want. Check out the variable "prolog-use-standard-consult-compile-method-flag". Setting this to "nil" enables the behaviour you like.
If the value of this variable is "t", prolog-mode uses prolog-old-process-* functions all of which do the switch. Otherwise, prolog-consult-compile* functions are used that do not have this behaviour.
Since this behavious is expected, it is not a bug. Just do (setq prolog-use-standard-consult-compile-method-flag nil).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45338
; Package
emacs
.
(Mon, 09 May 2022 13:58:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 45338 <at> debbugs.gnu.org (full text, mbox):
k3tu0isui <at> gmail.com writes:
> There is support for the feature you want. Check out the variable
> "prolog-use-standard-consult-compile-method-flag". Setting this to
> "nil" enables the behaviour you like.
>
> If the value of this variable is "t", prolog-mode uses
> prolog-old-process-* functions all of which do the switch. Otherwise,
> prolog-consult-compile* functions are used that do not have this
> behaviour.
>
> Since this behavious is expected, it is not a bug. Just do (setq
> prolog-use-standard-consult-compile-method-flag nil).
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Since this doesn't look like it's a bug, I'm closing it now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 09 May 2022 13:58:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
45338 <at> debbugs.gnu.org and SB <progscriptclone <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 09 May 2022 13:58:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 07 Jun 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 322 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.