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 21:24:59 +0200 Organization: Nautilus Entertainments Message-ID: <8760bskrjo.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> <87r2ugl4e9.fsf@metapensiero.it> <87d16047zs.fsf@udel.edu> <87infsl2i1.fsf@metapensiero.it> <874lrcz1e6.fsf@gmail.com> 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 1507317958 14061 195.159.176.226 (6 Oct 2017 19:25:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 19:25:58 +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 21:25:54 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 1e0YFt-0002yC-IS for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 21:25:53 +0200 Original-Received: from localhost ([::1]:46864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0YG1-0001O1-2K for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 15:26:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0YFG-0001Ld-Qc for emacs-devel@gnu.org; Fri, 06 Oct 2017 15:25:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0YFB-0007yM-Jr for emacs-devel@gnu.org; Fri, 06 Oct 2017 15:25:14 -0400 Original-Received: from [195.159.176.226] (port=54078 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0YFB-0007vn-D3 for emacs-devel@gnu.org; Fri, 06 Oct 2017 15:25:09 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e0YF1-0005ai-QC for emacs-devel@gnu.org; Fri, 06 Oct 2017 21:24:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:gdkEmK8mVhIp2r9p8bIDom9qaWA= 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:219208 Archived-At: joaotavora@gmail.com (João Távora) writes: > 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. Yes indeed. So, what should be ":value-type" set to? A generic `:symbol'? ciao, 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.