Skip to content

Commit 2dfb423

Browse files
authored
Fix Broken eq comparison in merlin.el (#1549)
from mattiase/eq-warning
2 parents 0e43752 + 6ea61a8 commit 2dfb423

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

emacs/merlin.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,9 @@ errors in the fringe. If VIEW-ERRORS-P is non-nil, display a count of them."
903903
(setq errors (cl-remove-if-not (lambda (e) (assoc 'start e)) errors))
904904
(unless merlin-report-warnings
905905
(setq errors (cl-remove-if (lambda (e)
906-
(or
907-
(eq (cdr-safe (assoc 'message e)) "warning")
908-
(merlin--error-warning-p (cdr (assoc 'message e)))))
906+
(let ((msg (cdr (assoc 'message e))))
907+
(or (equal msg "warning")
908+
(merlin--error-warning-p msg))))
909909
errors)))
910910
(setq merlin-erroneous-buffer (or errors no-loc))
911911
(dolist (e no-loc)

0 commit comments

Comments
 (0)