summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-opt.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-08-17 20:29:27 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2022-08-19 21:23:48 +0200
commit9a7b3673e09fe839163bf35e25e37e2ac62bc272 (patch)
tree4693abec1d7a57ff7b8cd751a0ac0f89616bd912 /lisp/emacs-lisp/byte-opt.el
parenta936335aa02bd6d142ce61563e6cf70a1a7c271b (diff)
downloademacs-9a7b3673e09fe839163bf35e25e37e2ac62bc272.tar.gz
emacs-9a7b3673e09fe839163bf35e25e37e2ac62bc272.tar.bz2
emacs-9a7b3673e09fe839163bf35e25e37e2ac62bc272.zip
Move `while` syntax check from optimiser to macroexpand
* lisp/emacs-lisp/byte-opt.el (byte-optimize-while): Move check... * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): ...here.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
-rw-r--r--lisp/emacs-lisp/byte-opt.el3
1 files changed, 0 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index 1751669445a..2467b468a46 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -1317,9 +1317,6 @@ See Info node `(elisp) Integer Basics'."
(list 'progn condition nil)))))
(defun byte-optimize-while (form)
- ;; FIXME: This check does not belong here, move!
- (when (< (length form) 2)
- (byte-compile-warn-x form "too few arguments for `while'"))
(let ((condition (nth 1 form)))
(if (byte-compile-nilconstp condition)
condition