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: using finalizers Date: Sun, 02 Jan 2022 17:16:53 +0200 Message-ID: <835yr2dv6i.fsf@gnu.org> References: <878rw1pvcw.fsf@logand.com> <83r19tgqlq.fsf@gnu.org> <87v8z5nmsp.fsf@logand.com> <875yr3krs5.fsf@logand.com> <83tuemeif5.fsf@gnu.org> <87r19qk1z8.fsf@logand.com> <83k0fiedu3.fsf@gnu.org> <87h7am5ln9.fsf@logand.com> <83a6gedwre.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38401"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudi@constantly.at, emacs-devel@gnu.org To: tom@logand.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 02 16:18:03 2022 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 1n42cU-0009pa-Jq for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 16:18:02 +0100 Original-Received: from localhost ([::1]:40200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n42cS-0000vG-QI for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 10:18:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n42bN-0008S7-Iu for emacs-devel@gnu.org; Sun, 02 Jan 2022 10:16:54 -0500 Original-Received: from [2001:470:142:3::e] (port=56386 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n42bM-0003Bc-Q7; Sun, 02 Jan 2022 10:16:52 -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=P2STnFqDiTpSiWf91UQobnoJBDqkcMJyI0pz+lNlf08=; b=O21gAVOdh2Q/ ayUk1A+bEEmTs4JqW36YcN8U3z+kAlhP+fs5ggrVnpGcOQAUbzF0W4vHJZPyGbGSXvc92jvUGORJR XB8P2/jmoOhi/xr4DpMGF2iIZ06ZkaY9E84CYWCF44NzCTqQw73oXXNWkS5jicvkcseKqqG/SaZ6Q HQuZGogVyJQ2T3wEFzI3oQh4KDXiEfPDAbY6ugazQ0S1kjuwqAXLS30vT7VU53qrIzZsfNj1NWJhM 3Ech38KO88V1y79a/hSjl1nzjZaO5R8zLHUnQ1Nd5rVLzZQ6S0pNe2DLnql6MAxm96NpJ7Y1xIA4g +R/BQRZNfri7xwS1w4uD5w==; Original-Received: from [87.69.77.57] (port=1746 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n42bM-0006mg-P6; Sun, 02 Jan 2022 10:16:53 -0500 In-Reply-To: <83a6gedwre.fsf@gnu.org> (message from Eli Zaretskii on Sun, 02 Jan 2022 16:42:45 +0200) 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" Xref: news.gmane.io gmane.emacs.devel:283916 Archived-At: > Date: Sun, 02 Jan 2022 16:42:45 +0200 > From: Eli Zaretskii > Cc: rudi@constantly.at, emacs-devel@gnu.org > > > >> > There are usually protocols for the callback to stop the process and > > >> > prevent the rest of objects from being examined/reported. > > >> > > >> There is no such thing in directory-files. > > > > > > I think we have something like that in lisp/url/. > > > > Thanks for the hint. Unfortunatelly I can't find anything from after a > > quick search. > > Grep for "callback". Come to think of it, calling hooks via run-hook-with-args-until-failure or run-hook-with-args-until-success implements such a protocol.