[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 995a623: Fix dolist-with-progress-reporter behaviour
From: |
Philip Kaludercic |
Subject: |
master 995a623: Fix dolist-with-progress-reporter behaviour |
Date: |
Sun, 19 Sep 2021 19:56:39 -0400 (EDT) |
branch: master
commit 995a623594de27d398f0d97fcab9277e37fe29d1
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix dolist-with-progress-reporter behaviour
* subr.el (dolist-with-progress-reporter): Use the length of list
argument as maximal value the reporter with reach
---
lisp/subr.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/subr.el b/lisp/subr.el
index 5fac316..6bd9a01 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 995a623: Fix dolist-with-progress-reporter behaviour,
Philip Kaludercic <=