help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comint-mode: Is there a hook that runs when the inferior process end


From: Leo Butler
Subject: Re: comint-mode: Is there a hook that runs when the inferior process ends?
Date: Thu, 21 Jan 2021 19:12:17 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Tim Lee <progscriptclone@gmail.com> writes:

> 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)

I think you may be looking for a process sentinel.

(info "(elisp)Sentinels")

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]