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 15:04:49 +0200 Message-ID: <04d1a3b5-9651-c46d-0e3b-7e1c858cda02@yandex.ru> References: <87k1z7adxi.fsf@metapensiero.it> <87po8zrubl.fsf@gmail.com> <87a800swy5.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 1509887104 10133 195.159.176.226 (5 Nov 2017 13:05:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 13:05:04 +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 14:04:59 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 1eBKbi-0002IH-AV for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 14:04:58 +0100 Original-Received: from localhost ([::1]:44246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBKbp-00087w-LA for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 08:05:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBKbh-00087m-10 for emacs-devel@gnu.org; Sun, 05 Nov 2017 08:04:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBKbd-0006UV-SH for emacs-devel@gnu.org; Sun, 05 Nov 2017 08:04:57 -0500 Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:51490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBKbd-0006Tr-LC for emacs-devel@gnu.org; Sun, 05 Nov 2017 08:04:53 -0500 Original-Received: by mail-wm0-x236.google.com with SMTP id b9so9321952wmh.0 for ; Sun, 05 Nov 2017 05:04:53 -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=gcH1ME5ZCFSQptgXepepVh/4u6x3lgCij8AwUdSq418=; b=jskFmD0AP/ja6kWTHkSppsOspyqDpupHdSkqKILDj0iKgbwv5lBLZdS1ZjkRBvqCis /3i5qMps8vzKOXxy8Kp8rRJbuOy49RfLbdG/uJj2KHkEIxNmJ/Fa0CThKNbXc1Zvwr1Y fhqTtQ42Do+LHiLEaHPbS6tl+yqlCRn+JK+VWOEkg4VzfkzUgiG9iklQEkQMygDsEFeI 4Q7U3dxHuksiaDq6imnKTmqnhYQNzDINWzHAH7mXzysDWemVrW6Y+n7L9hMaMLgtKAnL sVeByQAAG7tD+oUtZVmOP7lAVuG3FJ+4aOM5LkzwfdZ7+EYuzlCwkKAAcreuAoxAerwp fefw== 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=gcH1ME5ZCFSQptgXepepVh/4u6x3lgCij8AwUdSq418=; b=nPFBDcH0vDFBMjFfRrlggZMTemIngwaKfyAtxI3GRg5k7FMjXOUQklojs+rX5FpBE3 61cTNuAfFQNQDmr5VjISmlc/elX03DcOXcJTxgp5mGcMedf+9piU7s2jeHvZptHshs0q Jdo/tnC0wLgTTJv79kg+uzJeeF8Ad1EpsUuo5AB6SHpqplNcOHso9BZoi5+ELODQifqZ T4i6uPjjUIVHOo+pPlvsJmPKSynCPI+N3M//e4twWZYrm5Ke9gw5fsCDjlfsaSjPWyRc xYq/7x12evkA55LmC5VLo+/pPdLGpaZkJ5YxY70oS0IBRZ8prXJ1GPgJUVJKK9oKVEom 1FuA== X-Gm-Message-State: AMCzsaWo40XHMmtZ8AzJ3MZt5vgIpbtAfK6a4+p1g5PJ8Klvp8LxwCR3 JY4dYhFWlpUc9zQJ0G2FbM+AtVJi X-Google-Smtp-Source: ABhQp+Q1+UzNNTUtBvFls+eE/0Ic96t2/Skkdfa23DY28zlABbYKiYln+qUJWqCJoMXA8r2OrzYu5Q== X-Received: by 10.80.206.84 with SMTP id k20mr16350541edj.145.1509887092239; Sun, 05 Nov 2017 05:04:52 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id z23sm11142265edm.62.2017.11.05.05.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Nov 2017 05:04:51 -0800 (PST) In-Reply-To: <87a800swy5.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::236 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:223437 On 11/5/17 2:59 PM, João Távora wrote: > Oops. But I've just pushed the correct set emacs-26 if you want to have > a look now. Thanks! Now we have a backend for 'ruby -w', that's great, but Rubocop has become a pretty essential tool in Ruby world. For our team, at least. So sooner or later we'll need a backend for it too, for parity with Flycheck. >>> So I'm thinking that, for master (_not_ emacs-26) we could use a >>> declarative flymake-define-simple-backend macro. >> Why not make it a function? From what I can see, the usage will just >> have to quote the first two arguments. > > Because the macro defines a new function. Ah, yes. It would have to use 'eval' in that case. 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.