From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Lee Newsgroups: gmane.emacs.bugs Subject: bug#46003: prolog-mode: inferior prolog process not available when prolog-inferior-mode-hook is run Date: Wed, 20 Jan 2021 16:26:45 +0800 Message-ID: <4049adea-058e-f97a-ad4a-3727d2a1db98@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32156"; mail-complaints-to="usenet@ciao.gmane.io" To: 46003@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 20 09:34:14 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 1l28wP-0008CW-DL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jan 2021 09:34:13 +0100 Original-Received: from localhost ([::1]:47172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l28wO-0003iS-GN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jan 2021 03:34:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l28wE-0003fX-6U for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2021 03:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l28wD-00024D-VB for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2021 03:34:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l28wD-0007dt-T1 for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2021 03:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tim Lee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jan 2021 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46003 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.161113160229307 (code B ref -1); Wed, 20 Jan 2021 08:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2021 08:33:22 +0000 Original-Received: from localhost ([127.0.0.1]:52772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l28vZ-0007cc-MN for submit@debbugs.gnu.org; Wed, 20 Jan 2021 03:33:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l28o1-0007PO-UE for submit@debbugs.gnu.org; Wed, 20 Jan 2021 03:25:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l28o1-0008D8-Lc for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2021 03:25:33 -0500 Original-Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:53005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l28nz-0007R5-Pt for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2021 03:25:33 -0500 Original-Received: by mail-pj1-x102b.google.com with SMTP id kx7so1724169pjb.2 for ; Wed, 20 Jan 2021 00:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:mime-version:content-language :content-transfer-encoding; bh=E/B5J4dKkFVtMed7t8m9bit0TahjPTuNXAXVV5qSR8c=; b=AA6l4F2hydSw84Kas0yrJ59vD9CjxVKz398Z5KDbyS2SzUbFwyClO+fRP9+vavXxOt J9AKZ7t2/7OdjZU8Fh7DnP7NtaqAHbYp3G7IFNQ2ihZtw5rZrM1zhX16W5cGlHyCMFrK IIM931DEgGa5zXLhjy/eQ+szNub/G5iscNJbMZuYC1yrBcDtGhZ6bOBlTb0H6Ce90VXO A4wNiTZqScN2CaVUmXA6VpTcrHy7M/R9yvvH1KDjShM2cThZLYCRvzva+JtHauAA8SiA /9LHCAkP1/dFnZK9NFgB7sysL0Ecz0irQ+kooXhTBiOiDVYjk4bmN9k4bOB+LMCfHj8d XdHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:mime-version :content-language:content-transfer-encoding; bh=E/B5J4dKkFVtMed7t8m9bit0TahjPTuNXAXVV5qSR8c=; b=s/CgjWFS2cnqmn5tiMgI81iAu8q/2e4I+kNxBmMOCRRsRHmZ4pl2DPQwSjXgAP28NH E8OSx7y90T0Fsmc0ogYaYI3dEdxQJ4r8QjKSmbqnmLfY51aqfeqzKWEk/dNna5k6KJhP YVrF+PP5q2gOsOJ9f0deUPDOFoACwltTGaukNXVGTukJdiCj6R7PyhsRwbtdnsW5hq1/ ZqeUTnXu1J85s2bIGMg7f0IFAVgSfkvK7D7ytFhIXcYNsjS24pi0hSF9uOS+O5ijeSP7 OgArpFI30dt468PHJFO+s0UutosyU0SxReDq/5HjinFI+50eBeo9cmCHvPw35Tidhwze RmQQ== X-Gm-Message-State: AOAM530vIcGpKruSnqvFTsSHT+hTN5ZKn2l2YcTO849qHd6OO9fbST22 lUnqR09nFgViB0P5C2r3nn2wZM9WWr0= X-Google-Smtp-Source: ABdhPJxL8zA86BKKAWCsm7QHtcC5kJ3/b4V5ggvrFvZUV9gw8Q+5lkLBfJ/FDUPtGCGmppwdvecpGw== X-Received: by 2002:a17:90a:2f8f:: with SMTP id t15mr4372718pjd.184.1611131129283; Wed, 20 Jan 2021 00:25:29 -0800 (PST) Original-Received: from [10.0.2.15] ([61.6.232.49]) by smtp.gmail.com with ESMTPSA id fh7sm1559985pjb.43.2021.01.20.00.25.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Jan 2021 00:25:28 -0800 (PST) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=progscriptclone@gmail.com; helo=mail-pj1-x102b.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, 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: Wed, 20 Jan 2021 03:33:20 -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:198254 Archived-At: I am using prolog-mode in Emacs 25.2. The following code shows that the inferior prolog process is not available when prolog-inferior-mode-hook is run: (add-hook 'prolog-inferior-mode-hook (lambda () (unless (get-buffer-process (current-buffer)) (warn "NO PROCESS!")))) When I have above in my ~/.emacs, and when I start the Prolog REPL using M-x run-prolog, the warning "NO PROCESS!" will appear, showing that the inferior prolog process in not available when the hook is run. I don't get this problem with the inferior mode hooks of other programming languages (e.g. inferior-python-mode-hook, inferior-lisp-mode-hook, inferior-scheme-mode-hook, etc.); their process is available when their hook is run. I assume that there is problem with prolog-mode.