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.
This commit is contained in:
parent
a936335aa0
commit
9a7b3673e0
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue