From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhengyi Fu Newsgroups: gmane.emacs.devel Subject: Re: unwind-protect within while-no-input Date: Sat, 11 May 2024 18:42:45 +0800 Message-ID: <9E5E5354-052D-43B4-AA09-4FCC4F0EFC4D@fuzy.me> References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10121"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 11 12:43:49 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 1s5kCi-0002UW-0y for ged-emacs-devel@m.gmane-mx.org; Sat, 11 May 2024 12:43:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5kC5-0001DL-PA; Sat, 11 May 2024 06:43:09 -0400 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 1s5kC3-0001D4-6U for emacs-devel@gnu.org; Sat, 11 May 2024 06:43:07 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5kC1-0008Kz-AC for emacs-devel@gnu.org; Sat, 11 May 2024 06:43:06 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 996BE40005; Sat, 11 May 2024 10:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1715424180; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jD+V+EJd0mW06WspX806uuyWL1TpZefxaob7HHjLLBw=; b=WWe9dJX7kSMKviq+uFD93IJJa7BvPK4DEhBhEvr4Oxjh00toocs5LDCXKjQKcpyZPf8hH5 ipKEgnGT3ZIVbNQV+oeVq08RpKDiEDOVfIIQ77sHKpg3XuqA2G/YL6zJ38WNIQbrCXJPeH PoQPouX2fhPvuIa/KQmzxt6z09fiUK6+QrpI6WONIQr8Cfzfjxwe/tBwgqAvsh9IYF9g5E UlEKK0ugCvC/vsSnRmnrmZWthiknSVVqdfbq+nfCcOnTA8EzIZYvSjLtcRNHBsyvgWWimo Uul4EedI+LEXt6tWlVcjzMIlQWGzLlY8xbF3h9VpspziEg/uBZmkWth+MKJONQ== In-Reply-To: X-Mailer: iPhone Mail (21E236) X-GND-Sasl: id@fuzy.me Received-SPF: pass client-ip=217.70.183.194; envelope-from=i@fuzy.me; helo=relay2-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:319165 Archived-At: > I'm writing a completion-at-point-function and completion table. This > table internally uses asynchronous subprocesses to get completions. > > This completion-at-point-function and table may be called by the popular > completion frontend corfu-mode. corfu-mode uses while-no-input around > calls to completion tables. > > I want to ensure that my asynchronous subprocesses are deleted even if > my code is interrupted by corfu's while-no-input. > > I can't change the protocol of completion tables or > completion-at-point-functions (that's defined by Emacs), and I'm not the > one calling while-no-input (that's corfu-mode). > Is cape-wrap-noninterruptible from the cape package helpful?