[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flymake refactored
From: |
João Távora |
Subject: |
Re: Flymake refactored |
Date: |
Fri, 06 Oct 2017 17:28:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) |
Lele Gaifax <address@hidden> 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ão
- Re: Flymake refactored, (continued)
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored, Eli Zaretskii, 2017/10/06
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored, Eli Zaretskii, 2017/10/06
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored, Mark Oteiza, 2017/10/06
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored, Mark Oteiza, 2017/10/06
- Re: Flymake refactored, Mark Oteiza, 2017/10/06
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored,
João Távora <=
- Re: Flymake refactored, Lele Gaifax, 2017/10/06
- Re: Flymake refactored, João Távora, 2017/10/06
- Re: Flymake refactored, Stefan Monnier, 2017/10/07
- Re: Flymake refactored, Eli Zaretskii, 2017/10/07
- Re: Flymake refactored, Lele Gaifax, 2017/10/07
- Re: Flymake refactored, Eli Zaretskii, 2017/10/07
- Re: Flymake refactored, Stefan Monnier, 2017/10/07
- Re: Flymake refactored, João Távora, 2017/10/08
- Re: Flymake refactored, Lele Gaifax, 2017/10/08
- Re: Flymake refactored, Stefan Monnier, 2017/10/08