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: New Flymake rewrite in emacs-26 Date: Tue, 03 Oct 2017 15:05:44 +0100 Message-ID: <8760bwz5qf.fsf@gmail.com> 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 1507039612 10291 195.159.176.226 (3 Oct 2017 14:06:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 14:06:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) To: emacs-devel@gnu.org, eliz@gnu.org, sdl.web@gmail.com, monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 03 16:06:46 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 1dzNqC-0001R5-1H for ged-emacs-devel@m.gmane.org; Tue, 03 Oct 2017 16:06:32 +0200 Original-Received: from localhost ([::1]:58786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzNqJ-0006VH-En for ged-emacs-devel@m.gmane.org; Tue, 03 Oct 2017 10:06:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzNpi-00061t-VJ for emacs-devel@gnu.org; Tue, 03 Oct 2017 10:06:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzNpZ-00032O-F7 for emacs-devel@gnu.org; Tue, 03 Oct 2017 10:06:02 -0400 Original-Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:37795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzNpU-0002yL-RM; Tue, 03 Oct 2017 10:05:48 -0400 Original-Received: by mail-wr0-x241.google.com with SMTP id v38so2952813wrc.4; Tue, 03 Oct 2017 07:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=Jh92jKFcIcemH/j3jD7sXPl4VN/av5dQJ2L+zya46Vk=; b=IpgHMqnzEbVE47ZXd3OUIKIzHXQMt+SWIeVUeAf30dJSbOcBLMnlfbWD4fQB74Ae19 b3TIamDVIjcH9g/Ba9cT/UTkNMU5gNRXOmB3V8cpa75sRChhP3EvFPHMjMRBrWpiPBZY 9Yux9B5qWXqbmXdRSqqcXKVo7GIk8YQHn+xkioPDxF6Q/9dRT9KGdOccVxrtP4726LGd ksbU74hF/j57UkN7TzMmQWjPnMgxrbcMsXymmF8SZeEUg7MmyaETi/olPiq4eL4tYeZz EWw0Y8g7zvBm6UN66mrpmaAZncE5p2D9VzhLPkmyc34gilgVXIF6MgIz2PXpkSC2PE08 v4KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=Jh92jKFcIcemH/j3jD7sXPl4VN/av5dQJ2L+zya46Vk=; b=hXQskg2Q8MGATjmZf2peC+f9TWXa0EwgDMDNL5CWVhjDM6Fchl0aD+gehFT5ShNYW1 0ICiitjsrYXAF331cHx5x5iPhQ0rAEHDrHmXY6yL1wOAbIcSR2pwjfKq8QX8HqBbP3ia oQNPqysonjd7xdGF8/RY7p1VPeJUKB7ktxbjz0paIE3hSwgSZakrnMNH6QCeBsJycUxm sg88SWl5qs5QyhXNAVRSZDtsNW8e26Kr74klmDl5FcV0mchoIaKEHvVaY2E050GxaRMJ 09WeFKCdksBkrhv5iEW7K6OD9MHKjAbpyjnJwe+dxhvnEuurarA7GwWbEAmLUedO+97D TDNg== X-Gm-Message-State: AMCzsaWLAsk0J5cfrOvA30k5zFrBco30+1W+NuoohG6VwafhvRlFnWAD SHSe/n+FxfTL7NQ/QDmBBws= X-Google-Smtp-Source: AOwi7QAivZN6SpEx0DhyYr0GUgjgtdkupDXDZBB4wYh7OJuXSgh5QZZLdCQGsN4L3u/gsPCFP2/mLA== X-Received: by 10.223.157.30 with SMTP id k30mr6347568wre.159.1507039547774; Tue, 03 Oct 2017 07:05:47 -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 b47sm14660107wra.73.2017.10.03.07.05.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2017 07:05:47 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 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:219032 Archived-At: Hi, As discussed, I have just merged the Flymake rewrite into emacs-26. I did this sooner than I expected so people can give it as much testing as possible. `flymake-mode' is not active by default, so when writing Elisp, I encourage you to try out the new backends. Just M-x flymake-mode or (add-to-list 'emacs-lisp-mode-hook 'flymake-mode). Of course if you were already using Flymake for C, C++, etc. Everything should also still work (slightly better, in fact). Let me know if it doesn't. Some things worth noting: * There are two older commits in emacs-26 that must be merged to master after all, otherwise the merge-back of this feature won't work. This is because there was a reversion of the decision to bring this feature to emacs-26 (see https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg01020.html and https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg01030.html) the reversion The two commits are ce540f8a68..: Jo=C3=A3o T=C3=A1vora 2017-09-27 Revert "Split flymake.el i= nto flymake-proc.el and flymake-ui.el" 7cf59c6635..: Jo=C3=A3o T=C3=A1vora 2017-09-27 Revert "Add flymake-backen= ds defcustom" * The most important docstrings are in place, but the Texinfo documentation (which I also rewrote considerably) is missing the bits about the new API for writing backends. Ideally, I would like some feedback on it (besides Stefan, of course). Please see the docstrings of `flymake-diagnostic-functions' and `flymake-diagnostic-types-alist'. Even more ideally, someone would write a nicer backend for Emacs's C sources (the current "legacy" one requires Makefiles to contain a "syntax-check" target, which isn't practical, I presume) Thanks, Jo=C3=A3o