mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 06:01:22 -08:00
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:
parent
b32c4d7bac
commit
455e753a2b
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue