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: Flymake refactored Date: Fri, 06 Oct 2017 17:28:33 +0100 Message-ID: <874lrcz1e6.fsf@gmail.com> References: <87h8vmj3tr.fsf@lolita> <1507138648.1972.0@smtp.gmail.com> <874lre2von.fsf@gmail.com> <87mv566yjx.fsf@udel.edu> <87shex276r.fsf@gmail.com> <87efqh2sud.fsf@udel.edu> <877ew919hd.fsf@gmail.com> <87k208n45h.fsf@metapensiero.it> <87o9pkh1gh.fsf@udel.edu> <87r2ugl4e9.fsf@metapensiero.it> <87d16047zs.fsf@udel.edu> <87infsl2i1.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 1507308663 12585 195.159.176.226 (6 Oct 2017 16:51:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 16:51:03 +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 Fri Oct 06 18:50: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 1e0Vpy-0002kF-Nb for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 18:50:58 +0200 Original-Received: from localhost ([::1]:45953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Vq5-0006ma-WE for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 12:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0VUP-0005EC-Ts for emacs-devel@gnu.org; Fri, 06 Oct 2017 12:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0VUM-0003rS-O1 for emacs-devel@gnu.org; Fri, 06 Oct 2017 12:28:41 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:54173) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0VUM-0003qq-FM for emacs-devel@gnu.org; Fri, 06 Oct 2017 12:28:38 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id y44so5692501wry.10 for ; Fri, 06 Oct 2017 09:28:38 -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=ImmRugCWnrri4CcYVZBBj+b8aCbOOXetsbLWZ3PDifk=; b=EBwL/bk4n+z7IE1hRPprcUdKk1zcTrcJccFsND+1ZXX3b6EYNwI3dLJRDoJbSnnRcm c7mNOG1Pt9wj6JBgogTV452GCeegLQlM2k1N+U2ReH5cPdNvyoo5nQOct4COv1pXKuwZ vUjG2YpgVcmIFK23sPYtGS/j0a//0rm+XEVPkxVOndTc05pI7iq0Qullv4FkdkZkx92f zkMF0b8VSFdJkaPhHAdSmg2hg3dq2dVgIsDYVEq4QlU7ZHwEyEPYXBD92iAKMguQuxh2 1OympS0299pRjEw2b3fXrg8NPvrqxzm7Kiq87VnESlhJ8EGyIubzyrZjvBrMQTIuXSzZ +POg== 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=ImmRugCWnrri4CcYVZBBj+b8aCbOOXetsbLWZ3PDifk=; b=oDatUjqp3EqzdIHyuKxdDnlivNVWj2SMh88CjGtoXxKLlb/5xeMgFUqWEcRb3yT4E0 LEtfeySQBvpHtV+tQP/nta7JzDrqqVn118P4fhDhBXR2VJJ4taqb5qK5u/SMBWqex6KQ jQ8X2ZtcIFqVWXIIF+YSBUXqSf5ejypyGRd/N3qaOLf45TGUZVcbWyYjineBl8LhwyJx IZA6uCw8OVQCItHuYhvjX/LlEiM8WOLPxP4Kbwu/KrHhcU9tvuHBv6BcZM3DYXaKq0Ot J30uU0xm1qfFI7d2zHXXFBTDqfUx5tQJWb0C9+QqFMD+8pLsfR4YG8sdTes5McvGIWEO GK2g== X-Gm-Message-State: AMCzsaVk1oLeSIbdippKg/5zCzcJ29iWzragt6sqQPfjialT0ZNdVRGu 3ZNz9tkXuFAo8tkL7T6zAdSCz2yT X-Google-Smtp-Source: AOwi7QCCps8QcIZ2hrtp2FjLyPnhhf2Rr4wWx6H/5E2qEfZ5hqA8BrDI+/RoxrgTaxLtbDdX36rEBw== X-Received: by 10.223.184.140 with SMTP id i12mr2463311wrf.31.1507307317100; Fri, 06 Oct 2017 09:28:37 -0700 (PDT) Original-Received: from lolita.yourcompany.com ([194.117.2.109]) by smtp.gmail.com with ESMTPSA id q81sm2729477wrb.88.2017.10.06.09.28.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Oct 2017 09:28:35 -0700 (PDT) In-Reply-To: <87infsl2i1.fsf@metapensiero.it> (Lele Gaifax's message of "Fri, 06 Oct 2017 17:28:22 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:219196 Archived-At: Lele Gaifax writes: > > (defcustom python-flymake-msg-alist > '(("\\(^redefinition\\|.*unused.*\\|used$\\)" . :warning)) > "Alist used to associate messages to their types. > Each element should be a cons-cell (REGEXP . TYPE), where TYPE must be > one defined in the variable `flymake-diagnostic-types-alist'." > :group 'python-flymake > :type '(alist :key-type (regexp) > :value-type (choice (const :tag "Error" :error) > (const :tag "Warning" :warning) > (const :tag "Note" :note)))) It's more "should be one defined in the variable". If it's not, it's treated like an error. Also, it doesn't have to one of the three default types: python-mode can very well add some new diagnostic type, :python-silly-note or :super-fatal-error, that extend the built-in ones. Just a minor comment, in case you weren't seeing this possibility, and because the :value-type (choice...) apparently excludes it. Jo=C3=A3o