Sort entries of the Flymake diagnostics buffer (bug#29175)
Reported by Lele Gaifax <lele@metapensiero.it>. * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Sort results of flymake-diagnostics.
This commit is contained in:
parent
fc56bea142
commit
b28de57411
1 changed files with 2 additions and 1 deletions
|
@ -1137,7 +1137,8 @@ POS can be a buffer position or a button"
|
||||||
|
|
||||||
(defun flymake--diagnostics-buffer-entries ()
|
(defun flymake--diagnostics-buffer-entries ()
|
||||||
(with-current-buffer flymake--diagnostics-buffer-source
|
(with-current-buffer flymake--diagnostics-buffer-source
|
||||||
(cl-loop for diag in (flymake-diagnostics)
|
(cl-loop for diag in
|
||||||
|
(cl-sort (flymake-diagnostics) #'< :key #'flymake-diagnostic-beg)
|
||||||
for (line . col) =
|
for (line . col) =
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (flymake--diag-beg diag))
|
(goto-char (flymake--diag-beg diag))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue