diff options
| author | Lars Ingebrigtsen | 2020-09-30 20:29:16 +0200 |
|---|---|---|
| committer | Noam Postavsky | 2020-11-18 15:45:48 -0500 |
| commit | 9d02e6c5ff2a8af78ca8a2c934970f8a46dcef55 (patch) | |
| tree | d65106ba2c44290cf8f458d1c85c61a5c558b777 | |
| parent | e66502fec11a47b50be6682262cb33fad53fa229 (diff) | |
| download | emacs-9d02e6c5ff2a8af78ca8a2c934970f8a46dcef55.tar.gz emacs-9d02e6c5ff2a8af78ca8a2c934970f8a46dcef55.zip | |
Further doc fixes for dotimes about RESULT
* lisp/subr.el (dotimes): Be even more explicit about RESULT
(bug#16206).
(cherry picked from commit 5b0d8d0f288fd505ca90bd30df709a5e7ab540d6)
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index fcbd06a449f..d5cf7fb0031 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -280,8 +280,11 @@ Then evaluate RESULT to get return value, default nil. | |||
| 280 | (defmacro dotimes (spec &rest body) | 280 | (defmacro dotimes (spec &rest body) |
| 281 | "Loop a certain number of times. | 281 | "Loop a certain number of times. |
| 282 | Evaluate BODY with VAR bound to successive integers running from 0, | 282 | Evaluate BODY with VAR bound to successive integers running from 0, |
| 283 | inclusive, to COUNT, exclusive. Then evaluate RESULT to get | 283 | inclusive, to COUNT, exclusive. |
| 284 | the return value (nil if RESULT is omitted). Its use is deprecated. | 284 | |
| 285 | Finally RESULT is evaluated to get the return value (nil if | ||
| 286 | RESULT is omitted). Using RESULT is deprecated, and may result | ||
| 287 | in compilation warnings about unused variables. | ||
| 285 | 288 | ||
| 286 | \(fn (VAR COUNT [RESULT]) BODY...)" | 289 | \(fn (VAR COUNT [RESULT]) BODY...)" |
| 287 | (declare (indent 1) (debug dolist)) | 290 | (declare (indent 1) (debug dolist)) |