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: Thu, 05 Oct 2017 03:21:55 +0100 Message-ID: <87wp4a1gho.fsf@gmail.com> References: <8760bwz5qf.fsf@gmail.com> <83infw1dkz.fsf@gnu.org> <87tvzf9lbg.fsf@metapensiero.it> <87poa39gjb.fsf@metapensiero.it> <87lgkqampq.fsf@metapensiero.it> <87efqiailp.fsf@metapensiero.it> 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 1507170164 11306 195.159.176.226 (5 Oct 2017 02:22:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 02:22:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Lele Gaifax Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 04:22:40 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 1dzvo5-0002C0-Gu for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 04:22:38 +0200 Original-Received: from localhost ([::1]:37515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzvoC-0004Pe-MQ for ged-emacs-devel@m.gmane.org; Wed, 04 Oct 2017 22:22:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzvnY-0004PM-6E for emacs-devel@gnu.org; Wed, 04 Oct 2017 22:22:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzvnV-00087n-2G for emacs-devel@gnu.org; Wed, 04 Oct 2017 22:22:04 -0400 Original-Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:48067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzvnU-00087J-R5 for emacs-devel@gnu.org; Wed, 04 Oct 2017 22:22:00 -0400 Original-Received: by mail-wr0-x235.google.com with SMTP id y44so4525102wrd.4 for ; Wed, 04 Oct 2017 19:22:00 -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=+MAmN7QvOXsiyQHlo9vuHDlQZtIl7Tv5qKC2K2jtivk=; b=i7l7xkSsxnLDIT4IzYU/qazHlJIs5JIdhFgJ8ydffo2k5Iq6XAEZPKEjyHUrO2w/7O iUPDS5iCzA3yvbHvL6xjwT93sJpW50WINfdgvb39Tz/w5cag7ASBSqIzmseJnIiuLkAr W035oA9VV3cZicYcgOO5zhwIOcHD3M4W69gQ1raiGSEUCKt9ycHIiykuAgHLjWtc+ZrI RWdHUn1ejKKSos7EGXCrMt3cRtECL8JGhTutvUpXbWOU3+bTSBk7L88+CX+m2epctJJ3 v0G4VazHjEATbKNEyTwiq1zBjawuXVdVb5OSrLgfkRYb1Ma8pv6glJwqNkFZM1rLzCTe M9Gg== 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=+MAmN7QvOXsiyQHlo9vuHDlQZtIl7Tv5qKC2K2jtivk=; b=hYbAmTQGCptO61mlYTunBFd2vQ/JEFrxqy5iqTx9K9D2jj3g4+sJEUa3V7STzdoJO8 iPnxGI+64nZKUNGD2V6QFSsL+GzzDdHdXG40lv+0JPSYUHiC2xaNmbEVAuwUGKFn4+kC a2ukraxWO5L2RVo+c12vOuiEQRB7YjIn/WJl/0SNwd4fDRGsKcgkIbAcZzbm/gR0jMr0 KQqBryr1SSNZ3kkh8aDLz+yuO0f9ZPIcug3b2SB5c+paRS/5UHwOFfgNAMz1z3sUqz4R LHoH2cQaWIrZ3Vtbta+hi7k6XH8LvSWQJQMVCCcEaLLsng/uf3ZMJamz3eUKl2FOgJl8 RYIw== X-Gm-Message-State: AHPjjUjbkeMUj/rDmDPTQs9g6RcitFyWfzlnp4aJNLA16o+0IaD1FeyM Wz7YIV4OZdnGqbwNsAMynXhX1djA X-Google-Smtp-Source: AOwi7QDoJwxYdmKiNsnnmilz/KrBYbxkH3gqYRpy6p0oJ+x/S1xvGR/cGiztAJ/Sikosq9h7XVY2Iw== X-Received: by 10.223.167.79 with SMTP id e15mr23495432wrd.92.1507170119456; Wed, 04 Oct 2017 19:21:59 -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 x15sm12148867wma.32.2017.10.04.19.21.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Oct 2017 19:21:58 -0700 (PDT) In-Reply-To: <87efqiailp.fsf@metapensiero.it> (Lele Gaifax's message of "Wed, 04 Oct 2017 20:11:30 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::235 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:219097 Archived-At: Lele Gaifax writes: > Speaking of which, while reading the -proc source I found recipes for Per= l and > PHP, is there any interest in out-of-the-box Python equivalents? Very much so, but please not based on flymake-proc.el, rather the new API. If your Python interpreter/compiler provides a syntax check tool that can read from stdin, such a thing can be done in little code. For an example, see my reply to Simen Heggest=C3=B8yl in a parallel thread where I provide a simple but effective Ruby backend. > Here is an updated diff: there is a "[???]" marker for a sentence that se= ems > wrong but I could not understand exactly its meaning. Thanks, there are many more errors where you found the "[???]". I fixed them in this diff so you can add them to your list. diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index acc0637ec3..3fd99f8eb3 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -526,19 +526,18 @@ flymake--backend-state =20 `running', a symbol to keep track of a backend's replies via its REPORT-FN argument. A backend is running if this key is -present. If the key is absent if the backend isn't expecting any -replies from the backend. +present. If nil, Flymake isn't expecting any replies from the +backend. =20 -`diags', a (possibly empty) list of diagnostic objects created -with `flymake-make-diagnostic'. This key is absent if the -backend hasn't reported anything yet. +`diags', a (possibly empty) list recent diagnostic objects created +by the backend with `flymake-make-diagnostic'. =20 `reported-p', a boolean indicating if the backend has replied since it last was contacted. =20 `disabled', a string with the explanation for a previous -exceptional situation reported by the backend. If this key is -present the backend is disabled.") +exceptional situation reported by the backend, nil if the +backend is operating normally.") =20 (cl-defstruct (flymake--backend-state (:constructor flymake--make-backend-state))