Skip to content

Commit

Permalink
Merge pull request #831 from kazu-yamamoto/unused
Browse files Browse the repository at this point in the history
Prevent unused variable warning in haskell-indentation
  • Loading branch information
gracjan committed Aug 24, 2015
2 parents ea977e9 + c11ddd5 commit 083c113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haskell-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 083c113

Please sign in to comment.