]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dolist-with-progress-reporter behaviour
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 12 Jul 2021 15:26:43 +0000 (17:26 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 19 Sep 2021 23:56:07 +0000 (01:56 +0200)
* subr.el (dolist-with-progress-reporter): Use the length of list
  argument as maximal value the reporter with reach

lisp/subr.el

index 5fac316e379b3b03c094d5763caf1c60b891e8ed..6bd9a018eb03f4617f933601a685986d51322a78 100644 (file)
@@ -5995,7 +5995,7 @@ print the reporter message followed by the word \"done\".
            (,count 0)
            (,list ,(cadr spec)))
        (when (stringp ,prep)
-         (setq ,prep (make-progress-reporter ,prep 0 (1- (length ,list)))))
+         (setq ,prep (make-progress-reporter ,prep 0 (length ,list))))
        (dolist (,(car spec) ,list)
          ,@body
          (progress-reporter-update ,prep (setq ,count (1+ ,count))))