From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Three Flymake backends Was Re: Two issues with the new Flymake Date: Sun, 5 Nov 2017 22:14:48 +0200 Message-ID: <829794de-27ca-383e-2b3a-a5bc4405581b@yandex.ru> References: <87k1z7adxi.fsf@metapensiero.it> <87po8zrubl.fsf@gmail.com> <87a800swy5.fsf@gmail.com> <04d1a3b5-9651-c46d-0e3b-7e1c858cda02@yandex.ru> <87zi80rhak.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1509912935 7055 195.159.176.226 (5 Nov 2017 20:15:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 20:15:35 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 Cc: Mark Oteiza , Lele Gaifax , Stefan Monnier , emacs-devel@gnu.org To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 05 21:15:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBRKL-0001ZD-Rc for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 21:15:29 +0100 Original-Received: from localhost ([::1]:45555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBRKR-0001vq-DY for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 15:15:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBRJn-0001vZ-EU for emacs-devel@gnu.org; Sun, 05 Nov 2017 15:14:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBRJk-0000G8-Am for emacs-devel@gnu.org; Sun, 05 Nov 2017 15:14:55 -0500 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:49038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBRJk-0000Fu-4U for emacs-devel@gnu.org; Sun, 05 Nov 2017 15:14:52 -0500 Original-Received: by mail-wm0-x22f.google.com with SMTP id p75so10097961wmg.3 for ; Sun, 05 Nov 2017 12:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Jxho4M1c0C/lwn97ee2QzCAdeXF029hADErGCIRNaIo=; b=aefDfr0JtLVqEMYLSBcGBaHEkxkCL+oHnecRe/PC/9VdpaonouT05bl7mfCRF/+dOW FLASrLyz45oS88/Sd0neaJbNtBJ5F2McELXhQjWH9BFD47+XIsJ1H/8M3cxFZJHtNtV7 LE/TFAS7AqWuh33QmdqPP/9wYIGzb/+aLfIJgl7g1a1Fm+/ehy8K4fLtizYIyY1SgYBb 9udXMQf1vc3UlqDRabLFItHU49OgTxEGrFO/+P7iB19yKRK313Zbr81ncFOB07xS6WeZ k3N4BlgN8nDoSgX2bzkNq+PK0oY2PT3lpCywFxc+dhXbR8+my+PoNrH4ogjiWY/g0sEM iZFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Jxho4M1c0C/lwn97ee2QzCAdeXF029hADErGCIRNaIo=; b=t9VybaeSehCLfhfVbDUlGFpREf+4u3sxPjs9RG6aiyrsRMzA/r/KoDrAawIGy064PM QptivaxGugIgW9a8wr/ZI4sybIih5WmHtmrcFKGbHZX8UkXI+ypk5hOEDfwc6eOOhCNS 9oewhaZ5pX/FobhVsfumVz6nFogH5IPLmysfgMkVuNYeYWIukr+qEiwsmcKlGuhc1tOo ow44ApeGZ25354A4HhrJopn4+Md91PgZMqx8eJycoNFXkblui7KdCUiaAKA/cLirPmvE 69fr0a7ewK70kdRrosQyKfXm5y4FKbvcwU2SQIwOiewAjD28/vggTutOXwA8TEohy4Dj PSsQ== X-Gm-Message-State: AJaThX6nB7QQ8jLAbMkheXuacOJW+nBI/mAcNIwe8iUcIN1IqlVHbj19 oVDTA9PSUdPDCoSjWKsBaDbvgmhO X-Google-Smtp-Source: ABhQp+SUOcf7fQucFzGNRlLFMPqRe+uAu9pBHoPQDXRpxLpBFCzK89Db6ovnVhhVwCtJRunwR6wvBA== X-Received: by 10.28.135.205 with SMTP id j196mr3619026wmd.144.1509912890799; Sun, 05 Nov 2017 12:14:50 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id c82sm3275071wme.20.2017.11.05.12.14.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Nov 2017 12:14:49 -0800 (PST) In-Reply-To: <87zi80rhak.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219931 Archived-At: On 11/5/17 3:22 PM, João Távora wrote: > I think the doors are still open for the "sooner" case :-) I don't have > rubucop, but defining new backends of the > "feed-to-stdin-then-parse-with-regexp" type is really easy (and of > really verbose, but we're trying to fix that) OK, I'll keep that in mind. :) >> Although the other option, I think, is for the said function to return >> a lambda. The return value could be used with `defalias' or with >> `add-hook' directly. > > All of this is more verbose than the relatively standard way of using > "define" macros. > > And add-hook for lambda's is not very nice imo because there isn't a > easy way to remove-hook afterwards. The defalias way should be all right with remove-hook, though. I'm in the "don't create new macros unless it's _really_ beneficial" camp, though it might be in the minority here.