Avoid face clashes between Flymake and region highlighting
Fix bug#34022. * lisp/progmodes/flymake.el (flymake--highlight-line): Use (PRIMARY . SECONDARY) priority value.
This commit is contained in:
@@ -652,7 +652,9 @@ associated `flymake-category' return DEFAULT."
|
||||
(flymake-diagnostics pos)
|
||||
"\n"))))
|
||||
(default-maybe 'severity (warning-numeric-level :error))
|
||||
(default-maybe 'priority (+ 100 (overlay-get ov 'severity))))
|
||||
;; Use (PRIMARY . SECONDARY) priority, to avoid clashing with
|
||||
;; `region' face, for example (bug#34022).
|
||||
(default-maybe 'priority (cons nil (+ 40 (overlay-get ov 'severity)))))
|
||||
;; Some properties can't be overridden.
|
||||
;;
|
||||
(overlay-put ov 'evaporate t)
|
||||
|
||||
Reference in New Issue
Block a user