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#46003: #46003: should this be a bug? Date: Wed, 27 Jan 2021 11:41:34 +0530 Message-ID: <20210127061134.wzaxfjsqinhkk2oe@sildranDT.localdomain> References: <4049adea-058e-f97a-ad4a-3727d2a1db98@gmail.com> 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="2134"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46003@debbugs.gnu.org To: progscriptclone@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 27 07:12:16 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 1l4e3s-0000Oh-4x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 07:12:16 +0100 Original-Received: from localhost ([::1]:53642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4e3r-0002Oh-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 01:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4e3e-0002Oa-Td for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4e3e-0006nW-LD for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4e3e-0001eR-Gd for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 01:12:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <4049adea-058e-f97a-ad4a-3727d2a1db98@gmail.com> Resent-From: k3tu0isui@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jan 2021 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46003 X-GNU-PR-Package: emacs Original-Received: via spool by 46003-submit@debbugs.gnu.org id=B46003.16117279086322 (code B ref 46003); Wed, 27 Jan 2021 06:12:02 +0000 Original-Received: (at 46003) by debbugs.gnu.org; 27 Jan 2021 06:11:48 +0000 Original-Received: from localhost ([127.0.0.1]:43432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4e3Q-0001du-E7 for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:11:48 -0500 Original-Received: from mail-pf1-f172.google.com ([209.85.210.172]:38811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4e3O-0001dd-Qj for 46003@debbugs.gnu.org; Wed, 27 Jan 2021 01:11:47 -0500 Original-Received: by mail-pf1-f172.google.com with SMTP id y205so520648pfc.5 for <46003@debbugs.gnu.org>; Tue, 26 Jan 2021 22:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=HG2Ay37UG6M0i378msoItWD5jj4UVzJbiYft/LulLBg=; b=S9+g6LQk2Rgs1C7CjBU7+59SABDJqg6WI5uyAZRFobik2/GzjjvVd82Bs5V7ZvSe+C EmFLRZPrYFvu+LM3iBadfi+JzJtfl8euQz0ydBUnTmwYe3TYs9NYqeFixQsnAeAErhVN niRqRcQQT+xZRd4Syb9gDAhpdqCIvnhOWh/jG+cpKX/tDVBjLDec+EQg+yNGuyTQ+rVk 69iYUeUj5OYBlB7EEPCqmGvWkHGW8A5OpDjxalvBbrjQI5r63nqsIpc19+34/jq7wwP0 gpE79CHkshgEMJPDS4UQ2P5dEIdwPZwp0/mkkpWrD3c7WNe9iL8W+tvYkzcTJoNN3uD2 IvOA== 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:cc:subject:message-id:mime-version :content-disposition; bh=HG2Ay37UG6M0i378msoItWD5jj4UVzJbiYft/LulLBg=; b=rO22ChZFD9RsVRmDFSDdqH5DkL+fwjU6E6LJml0kgZr7irqpYLtbKbpcR/EL476sB+ 1LRDHFogViNkY2SqBRCNa0taQwyWM4n50Xrp/uXPDH9yaVV06mM/kO7REnOgBan9DzEe /3FhzwNJWk+rZoEJ3sYJInCYZ8Q986cJoWcjX/VhNxlEsEFlpqnw2zefeK3ZgdRHlv95 aFDPz3+STqshjwgKIlxJoQSvuYtdbW1SC1+SY+fn5Hgt+rSZdj7TXAJUSNcUJo7ijvU6 OcyKhoqwGDpHH+y6sXVlkjxZ0dH79j8Keh+D+M2KvNhSjct86c7wlIXtn1yh+Ll6UnjS xsKg== X-Gm-Message-State: AOAM530pWxYUyQSJAezO8gbrTD7ZIQCtfjT618JXJ5fmxQmLYO2MqpAv PHUtk1HD5XSNgbizEVlEk0Q= X-Google-Smtp-Source: ABdhPJxxIpEqv7GCGLkSG7IeJ5kNLB2LuDtqvqaz9eLmX56Vv//MwQAqZbKE/dh2MpEEWNMek2WsKA== X-Received: by 2002:a62:7b8a:0:b029:1bb:4a06:bb57 with SMTP id w132-20020a627b8a0000b02901bb4a06bb57mr8911654pfc.47.1611727901018; Tue, 26 Jan 2021 22:11:41 -0800 (PST) Original-Received: from sildranDT.localdomain ([2401:4900:4aa6:7954:601:f328:b3b2:8896]) by smtp.gmail.com with ESMTPSA id 68sm1076223pfg.90.2021.01.26.22.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 22:11:40 -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:198671 Archived-At: Is it a requirement for a buffer in a inferior-mode to always have a process? When you call run-prolog or prolog-consult-buffer, if a prolog process is not running, a *prolog* buffer is created, prolog-inferior-mode is activated in the buffer and THEN the process itself is run. Relevant code from prolog-ensure-process function. (with-current-buffer (get-buffer-create "*prolog*") (prolog-inferior-mode) ... (apply 'make-comint-in-buffer "prolog" (current-buffer) (prolog-program-name) nil (prolog-program-switches))) I assume this was required because (prolog-inferior-mode) sets up the variables required for (prolog-program-name) and (prolog-program-switches). If the relevant variables are inherited from the buffer from which run-prolog is called then, this bug fix[1] will remove this dependency and prolog-inferior-mode can be activated after the process is created. [1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45795