From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: The annotated example of a complete working Flymake backend leaves process buffers around Date: Sat, 23 Oct 2021 09:43:23 +0200 Message-ID: <17d30200-1546-3de4-f93a-f5aa4731402e@inventati.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 23 09:52:08 2021 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 1meBp1-0005Jx-OH for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Oct 2021 09:52:07 +0200 Original-Received: from localhost ([::1]:53130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meBoz-0001VN-Ka for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Oct 2021 03:52:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meBgk-0005lw-W8 for emacs-devel@gnu.org; Sat, 23 Oct 2021 03:43:35 -0400 Original-Received: from latitanza.investici.org ([2001:888:2000:56::19]:48799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meBgi-0001vF-6d for emacs-devel@gnu.org; Sat, 23 Oct 2021 03:43:34 -0400 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4HbtW03MBpzGp4W for ; Sat, 23 Oct 2021 07:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1634975004; bh=Sz2XNHjaebsVVdq7VRnIMgx3k0QNJ2OYSAYwdakD7/w=; h=Subject:To:References:From:Date:In-Reply-To:From; b=UwPkDrcmQrSEhLvzbpaRTd46rvNIZY+Ud83gUxbpIssO+I/fLpHNnjUzHGxlPKWaY 0EiRjl2AMbWcGcDLXjxXDlIVOttdHGGTuuUHlU25HMBUUiUVKLLvWBzZsv7+4WgdxL q3P6gGrwsM9QvgcMkXPNVE9d+Sk/t9Hrg6zeWIaQ= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4HbtW02cxFzGp4V for ; Sat, 23 Oct 2021 07:43:24 +0000 (UTC) In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2001:888:2000:56::19; envelope-from=manuel.uberti@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.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, NICE_REPLY_A=-1.742, 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.23 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:277597 Archived-At: On 23/10/21 09:17, Rudolf Adamkovič wrote: > The backend kills the process buffer on `'exit' but not on `'signal', which happens when Flymake kills an obsolete in-progress check. I fixed the problem locally with > > ┌──── > │ (let ((status (process-status proc))) > │ (when (or (eq status 'exit) (eq status 'signal)) > │ … > └──── Hi Rudolf, thank you for this tip, I've applied it to a couple of Flymake backends I worked on (namely flymake-proselint and flymake-kondor). Regards -- Manuel Uberti www.manueluberti.eu