emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 9d02e6c: Further doc fixes for dotimes about RESULT


From: Noam Postavsky
Subject: emacs-27 9d02e6c: Further doc fixes for dotimes about RESULT
Date: Wed, 18 Nov 2020 16:00:07 -0500 (EST)

branch: emacs-27
commit 9d02e6c5ff2a8af78ca8a2c934970f8a46dcef55
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Noam Postavsky <npostavs@gmail.com>

    Further doc fixes for dotimes about RESULT
    
    * lisp/subr.el (dotimes): Be even more explicit about RESULT
    (bug#16206).
    
    (cherry picked from commit 5b0d8d0f288fd505ca90bd30df709a5e7ab540d6)
---
 lisp/subr.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index fcbd06a..d5cf7fb 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -280,8 +280,11 @@ Then evaluate RESULT to get return value, default nil.
 (defmacro dotimes (spec &rest body)
   "Loop a certain number of times.
 Evaluate BODY with VAR bound to successive integers running from 0,
-inclusive, to COUNT, exclusive.  Then evaluate RESULT to get
-the return value (nil if RESULT is omitted).  Its use is deprecated.
+inclusive, to COUNT, exclusive.
+
+Finally RESULT is evaluated to get the return value (nil if
+RESULT is omitted).  Using RESULT is deprecated, and may result
+in compilation warnings about unused variables.
 
 \(fn (VAR COUNT [RESULT]) BODY...)"
   (declare (indent 1) (debug dolist))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]