From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: k3tu0isui@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#45795: prolog-mode prolog-system switch bug - also with run-prolog Date: Tue, 12 Jan 2021 20:10:44 +0530 Message-ID: <20210112144044.2pedibectjpbzuac@sildranDT.localdomain> References: <20210111170922.42anbeq5g6uovhdu@sildranDT.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20766"; mail-complaints-to="usenet@ciao.gmane.io" To: 45795@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 12 15:42:21 2021 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 1kzKsB-0005Aq-SF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 15:42:15 +0100 Original-Received: from localhost ([::1]:37570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzKsA-00076G-RL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 09:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzKry-00074u-3l for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 09:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzKrx-0008QR-SH for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 09:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzKrx-00035C-PM for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 09:42:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20210111170922.42anbeq5g6uovhdu@sildranDT.localdomain> Resent-From: k3tu0isui@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2021 14:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45795 X-GNU-PR-Package: emacs Original-Received: via spool by 45795-submit@debbugs.gnu.org id=B45795.161046247011787 (code B ref 45795); Tue, 12 Jan 2021 14:42:01 +0000 Original-Received: (at 45795) by debbugs.gnu.org; 12 Jan 2021 14:41:10 +0000 Original-Received: from localhost ([127.0.0.1]:59626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzKr8-000343-JX for submit@debbugs.gnu.org; Tue, 12 Jan 2021 09:41:10 -0500 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:38199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzKr5-00033n-6M for 45795@debbugs.gnu.org; Tue, 12 Jan 2021 09:41:09 -0500 Original-Received: by mail-pl1-f177.google.com with SMTP id d4so687154plh.5 for <45795@debbugs.gnu.org>; Tue, 12 Jan 2021 06:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=FFbtvdyRJFRqxQDKNoQDz2HjFoneHbHY4FEumHQ4R1A=; b=qxPgwncT+8asU8v5NcMBSoGy7tDQVihmr+SlrbB3b8SiItbfL0D8k430grh/oBV0aG nLWn+gwQxFo7myAlKp6fwiDwzbOs0eW3TCQ/4v5Q/diZ208Aq78nVrnhT5AcpAA9YGpe Y/3GH48Jsb+UITT6pndB5Hz1vGkSjxuoeGrPbGDaoWeRzbdwmD41Mo8pwjEQhb5W24Os 4v1pqAC9GiDbRClPII/joTJeOtU6bFygjPQJdAjeCFEt9DuCn16YBGTLUWf5v1MgnH7L 3tsoPZgzlrorfYwFdzLGaSxJhD5zRxM0+VEsTUcsPMwwDIiEiyOlyfiMeSI7xcGss+fm 69xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=FFbtvdyRJFRqxQDKNoQDz2HjFoneHbHY4FEumHQ4R1A=; b=BbO5+QuOWR+pGr2uhagZIJ+XlOW9G8NA69uzkejuYTmW3WOqoJ+lAvj51hdpGBbd3z KiqEsD6Rd8SRQB3ldVhBTh/O11uT6Z2rusY2M7nY8PIkaXuRfNkrKV5iVAtTuBRdHNr6 0Y88IUBDTTja428ew03y9JKRlmkVbg9RjgxjajV7Wymc1tYCsQbaW126LIh3oPX72Aaw s02Tx63r8f8rA+G57iRCIiCJ01xalo7Xa1xYibdKzSZbXhVThnfjK+aI4hfa6qkxOQ3U MAS4zQH8OIKjyJyFsDhqNQNkOm2nDJNrL2qM0FncR3wKuWYDB4/2fTXi7xa+bmj7nbGG aIpA== X-Gm-Message-State: AOAM532I4d70XDeukM71YeD0qa4MTpfBVJ+U9aU0B0TgrFXYVvxJ881I 78zaxYI50zlItH2MOodH0vVCsswdu9l4Hw== X-Google-Smtp-Source: ABdhPJzurpJiqhpLC77zmNzP70Zw16XVJxFNdsTW0f2bebNzcVbT9hDqU5Nh6w5nH3eohHdP4R1fBQ== X-Received: by 2002:a17:902:db84:b029:dc:2efb:659b with SMTP id m4-20020a170902db84b02900dc2efb659bmr5014522pld.83.1610462460475; Tue, 12 Jan 2021 06:41:00 -0800 (PST) Original-Received: from sildranDT.localdomain ([27.59.147.45]) by smtp.gmail.com with ESMTPSA id t1sm3461666pfq.154.2021.01.12.06.40.55 for <45795@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 06:40:59 -0800 (PST) Content-Disposition: inline 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:197791 Archived-At: I have also noticed that this affects the `run-prolog` function in a way not affected by my previous patch. In `run-prolog` function `prolog-ensure-process` is called after switching to the *prolog* buffer using `prolog-goto-prolog-process-buffer`. So my previous patch which deals with `prolog-ensure-process` will not affect this. I do not know how to rectify this due to the presence of SICStus-Prolog specific code that seems to be working in *prolog* buffer. If I moved `prolog-ensure-process` call before switching to *prolog* buffer, something SICStus might break. I have never worked with SICStus so I am not sure how to deal with this.