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.help Subject: comint-mode: Is there a hook that runs when the inferior process ends? Date: Thu, 21 Jan 2021 18:43:38 +0800 Message-ID: <65e55a6c-9d84-bcf9-c859-e3721b502b3d@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="4427"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 21 15:34:18 2021 Return-path: Envelope-to: geh-help-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 1l2b2P-00013E-Vm for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 21 Jan 2021 15:34:17 +0100 Original-Received: from localhost ([::1]:39592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2b2P-0005zE-0k for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 21 Jan 2021 09:34:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2XOG-0004mW-IT for help-gnu-emacs@gnu.org; Thu, 21 Jan 2021 05:40:36 -0500 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:38484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2XOD-0002tj-Pd for help-gnu-emacs@gnu.org; Thu, 21 Jan 2021 05:40:36 -0500 Original-Received: by mail-pl1-x629.google.com with SMTP id d4so1061498plh.5 for ; Thu, 21 Jan 2021 02:40:33 -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=jS/UTqlJtQZVh3ZxyLKOc2p1ACYHft4zEydc6icZVAY=; b=K98f+EG5029QCx9eaiZYQtw1XPzfJhUWNTaxcYpom/QadUbggEOjeRgL6J4FNnVX/N yWLvOgw12i5JtkZRsSD02rAqu5YGS5wzN9pILcdwzPNcT22kfUWAdkkKT/uw0yNkZcRR SUElaJkFaNgeOeTrJhyGogxFA9lRJj6HHGH5fiNC3skx1ZwvWvI4AO82tCvVRPWKIPEi +m67reCWeO7i5uG/VVm8Z0zWKWyH2bVtmDMrcH96+ZMjbt9gW178bakUlio+gRDuFvLU 2eCFr38DP0Xbj77FKd9nbMdjRgUlT8UtgVuKjqnP2oXG69JSs9nrFeeKnnflfc2jBkdc HabA== 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=jS/UTqlJtQZVh3ZxyLKOc2p1ACYHft4zEydc6icZVAY=; b=WAFRssJQQWiscPvxfUz6aOILJDEhDAhOOtqkvrQE1SOM3xVssLXQqOatbUqNYsnML4 RdEvr7XXr10bixiaN0eC4QCXplzxbK2yu99OcaVtzFtKtJBO0P7HC9Ts35zg6+z8P3+p 0pxwtVY7rNUvl1j2Uh9ZuPZrA2YWea+UgKQyE8F4hYn0RZ0L415cpl6GDrIjmU03a8AB XzyytUrf8H1fdM0Sp6+NiC+ErFYmOqYnegMRCFxIdtYntrz2fjrkolYpKhjkmQBZPMpJ 1/kDbgXtZTDM7iZP/ZIO2ul9X7Fe86yf+h6XsY3TQ2AURT3WZ/8JCYtsNv49F6aIzfLO 54XA== X-Gm-Message-State: AOAM532uLO7IbybV/OoUSYv2bFI307oHefMch/aoYpFyZryzUvmDtSXY 00FEKvUzZIc0daYPKq0Bx+w1lhm42ZY= X-Google-Smtp-Source: ABdhPJwqtQ/TMjjZSC7mFCh8dFmdQNz7prVsWdEBsfE3wBvgK9XUN266thReAEi4HWDf5VDA7RtAdQ== X-Received: by 2002:a17:902:d915:b029:de:30a3:fdd6 with SMTP id c21-20020a170902d915b02900de30a3fdd6mr14164010plz.45.1611225632001; Thu, 21 Jan 2021 02:40:32 -0800 (PST) Original-Received: from [10.0.2.15] ([61.6.233.213]) by smtp.gmail.com with ESMTPSA id v2sm4908725pgs.50.2021.01.21.02.40.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 02:40:31 -0800 (PST) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=progscriptclone@gmail.com; helo=mail-pl1-x629.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: Thu, 21 Jan 2021 09:33:27 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127308 Archived-At: In comint-mode, is there a hook that runs when the process ends? M-x describe-variable only shows "comint-mode-hook" which is undocumented. >From some experimentation, I found that runs at the beginning of comint mode, rather than when the inferior process ends. How do I run some code when the inferior process in comint mode ends? (Emacs version: 25.2 on Ubuntu 18.04)