all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: k3tu0isui@gmail.com
To: progscriptclone@gmail.com
Cc: 46003@debbugs.gnu.org
Subject: bug#46003: #46003: should this be a bug?
Date: Wed, 27 Jan 2021 11:41:34 +0530	[thread overview]
Message-ID: <20210127061134.wzaxfjsqinhkk2oe@sildranDT.localdomain> (raw)
In-Reply-To: <4049adea-058e-f97a-ad4a-3727d2a1db98@gmail.com>

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





  reply	other threads:[~2021-01-27  6:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-20  8:26 bug#46003: prolog-mode: inferior prolog process not available when prolog-inferior-mode-hook is run Tim Lee
2021-01-27  6:11 ` k3tu0isui [this message]
2022-06-07 14:37   ` 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

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

  git send-email \
    --in-reply-to=20210127061134.wzaxfjsqinhkk2oe@sildranDT.localdomain \
    --to=k3tu0isui@gmail.com \
    --cc=46003@debbugs.gnu.org \
    --cc=progscriptclone@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.