From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10483: [PATCH] cperl-mode: Avoid endless loop Date: Fri, 04 Sep 2020 13:59:04 +0200 Message-ID: <874kodda7r.fsf@gnus.org> References: <83o8mqwwx2.fsf@gnu.org> <83k0xewszf.fsf@gnu.org> <922046dc-34fa-487d-4695-6597f8db148e@posteo.de> <87k0xafcx2.fsf@gnus.org> <831rjiui58.fsf@gnu.org> <87lfhpddsf.fsf@gnus.org> <83r1rhu65d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 10483@debbugs.gnu.org, haj@posteo.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 14:04:23 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kEAS7-0006qh-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 14:04:23 +0200 Original-Received: from localhost ([::1]:50236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEAS6-0001bE-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 08:04:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEANv-0003SJ-35 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEANu-0007fB-HQ for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEANu-0007Eo-Bk for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10483 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed confirmed Original-Received: via spool by 10483-submit@debbugs.gnu.org id=B10483.159922075927720 (code B ref 10483); Fri, 04 Sep 2020 12:00:02 +0000 Original-Received: (at 10483) by debbugs.gnu.org; 4 Sep 2020 11:59:19 +0000 Original-Received: from localhost ([127.0.0.1]:37684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEAND-0007D2-GB for submit@debbugs.gnu.org; Fri, 04 Sep 2020 07:59:19 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEANC-0007Cn-1p for 10483@debbugs.gnu.org; Fri, 04 Sep 2020 07:59:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NaEGS29+9+RngNAAr/gUUyeiiGid3UUNW02lLMteFg0=; b=dAbiwYXptKMMGE7NMBtXL4XKTu 1WMkVntAYaFbefmmvIxoon76tqx8OaQkmCezwD6RXX/2348XSzmshn5AkAKosfzUN89ItVEGMV2QT WZs5kHMkk/IBL++QF2bIYhHAaSw5jGTn0zm097IGI2xeribVaL2IwikC9RBPakZ/1Yio=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEAN0-00077z-7X; Fri, 04 Sep 2020 13:59:11 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUEBQIpLyBXZFGS mnBASzi5v5j////6jDnzAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJBAsWF1Bt2eMAAAGWSURBVDjL 5ZNRcusgDEVFmwVA6v43gvzXqP43hLeAN1T730olKC5pu4NqPGN8TyTEFQH4E+GsA/OLbnw4X/Ju nISxEzhFzJhtA24GBksuSwPLoZvSIpdgZbloTgcPNGJ/IN8WGBARnob+Bnks48YE10q0scRqmrjV rRJHBB6x/uNKsWcQTsBtklm5Ad2DmFul9zOTviXLoxAQ6FX5f+2J+uvW1ahUxkKawQnU5wGkMAkF ppzCjXetVDlSzNKxZEFRR8WGW3Tlslj1w6RkHJTUzDaegojTUNQ0sfpWqcbk7se3oDXigxwsp1n2 4t+jNFPJx1COeaAaLlZydxyPcvqZDFPtuhz7E6nR9on7HuKHjrPNXb/h2t0W+zqJtoE302eq/nWS Q1LwcsJJx9Buh4BozwL8AXo1ARfInvAr5O4FBXGHjHECQXRpmdDKFOeMToACfAdY5AFaTz9BwQD8 oheC5010c5m5WwE933el7dbHV4O+flXHEgQkePe7OfYoZZw8wUrWzFZ8RpK/2QDlLuCMYEL5nlDK B/IFmZCH6NapAAAAEGVYSWZJSSoACAAAAAAAAAAAAAAAnDy5KAAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMC0wOS0wNFQxMToyMjoyMiswMDowMM9U8PMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDkt MDRUMTE6MjI6MjIrMDA6MDC+CUhPAAAAAElFTkSuQmCC X-Now-Playing: Tuxedomoon's _Live in Los Angeles (2005)_: "Loneliness" In-Reply-To: <83r1rhu65d.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Sep 2020 14:34:54 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187108 Archived-At: Eli Zaretskii writes: > But the advantage of a loop is that you can do something while you > wait. Whereas if you expose waitpid to Lisp, the Lisp program which > calls it will be parked inside the call, and the entire Emacs session > will stall. Or what am I missing? No, I'm not talking about actually implementing waitpid, but just adding some utility functions for handling multi-processing in a bit more convenient way. Starting a process and then waiting until it's done isn't an unusual thing to do, so a wait-for-process function would be nice (in this instance). In general, it would be nice if Emacs grew a rich feature set for synchronisation (thread and process), perhaps based on futures (or whatever kids these days are using). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no