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: unwind-protect within while-no-input Date: Sun, 26 May 2024 07:55:45 +0300 Message-ID: <86ed9pxjce.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10994"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 26 06:56:07 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 1sB5vT-0002dV-QQ for ged-emacs-devel@m.gmane-mx.org; Sun, 26 May 2024 06:56:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sB5vI-00029H-Od; Sun, 26 May 2024 00:55:57 -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 1sB5vA-00023I-Dz for emacs-devel@gnu.org; Sun, 26 May 2024 00:55:49 -0400 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 1sB5v8-00037e-T8; Sun, 26 May 2024 00:55:48 -0400 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=Y1vhZvmKpkDpXsjpnJszgfxicUC2OgrejdrSL6n0tKA=; b=pGuK521TJzC1 149RpYMardQCT74cimAmj3wDORvwQNJEgsNPdcmvZ750moGiEQtWuKZrKnrf1ArnFZaJxoAVYvPWZ 0lA2n9AURmQYuTbsIjWVcY8Khdd04lK5Q0R2Ql77TfxkvWjptx+JLN4dLehCyjIv58EAkF9vIxHzh j7Lb5nf4btJ86D3sX+PHXxFzlubR9YgpFnJ1sBz+1Em0cjfAKF7KZTfdpBVNx6fZvsxBxIE2whPLl D8Hrhyeo7amj9/wn2rsOns0Z11+iEAw67wzulvmPehmiYOwtf0zgzfEki7NeDCmHG0yk4K7CyehWV yIFoqTmLYd6vhZVsdZwPiw==; In-Reply-To: (emacs-devel@gnu.org) 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:319575 Archived-At: > Date: Sat, 25 May 2024 22:47:07 -0400 > From: Stefan Monnier via "Emacs development discussions." > > Maybe a "cheaper" answer for your specific problem is to make sure > that once `while-no-input` has started a non-local exit (which it does > with `throw`, IIRC), we mark "this while-no-input" as being done > so it won't cause a nested exit while we process the unwind form of the > original exit. > > E.g. with a patch like the one below? Would it fix your case? Please don't install anything like this until the emacs-30 release branch is cut.