From c11ddd5e58d75ba3854cc1070f82eb3a6f9d8cfa Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Mon, 24 Aug 2015 12:12:15 +0900 Subject: [PATCH] preventing the unused variable warning. The warning report system of the byte-compiler is not perfect. It generates the warning if the third argument of dotimes is used. Also, it does so if the first argument is not explicitly used in its body. As workaround, this patch removes the third argument and put "_" to the first argument. --- haskell-indentation.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/haskell-indentation.el b/haskell-indentation.el index debc4cc8c..136c6f64e 100644 --- a/haskell-indentation.el +++ b/haskell-indentation.el @@ -421,9 +421,10 @@ indentation points to the right, we switch going to the left." "Makes sure that haskell-indentation-dyn-overlays contains at least N overlays." (let* ((clen (length haskell-indentation-dyn-overlays)) (needed (- n clen))) - (dotimes (n needed haskell-indentation-dyn-overlays) + (dotimes (_n needed) (setq haskell-indentation-dyn-overlays - (cons (make-overlay 1 1) haskell-indentation-dyn-overlays))))) + (cons (make-overlay 1 1) haskell-indentation-dyn-overlays))) + haskell-indentation-dyn-overlays)) (defun haskell-indentation-unshow-overlays () "Unshows all the overlays."