From 9cad7e90a4cdb22b35b01f682fcb8bba641b0a93 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Fri, 15 Dec 2023 22:29:47 +0100 Subject: Silence byte-compiler `dotimes' has a defect (and a fixme which is over a decade old) that causes a bogus (though technically correct) warning about VAR being unused, if RESULT is not omitted but does not use VAR. --- elisp/geiser-base.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el index 134a3f4..6d6277f 100644 --- a/elisp/geiser-base.el +++ b/elisp/geiser-base.el @@ -20,7 +20,7 @@ '(when (not (fboundp 'ring-member)) (defun ring-member (ring item) (catch 'found - (dotimes (ind (ring-length ring) nil) + (dotimes (ind (ring-length ring)) (when (equal item (ring-ref ring ind)) (throw 'found ind))))))) -- cgit v1.2.3