2001-10-12 Gerd Moellmann <gerd@gnu.org>
- * emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
- New function checking that lambda-list consists of non-constant
+ * emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
+ Turn error for repeated variables into warning.
+
+ * emacs-lisp/bytecomp.el (byte-compile-check-lambda-list): New
+ function checking that lambda-list consists of non-constant
symbols, that &rest and &optional are followed by variable names,
that &rest VAR is the last element, and that variables aren't doubled.
(byte-compile-lambda): Use it.
;;; This version incorporates changes up to version 2.10 of the
;;; Zawinski-Furuseth compiler.
-(defconst byte-compile-version "$Revision: 2.88.1.1 $")
+(defconst byte-compile-version "$Revision: 2.89 $")
;; This file is part of GNU Emacs.
(unless (cdr list)
(error "Variable name missing after &optional")))
((memq arg vars)
- (error "Repeated variable %s in lambda-list" arg))
+ (byte-compile-warn "repeated variable %s in lambda-list" arg))
(t
(push arg vars))))
(setq list (cdr list)))))