A backend building a diagnostic with a nil :type would cause Flymake
to create a diagnostic without an overlay, confusing Flymake's
accounting of overlays and diagnostics
* lisp/progmodes/flymake.el (flymake--highlight-line): Return
non-nil unconditionally.
(defun flymake--highlight-line (diagnostic)
"Highlight buffer with info in DIGNOSTIC."
- (when-let* ((type (flymake--diag-type diagnostic))
- (ov (make-overlay
- (flymake--diag-beg diagnostic)
- (flymake--diag-end diagnostic))))
+ (let ((type (or (flymake--diag-type diagnostic)
+ :error))
+ (ov (make-overlay
+ (flymake--diag-beg diagnostic)
+ (flymake--diag-end diagnostic))))
;; First set `category' in the overlay
;;
(overlay-put ov 'category