all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* comint-mode: Is there a hook that runs when the inferior process ends?
@ 2021-01-21 10:43 Tim Lee
  2021-01-22  1:12 ` Leo Butler
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Lee @ 2021-01-21 10:43 UTC (permalink / raw)
  To: help-gnu-emacs

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)



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: comint-mode: Is there a hook that runs when the inferior process ends?
  2021-01-21 10:43 comint-mode: Is there a hook that runs when the inferior process ends? Tim Lee
@ 2021-01-22  1:12 ` Leo Butler
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Butler @ 2021-01-22  1:12 UTC (permalink / raw)
  To: Tim Lee; +Cc: help-gnu-emacs


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-22  1:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-21 10:43 comint-mode: Is there a hook that runs when the inferior process ends? Tim Lee
2021-01-22  1:12 ` Leo Butler

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.