From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: shell-command-sentinel hook? Date: Mon, 04 Mar 2024 22:08:12 +0200 Message-ID: <868r2xn4k3.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Christopher Howard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 04 21:09:02 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rhEcQ-0006PZ-65 for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Mar 2024 21:09:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhEc9-0006el-UA; Mon, 04 Mar 2024 15:08:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhEc0-0006dd-9l for emacs-devel@gnu.org; Mon, 04 Mar 2024 15:08:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhEby-0003IC-QM; Mon, 04 Mar 2024 15:08:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mrjrkcLcSB77z0etU3Ltyoz0Qud19ziRkMEEK0c8ZWc=; b=N4WxkL/z42Xu O4rMPV/xs+uOUEDJE/OtvIqKnMk3YYsiZiITt599lDHQD71b/IXwtxGl6aFqDTPDEeWoE1eqZ732+ mT65wVbDpURd2aCTUUsYBwsn8F0ByVKNXAtQaHnGMG7DEwES4V5OKXFWc842mjH+a1q5WXEhP8Q2v +UJYyTgETsNZsN48z8ToiCo/lEePnfpxdMMfOhcs5DWzhKmqOXUtawPvJMSR21U9BUCRRCm4B+9AE MY7airCRvLTnsSu70byqC2CpK5gfiCLNx7zij0LWwxuX0I7SIY36Mf7lLGxosMG9l/TDPYjsZMX0y jNFlP1NXWn9qEMpNklbUqQ==; In-Reply-To: (message from Christopher Howard on Mon, 4 Mar 2024 09:00:11 -0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316810 Archived-At: > Date: Mon, 4 Mar 2024 09:00:11 -0900 > From: Christopher Howard > > Hi, I was just wondering if it would be difficult/problematic to patch simple.el to provide some kind of hook so that, when async shell commands complete, users can run arbitrary elisp? I imagine this would get inserted at the end of shell-command-sentinel...? Why cannot you simply override shell-command-sentinel with your own function?