[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/flymake-refactor 1d58e32 2/6: Fix flymake-wrap-aro
From: |
João Távora |
Subject: |
[Emacs-diffs] scratch/flymake-refactor 1d58e32 2/6: Fix flymake-wrap-around for buffers with no errors |
Date: |
Thu, 28 Sep 2017 10:28:23 -0400 (EDT) |
branch: scratch/flymake-refactor
commit 1d58e3263c3fd54d08ad0683660f9406515a9182
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Fix flymake-wrap-around for buffers with no errors
* lisp/progmodes/flymake-ui.el (flymake-goto-next-error): Fix
flymake-wrap around for buffers with no errors.
---
lisp/progmodes/flymake-ui.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lisp/progmodes/flymake-ui.el b/lisp/progmodes/flymake-ui.el
index 96711f8..b7d5dcc 100644
--- a/lisp/progmodes/flymake-ui.el
+++ b/lisp/progmodes/flymake-ui.el
@@ -711,11 +711,8 @@ diagnostics of type `:error' and `:warning'."
ovs))
(chain (if flymake-wrap-around
(if tail
- (progn
- (setcdr (last tail) ovs)
- tail)
- (setcdr (last ovs) ovs)
- ovs)
+ (progn (setcdr (last tail) ovs) tail)
+ (and ovs (setcdr (last ovs) ovs)))
tail))
(target (nth (1- n) chain)))
(cond (target
- [Emacs-diffs] scratch/flymake-refactor updated (3b6c736 -> 1116aa7), João Távora, 2017/09/28
- [Emacs-diffs] scratch/flymake-refactor 1d58e32 2/6: Fix flymake-wrap-around for buffers with no errors,
João Távora <=
- [Emacs-diffs] scratch/flymake-refactor 9d93d46 5/6: New flymake fringe bitmaps, João Távora, 2017/09/28
- [Emacs-diffs] scratch/flymake-refactor 1116aa7 6/6: * lisp/progmodes/flymake-ui.el (flymake-mode-map): Bind "M-n" and "M-p", João Távora, 2017/09/28
- [Emacs-diffs] scratch/flymake-refactor 38c7d4f 4/6: Remove old flymake-display-err-menu-for-current-line, it's useless, João Távora, 2017/09/28
- [Emacs-diffs] scratch/flymake-refactor 7d3d3d3 1/6: Fix flymake problems when checking C header files, João Távora, 2017/09/28
- [Emacs-diffs] scratch/flymake-refactor 9329265 3/6: Treat flymake errors as just another type of diagnostic, João Távora, 2017/09/28