From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: SB Newsgroups: gmane.emacs.bugs Subject: bug#45338: prolog-mode: cursor jumps into inferior Prolog shell when consulting buffer Date: Sun, 20 Dec 2020 15:32:47 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000db029b05b6e01619" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32127"; mail-complaints-to="usenet@ciao.gmane.io" To: 45338@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 15:55:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kr074-0008Ec-1z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 15:55:10 +0100 Original-Received: from localhost ([::1]:42608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr073-0003Ui-4K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 09:55:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr06w-0003Tr-7g for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 09:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kr06v-000688-W1 for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 09:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kr06v-0006BU-UA for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 09:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: SB Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Dec 2020 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45338 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160847605823698 (code B ref -1); Sun, 20 Dec 2020 14:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Dec 2020 14:54:18 +0000 Original-Received: from localhost ([127.0.0.1]:44000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr06D-0006A9-QW for submit@debbugs.gnu.org; Sun, 20 Dec 2020 09:54:18 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqsv5-0007OC-K2 for submit@debbugs.gnu.org; Sun, 20 Dec 2020 02:14:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqsv5-0005GT-DQ for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 02:14:19 -0500 Original-Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:32974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqsv3-00061J-Hx for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 02:14:19 -0500 Original-Received: by mail-io1-xd2f.google.com with SMTP id w18so6072266iot.0 for ; Sat, 19 Dec 2020 23:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=2yYxU/+VcqGNlUlXIQJvsZl3t8LXaFGypgS8EQwTf7I=; b=f4O+3utWrvu7EIuR3+N0q96sAe2/fvAJAlThU4NbOK/UJzE1GMH5l6qddLxbRSE3yL /fIEt+3bBQPzgHrrowefmEVoNjAAOqnw3UiE1DuO1ymCe5TICkJyqtOGdDqc6KWT7VjE tl+BNmGkCW1VSsI4lLtIawqVIfO2qWy1oNVAKrNDj6oKImzJML4tzl9OELyFrtmp0Ffc SISRX6IZsF7F8iUFkhY5/O6cIE60zdUTL89acptUbzZnNSGVO7TOQjiAJHqJb3KnM6oC mFjNcacVbbC85LaKP9fB170Qx9fs5Y2xAY4WsLKGV762a/O6sCngXCxa1xnjjmi4+IMG drew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2yYxU/+VcqGNlUlXIQJvsZl3t8LXaFGypgS8EQwTf7I=; b=qR7p/Vh4rjuQYeFLio9Wx3wSZ55/GGJLlzMVOM8I05MNoqW4cdbclCqDFJ55iJqIx7 VMY+82aTY98+f6qh1lUr7uEdjiJSq4F7GDL6I3Asted+q0+To6oWYimmqtRHNroqrKiz vZN2C3PAjnehD1EUCIwGlW7XtC+a2fQweID3GWuIC9SIQYbYjiS7Dw1Eys+Te4hz0p/J G1hs4OqlkMihse/rLWsQiQJFV2UehN3hfSFtCIprC04QVRWoJyznePAlqvBLBLdP0g7k fWaM88p5ZUyMVsFuG4KkcWwdQ6RBMpQjfw8rZQLYfp2rcqjlndTLkShrX29ZGM/f1tgz Uxrg== X-Gm-Message-State: AOAM5308cy8jkY5Uay8hmiKhjmnLPW6KalkeE3shhEq+AujmN4smV2BC pWZglXq9FuMHAo9OAdHUqQZZou5sOtLS04U5KpGSQsn4R18= X-Google-Smtp-Source: ABdhPJxuriId8cj2MUh7qmeuqVQEGrRhMYFKLVtd4Cy+qRXn13kvsONSOn+BDx5AoLZviyyJgHlv4alg5bpigKLJlgs= X-Received: by 2002:a02:354a:: with SMTP id y10mr10816240jae.126.1608448455933; Sat, 19 Dec 2020 23:14:15 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2f; envelope-from=progscriptclone@gmail.com; helo=mail-io1-xd2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 20 Dec 2020 09:54:16 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196469 Archived-At: --000000000000db029b05b6e01619 Content-Type: text/plain; charset="UTF-8" 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? --000000000000db029b05b6e01619 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How to reproduce:
Suppose I have starte= d 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 behavio= ur:
The cursor should remain inside the Prolog mode buffer when c= onsulting the buffer. The existing behaviour is inconsistent with just abou= t every other inferior shell for other programming languages (lisp, python,= scheme, etc.).

Further details:
I'v= e noticed that the current implementation of "prolog-consult-buffer&qu= ot; calls "prolog-goto-prolog-process-buffer"= ;, which is responsible tor making the cursor go to inferior Prolog shell.<= /span>

Questions:
* Featur= e 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 inst= ead of jumping into the inferior Prolog shell?
--000000000000db029b05b6e01619--