Fix bug#34022.
* lisp/progmodes/flymake.el (flymake--highlight-line): Use
(PRIMARY . SECONDARY) priority value.
(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)