From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.devel Subject: Re: Flymake refactored Date: Fri, 06 Oct 2017 16:47:26 +0200 Organization: Nautilus Entertainments Message-ID: <87r2ugl4e9.fsf@metapensiero.it> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1507301344 21264 195.159.176.226 (6 Oct 2017 14:49:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 14:49:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 06 16:48: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 1e0Tvo-0004IB-OG for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 16:48:52 +0200 Original-Received: from localhost ([::1]:45341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Tvw-0002pP-7n for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 10:49:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Tuk-00028h-9Z for emacs-devel@gnu.org; Fri, 06 Oct 2017 10:47:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0Tue-0000X2-Kb for emacs-devel@gnu.org; Fri, 06 Oct 2017 10:47:46 -0400 Original-Received: from [195.159.176.226] (port=60716 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0Tue-0000Vo-Df for emacs-devel@gnu.org; Fri, 06 Oct 2017 10:47:40 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e0TuU-0004YM-Pl for emacs-devel@gnu.org; Fri, 06 Oct 2017 16:47:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:pbOXkdR+WZm1vUU63CwYZKtn/Tw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:219186 Archived-At: Mark Oteiza writes: > A small patch on top of it: this facilitates configuring the checker to > instead be flake8, which is a wrapper around a few checkers, including > pyflakes Yep, I like it to be flexible enough to do that, for example to be able to map "style issues" reported by the pycodestyle to ":note" entries... so your msg-alist seems better. Can you help me on a better definition for the following? In particular, is it possible to dynamically set the :value-type to allow only one of the keys in the `flymake-diagnostic-types-alist'? (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 string)) Thanks&bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.