[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flymake refactored

From: Lele Gaifax
Subject: Re: Flymake refactored
Date: Fri, 06 Oct 2017 17:28:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux)

Mark Oteiza <address@hidden> writes:

> Oops, forgot about the type.  It can probably be
>   :value-type (choice (const :error) (const :warning) ...)

Ok, something like the following then:

  (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))))

ciao, lele.
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
address@hidden  |                 -- Fortunato Depero, 1929.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]