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: Two issues with the new Flymake Date: Fri, 03 Nov 2017 16:59:56 +0000 Message-ID: <87mv43ti0j.fsf@gmail.com> References: <87k1z7adxi.fsf@metapensiero.it> <87fu9va22c.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 1509728414 8070 195.159.176.226 (3 Nov 2017 17:00:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 17:00:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: emacs-devel@gnu.org To: Lele Gaifax Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 03 18:00:04 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 1eAfK8-0001P3-Dp for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 18:00:04 +0100 Original-Received: from localhost ([::1]:37684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAfKF-0007Ai-Uk for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 13:00:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAfK9-0007AG-53 for emacs-devel@gnu.org; Fri, 03 Nov 2017 13:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAfK5-0004rU-9k for emacs-devel@gnu.org; Fri, 03 Nov 2017 13:00:05 -0400 Original-Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:54326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAfK5-0004qY-4c for emacs-devel@gnu.org; Fri, 03 Nov 2017 13:00:01 -0400 Original-Received: by mail-wr0-x22b.google.com with SMTP id o44so3052433wrf.11 for ; Fri, 03 Nov 2017 10:00: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=fPx9cWDOuIYlGpp/M/ht4N5XiD8Jvlnb/u4LDsog7Ns=; b=Kc5G5HoujYE/mXV0oCNGX+0pZOB0ML1LEnKvMLTz54H7zfLFNob+G3kSKORAIlZ4IQ RY4c8D5Uu+9hjZI3aBjrHGMVF86BOvkuaJqQUK72mTDchlp1T92kPPvSpS2Elm1Qf6pX GM6/KZwheEAbKaK4hU+svJAPJLUUgAyrg5644+3DQXQsf/6KqvADiIKlwV3qANG8Lbe0 GTf5UIuH+PD2tc8kFPhn7271X5V+r2furtX01fBeud1TB27xPukaQDHZEr2sVy0T5aws PQBf5nu9IeLHJ4g44nl+L17gstC1CJGvSUCR6TQI49YMlSVesdLwm35tHBNfTJ2hNvDB qbxA== 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=fPx9cWDOuIYlGpp/M/ht4N5XiD8Jvlnb/u4LDsog7Ns=; b=Ciynmz7SVQl9+eUeq7mB61FK1B4QGoWNOul/uC2p8+Mg6xxGKwUZ6i2y1v9GZljpjn J4EfBoNAmmAidRujOF0Nlt21hXepSiWnASiaQhcjl77ahxdVRbletV269nDxT2p4gW3V DLSb5RDSzvsadxficET43Ci03zBeEt3qcPQ9ZQciISLX7lH510eQOcgGCU0tYOV8YabA /VL59V/uVAk8tXSNsdf4YvcPpcPYGvgX1xJXtK+rvDjcAHSoEMIdt+Wycvtk1QSsB+ub oSYtgD81qL7ZbL1gKipIBmnApi5LKN9vadUlBZYoVsOshkf0Tr9pTJb18796TOqOtbGe wZLg== X-Gm-Message-State: AMCzsaVrzJpf8OLmMYLDyD6JMMjT8E0g58uPgNSJx77/LV0GanFzc5su 4p9NxAsu34Ut0XALel8iUrC5dYOG1ck= X-Google-Smtp-Source: ABhQp+QxDwWYvXuXkAPcA9qw3UDoZDtwNqblgw6hC2qhsFEIDOOo5qWJlAJuD2qKjWxmdkS99XNTIQ== X-Received: by 10.223.180.66 with SMTP id v2mr6481234wrd.188.1509728399443; Fri, 03 Nov 2017 09:59:59 -0700 (PDT) Original-Received: from lolita.yourcompany.com ([89.180.156.210]) by smtp.gmail.com with ESMTPSA id o2sm1374381wmo.5.2017.11.03.09.59.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Nov 2017 09:59:58 -0700 (PDT) In-Reply-To: <87fu9va22c.fsf@metapensiero.it> (Lele Gaifax's message of "Fri, 03 Nov 2017 15:07:07 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22b 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:219890 Archived-At: Lele Gaifax writes: > In a python-mode buffer I appended "def pippo(@):" at the end of the buff= er, > and quickly deleted the last three characters (that is, "@):"): the "@" > triggered an error in the checker tool (I'm using flake8 at the moment, b= ut I > think that's irrelevant), and as soon as Flymake got that it emitted > > error in process sentinel: flymake-error: [Flymake] Invalid region line= =3D417 col=3D13 > error in process sentinel: [Flymake] Invalid region line=3D417 col=3D13 > > obviously because line 417 shrinked to 10 characters. > Thanks for explaining. I think flymake-diag-region is too alarmist in this case, which is reasonably normal, so I demoted the handling of this error to a warning to the *Flymake log* buffer. diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index c2349d8c7c..e13d79770e 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -342,7 +342,7 @@ flymake-diag-region (let* ((beg (fallback-bol)) (end (fallback-eol beg))) (cons beg end))))))) - (error (flymake-error "Invalid region line=3D%s col=3D%s" line col)))) + (error (flymake-log :warning "Invalid region line=3D%s col=3D%s" line = col)))) =20 (defvar flymake-diagnostic-functions nil "Special hook of Flymake backends that check a buffer. Regarding your pending contribution for this python backend I will post separately very soon. Jo=C3=A3o