Commit 455e753a authored by João Távora's avatar João Távora

Avoid face clashes between Flymake and region highlighting

Fix bug#34022.

* lisp/progmodes/flymake.el (flymake--highlight-line): Use
(PRIMARY . SECONDARY) priority value.
parent b32c4d7b
Pipeline #3911 failed with stage
in 78 minutes and 24 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment