diff options
| author | Juri Linkov | 2018-04-28 23:20:33 +0300 |
|---|---|---|
| committer | Juri Linkov | 2018-04-28 23:20:33 +0300 |
| commit | f4eeb0f5ae448db0f064f6305ab0bc0c3bae071a (patch) | |
| tree | 375951dfe30538df200f6650b9bf178aadd3c803 /test | |
| parent | 0b3bc05d15c32ffa134347896c9b9fcff89225ab (diff) | |
| download | emacs-f4eeb0f5ae448db0f064f6305ab0bc0c3bae071a.tar.gz emacs-f4eeb0f5ae448db0f064f6305ab0bc0c3bae071a.zip | |
* lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206)
* doc/lispref/control.texi (Iteration):
* doc/misc/cl.texi (Iteration): Document deprecation of its use.
* doc/lispintro/emacs-lisp-intro.texi (dotimes):
* test/src/emacs-module-tests.el (multiply-string):
* test/lisp/filenotify-tests.el (file-notify-test07-many-events):
Place RESULT field after the form.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/filenotify-tests.el | 10 | ||||
| -rw-r--r-- | test/src/emacs-module-tests.el | 5 |
2 files changed, 9 insertions, 6 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 219fa746119..56403f43092 100644 --- a/test/lisp/filenotify-tests.el +++ b/test/lisp/filenotify-tests.el | |||
| @@ -1129,14 +1129,16 @@ delivered." | |||
| 1129 | ;; w32notify fires both `deleted' and `renamed' events. | 1129 | ;; w32notify fires both `deleted' and `renamed' events. |
| 1130 | ((string-equal (file-notify--test-library) "w32notify") | 1130 | ((string-equal (file-notify--test-library) "w32notify") |
| 1131 | (let (r) | 1131 | (let (r) |
| 1132 | (dotimes (_i n r) | 1132 | (dotimes (_i n) |
| 1133 | (setq r (append '(deleted renamed) r))))) | 1133 | (setq r (append '(deleted renamed) r))) |
| 1134 | r)) | ||
| 1134 | ;; cygwin fires `changed' and `deleted' events, sometimes | 1135 | ;; cygwin fires `changed' and `deleted' events, sometimes |
| 1135 | ;; in random order. | 1136 | ;; in random order. |
| 1136 | ((eq system-type 'cygwin) | 1137 | ((eq system-type 'cygwin) |
| 1137 | (let (r) | 1138 | (let (r) |
| 1138 | (dotimes (_i n (cons :random r)) | 1139 | (dotimes (_i n) |
| 1139 | (setq r (append '(changed deleted) r))))) | 1140 | (setq r (append '(changed deleted) r))) |
| 1141 | (cons :random r))) | ||
| 1140 | (t (make-list n 'renamed))) | 1142 | (t (make-list n 'renamed))) |
| 1141 | (let ((source-file-list source-file-list) | 1143 | (let ((source-file-list source-file-list) |
| 1142 | (target-file-list target-file-list)) | 1144 | (target-file-list target-file-list)) |
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index 8b6328d35af..9ef5a47b159 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el | |||
| @@ -138,8 +138,9 @@ changes." | |||
| 138 | 138 | ||
| 139 | (defun multiply-string (s n) | 139 | (defun multiply-string (s n) |
| 140 | (let ((res "")) | 140 | (let ((res "")) |
| 141 | (dotimes (i n res) | 141 | (dotimes (i n) |
| 142 | (setq res (concat res s))))) | 142 | (setq res (concat res s))) |
| 143 | res)) | ||
| 143 | 144 | ||
| 144 | (ert-deftest mod-test-globref-make-test () | 145 | (ert-deftest mod-test-globref-make-test () |
| 145 | (let ((mod-str (mod-test-globref-make)) | 146 | (let ((mod-str (mod-test-globref-make)) |