[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33187: 27.0.50; flymake-mode's lighter shows incorrect diagnostic co
From: |
Michał Krzywkowski |
Subject: |
bug#33187: 27.0.50; flymake-mode's lighter shows incorrect diagnostic count |
Date: |
Sat, 27 Oct 2018 14:25:22 +0200 |
User-agent: |
Zoho Mail |
After evaluating the sexp below, flymake's lighter shows [0 0]
diagnostics, despite the fact that a warning is present in the buffer.
If you uncomment the comment, flymake correctly shows that there are [1 1]
diagnostics.
(with-current-buffer (get-buffer-create "*scratch*")
(erase-buffer)
(insert "aaaaa")
(put 'my-warning 'flymake-category 'flymake-warning)
(put 'my-error 'flymake-category 'flymake-error)
(defun check-buffer (fn &rest)
(with-current-buffer "*scratch*"
(funcall
fn (list
(flymake-make-diagnostic (current-buffer) 1 2 'my-warning
"Warning.")
;; (flymake-make-diagnostic (current-buffer) 2 3 'my-error
"Error.")
))))
(setq flymake-diagnostic-functions '(check-buffer))
(flymake-mode +1)
(pop-to-buffer (current-buffer)))
The attached patch fixes this issue.
Repository revision: 3e81e9a0e7742197354515f3d3ea55fdb201eb29
0001-Fix-Flymake-s-lighter-displaying-incorrect-diagnosti.patch
Description: Binary data
- bug#33187: 27.0.50; flymake-mode's lighter shows incorrect diagnostic count,
Michał Krzywkowski <=