aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorJoão Távora2018-06-05 15:13:02 +0100
committerJoão Távora2018-06-05 15:22:16 +0100
commitfa794d1b603e52e2a80d69c5610b782904ee6a69 (patch)
treee6dbf1d0ac1460488235e7785bf392caf472404c /lisp/progmodes/python.el
parentaadac04923c9ae47f0bccc706857b94166c9d355 (diff)
downloademacs-fa794d1b603e52e2a80d69c5610b782904ee6a69.tar.gz
emacs-fa794d1b603e52e2a80d69c5610b782904ee6a69.zip
Obsolete Flymake's flymake-diagnostic-types-alist
That varaiable was an association between symbols and properties, effecively duplicating symbol's property lists. It is simpler to just put properties on symbols. Backward compatibility to the old variable has been kept. * doc/misc/flymake.texi (Flymake error types): Don't mention flymake-diagnostic-types-alist. (Flymake error types): Rework section. (Backend functions): Refill a paragraph. (Flymake utility functions): Don't mention flymake-diagnostic-types-alist. (Proc customization variables): Don't mention flymake-diagnostic-types-alist. * etc/NEWS: Mention obsoletion of flymake-diagnostic-types-alist. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Don't use flymake-diagnostic-types-alist. * lisp/progmodes/flymake.el: Rewrite commentary. (flymake-make-diagnostic, flymake-mode, flymake-goto-next-error) (flymake-goto-prev-error): Don't mention flymake-diagnostic-types-alist in docstring. (flymake-diagnostic-types-alist): Make obsolete. (:error, :warning, :note): Put flymake-category in these symbols. (flymake-error, flymake-warning, flymake-note): Put `flymake-bitmap', not `bitmap' in these symbols. (flymake--lookup-type-property, flymake--highlight-line): Rewrite. Honor flymake-diagnostic-types-alist for backward compatibility. * lisp/progmodes/python.el (python-flymake-msg-alist): Don't mention flymake-diagnostic-types-alist.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index a09ca2f2f29..6f4a343310c 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -5209,9 +5209,10 @@ be used."
5209(defcustom python-flymake-msg-alist 5209(defcustom python-flymake-msg-alist
5210 '(("\\(^redefinition\\|.*unused.*\\|used$\\)" . :warning)) 5210 '(("\\(^redefinition\\|.*unused.*\\|used$\\)" . :warning))
5211 "Alist used to associate messages to their types. 5211 "Alist used to associate messages to their types.
5212Each element should be a cons-cell (REGEXP . TYPE), where TYPE must be 5212Each element should be a cons-cell (REGEXP . TYPE), where TYPE
5213one defined in the variable `flymake-diagnostic-types-alist'. 5213should be a diagnostic type symbol like `:error', `:warning' or
5214For example, when using `flake8' a possible configuration could be: 5214`:note'. For example, when using `flake8' a possible
5215configuration could be:
5215 5216
5216 ((\"\\(^redefinition\\|.*unused.*\\|used$\\)\" . :warning) 5217 ((\"\\(^redefinition\\|.*unused.*\\|used$\\)\" . :warning)
5217 (\"^E999\" . :error) 5218 (\"^E999\" . :error)