unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: SB <progscriptclone@gmail.com>
To: 45338@debbugs.gnu.org
Subject: bug#45338: prolog-mode: cursor jumps into inferior Prolog shell when consulting buffer
Date: Sun, 20 Dec 2020 15:32:47 +0800	[thread overview]
Message-ID: <CAMpLh3ZwWQNga26F9jkHisg_-530cWBLwnk3x8WP6Ujherk6Bg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

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>

[-- Attachment #2: Type: text/html, Size: 1418 bytes --]

             reply	other threads:[~2020-12-20  7:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-20  7:32 SB [this message]
2021-01-16 11:14 ` bug#45338: cursors jumps can be disabled by a flag k3tu0isui
2022-05-09 13:56   ` bug#45338: prolog-mode: cursor jumps into inferior Prolog shell when consulting buffer Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMpLh3ZwWQNga26F9jkHisg_-530cWBLwnk3x8WP6Ujherk6Bg@mail.gmail.com \
    --to=progscriptclone@gmail.com \
    --cc=45338@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).