From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: New Flymake rewrite in emacs-26 Date: Tue, 10 Oct 2017 13:25:30 +0100 Message-ID: <87efqbb35x.fsf@gmail.com> References: <8760bwz5qf.fsf@gmail.com> <83infw1dkz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507638365 1711 195.159.176.226 (10 Oct 2017 12:26:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 12:26:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: sdl.web@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 10 14:25:57 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 1e1tbQ-0006K1-Tt for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 14:25:41 +0200 Original-Received: from localhost ([::1]:34732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1tbY-0004tv-9G for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 08:25:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1tbR-0004tf-QI for emacs-devel@gnu.org; Tue, 10 Oct 2017 08:25:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1tbN-0002mf-KW for emacs-devel@gnu.org; Tue, 10 Oct 2017 08:25:41 -0400 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:48908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1tbN-0002lU-DB; Tue, 10 Oct 2017 08:25:37 -0400 Original-Received: by mail-wm0-x229.google.com with SMTP id i124so4592553wmf.3; Tue, 10 Oct 2017 05:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=K26C9wMZLjRNDbtg2BIwP+7d2e5wMwvE4Za0IJg/n9o=; b=ZbcNLBIbHAFTBqSn1iOxqchgwtPstJE0fZttCAu4PoBrtEarVsTme4aVkIr/RCFQa9 LDR4hgKaMbzTG3fn8cfkSUZBVX9oxzcT+vhNo7ACtpGPJIki+qrKuQNnTlGGd8xoeA5P KMu1IljuOzFKg0GGjDaJqoOBk2nV3HdQaqURFtmSjDUAh2mZ4CRYX9a/Pv/Df3Tj1hZ7 KGc5GgQVgHquWRWz8KuJTitihps7M10ls4GVC63A87LOU9ll6VIdLcLwhwgtx+xvvh2e kPgiyvSSU7VkxamD4YkCt2uXy+f0QC87n43rXm7SIFGKPwSg6D8DNqBzjn/artigUBeP cR3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=K26C9wMZLjRNDbtg2BIwP+7d2e5wMwvE4Za0IJg/n9o=; b=U3U7iTl7pB4sbTF9ow4tUd8zgAjo7r4/NchrlHV7bRIWc0WwMPa80j2kD/c5nTl7P7 F5jqOevKteMnSa5Fsmm3FQm0/NzD9xgQAHQC3zRJw/qGGVBW6g7A+2IT6SK0D0BvbIsZ GgcI+4+b/ikQ3sdRj0t1DfK9Cdn/GG3+fYPDwepFgyYiAod5rSB9I9eSTvOojw0gtyBh XxjQ0xKmEIHf4ZIphYM6xaYneWaPlHN7Vu1OuOcCi/ckhaNY4LXqFNQgSspC6uMxempn h8ZOzD6hOeC71Lpps4YURTOx6Wi1sWKupXGyzqUcMKZ44dai9JmctXGMUMfLtz9PJc5t EM2g== X-Gm-Message-State: AMCzsaV+mG43s9V75EJqMVOeJYukM1fOUCEeWZUnUxxkXVikbPdTCi+l jM99cw6qc87BL6mN/msqkhg= X-Google-Smtp-Source: AOwi7QDAcvaelTFjdsbitwSoD2lCy1zr/PVo9Tp3JtMPjhUzQgc6FQOmgL7aUvdoFmBuTlcFxhen/A== X-Received: by 10.223.133.4 with SMTP id 4mr6919742wrh.56.1507638335009; Tue, 10 Oct 2017 05:25:35 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id m48sm2244705wrf.51.2017.10.10.05.25.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 05:25:34 -0700 (PDT) In-Reply-To: <83infw1dkz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Oct 2017 18:00:12 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::229 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:219335 Archived-At: Eli Zaretskii writes: > We should add some minimal documentation about the new features. I added this to doc/misc/flymake.texi. It needs proofreading, but otherwise I consider it a fairly complete description of the new API. Importantly, a complete annotated example of a working Flymake backend is presented. This can be a model for future backends. > This should be in NEWS, perhaps after adjusting the style a bit. I'm not great at summarizing changes in a NEWS-snazzy manner, but a patch is attached. Apart from that, I see these loose ends: * Are we keeping track of the Flymake backends developed by people? Thus far, I think I counted backends for python, ruby, clang (minimal), gcc (minimal) and tex. Am I missing any? * Should Flymake do something with next-error-function? * There is a "Flymake diagnostics buffer" sub-feature in scratch/flymake-diagnostics-buffer. It is reasonably stable. Is it OK to merge into emacs-26? * Shouldn't flymake.texi be split into two parts, one for the Emacs manual and another for Emacs Lisp manual? Jo=C3=A3o --- a/etc/NEWS +++ b/etc/NEWS @@ -1146,7 +1146,19 @@ languages. (Version 2.1.0 or later of Enchant is re= quired.) ** Flymake =20 +++ -*** Emacs no longer prompts the user before killing Flymake processes on e= xit. +*** Flymake has been completely redesigned + +Flymake now annotates arbitrary buffer regions, not just lines. It +supports arbitrary diagnostic types, not not just errors and warnings +(see variable 'flymake-diagnostic-types-alist'). + +It also supports multiple simultaneous backends, meaning that you can +check your buffer from different perspectives (see variable +'flymake-diagnostic-functions'). Backends for Emacs-lisp mode are +provided. + +The old Flymake behaviour is preserved in the so-called "legacy +backend", which has been updated to benefit from new UI features. =20 * New Modes and Packages in Emacs 26.1