emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/flymake-refactor 1d58e32 39/52: Fix flymake-wrap-a


From: João Távora
Subject: [Emacs-diffs] scratch/flymake-refactor 1d58e32 39/52: Fix flymake-wrap-around for buffers with no errors
Date: Sun, 1 Oct 2017 12:40:50 -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]