[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 b28de57: Sort entries of the Flymake diagnostics
From: |
João Távora |
Subject: |
[Emacs-diffs] emacs-26 b28de57: Sort entries of the Flymake diagnostics buffer (bug#29175) |
Date: |
Thu, 9 Nov 2017 15:36:51 -0500 (EST) |
branch: emacs-26
commit b28de574112991bfd2234989d080e54f565a549c
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Sort entries of the Flymake diagnostics buffer (bug#29175)
Reported by Lele Gaifax <address@hidden>.
* lisp/progmodes/flymake.el
(flymake--diagnostics-buffer-entries): Sort results of flymake-diagnostics.
---
lisp/progmodes/flymake.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index e833cd9..921ac91 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1137,7 +1137,8 @@ POS can be a buffer position or a button"
(defun flymake--diagnostics-buffer-entries ()
(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) =
(save-excursion
(goto-char (flymake--diag-beg diag))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 b28de57: Sort entries of the Flymake diagnostics buffer (bug#29175),
João Távora <=