aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-11 12:57:53 +0000
committerGerd Moellmann2001-10-11 12:57:53 +0000
commit244bbdc57a44984dbd0d10e222d4c98462d76335 (patch)
treeda633e0ce12b034daaeb4354298fe9715dea408c
parentb8175fe659af7fa0b8edbe8d7756107ae92add7c (diff)
downloademacs-244bbdc57a44984dbd0d10e222d4c98462d76335.tar.gz
emacs-244bbdc57a44984dbd0d10e222d4c98462d76335.zip
Downcase error messages.
-rw-r--r--lisp/emacs-lisp/byte-opt.el22
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index cbfc9a6bb09..47b803af81c 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -260,7 +260,7 @@
260 (and (fboundp name) (symbol-function name))))) 260 (and (fboundp name) (symbol-function name)))))
261 (if (null fn) 261 (if (null fn)
262 (progn 262 (progn
263 (byte-compile-warn "Attempt to inline `%s' before it was defined" 263 (byte-compile-warn "attempt to inline `%s' before it was defined"
264 name) 264 name)
265 form) 265 form)
266 ;; else 266 ;; else
@@ -327,7 +327,7 @@
327 bindings) 327 bindings)
328 values nil)) 328 values nil))
329 ((and (not optionalp) (null values)) 329 ((and (not optionalp) (null values))
330 (byte-compile-warn "Attempt to open-code `%s' with too few arguments" name) 330 (byte-compile-warn "attempt to open-code `%s' with too few arguments" name)
331 (setq arglist nil values 'too-few)) 331 (setq arglist nil values 'too-few))
332 (t 332 (t
333 (setq bindings (cons (list (car arglist) (car values)) 333 (setq bindings (cons (list (car arglist) (car values))
@@ -338,7 +338,7 @@
338 (progn 338 (progn
339 (or (eq values 'too-few) 339 (or (eq values 'too-few)
340 (byte-compile-warn 340 (byte-compile-warn
341 "Attempt to open-code `%s' with too many arguments" name)) 341 "attempt to open-code `%s' with too many arguments" name))
342 form) 342 form)
343 343
344 ;; The following leads to infinite recursion when loading a 344 ;; The following leads to infinite recursion when loading a
@@ -374,7 +374,7 @@
374 form)) 374 form))
375 ((eq fn 'quote) 375 ((eq fn 'quote)
376 (if (cdr (cdr form)) 376 (if (cdr (cdr form))
377 (byte-compile-warn "Malformed quote form: `%s'" 377 (byte-compile-warn "malformed quote form: `%s'"
378 (prin1-to-string form))) 378 (prin1-to-string form)))
379 ;; map (quote nil) to nil to simplify optimizer logic. 379 ;; map (quote nil) to nil to simplify optimizer logic.
380 ;; map quoted constants to nil if for-effect (just because). 380 ;; map quoted constants to nil if for-effect (just because).
@@ -394,7 +394,7 @@
394 (if (symbolp binding) 394 (if (symbolp binding)
395 binding 395 binding
396 (if (cdr (cdr binding)) 396 (if (cdr (cdr binding))
397 (byte-compile-warn "Malformed let binding: `%s'" 397 (byte-compile-warn "malformed let binding: `%s'"
398 (prin1-to-string binding))) 398 (prin1-to-string binding)))
399 (list (car binding) 399 (list (car binding)
400 (byte-optimize-form (nth 1 binding) nil)))) 400 (byte-optimize-form (nth 1 binding) nil))))
@@ -407,7 +407,7 @@
407 (cons 407 (cons
408 (byte-optimize-form (car clause) nil) 408 (byte-optimize-form (car clause) nil)
409 (byte-optimize-body (cdr clause) for-effect)) 409 (byte-optimize-body (cdr clause) for-effect))
410 (byte-compile-warn "Malformed cond form: `%s'" 410 (byte-compile-warn "malformed cond form: `%s'"
411 (prin1-to-string clause)) 411 (prin1-to-string clause))
412 clause)) 412 clause))
413 (cdr form)))) 413 (cdr form))))
@@ -446,7 +446,7 @@
446 446
447 ((eq fn 'if) 447 ((eq fn 'if)
448 (when (< (length form) 3) 448 (when (< (length form) 3)
449 (byte-compile-warn "Too few arguments for `if'")) 449 (byte-compile-warn "too few arguments for `if'"))
450 (cons fn 450 (cons fn
451 (cons (byte-optimize-form (nth 1 form) nil) 451 (cons (byte-optimize-form (nth 1 form) nil)
452 (cons 452 (cons
@@ -473,7 +473,7 @@
473 (cons fn (mapcar 'byte-optimize-form (cdr form))))) 473 (cons fn (mapcar 'byte-optimize-form (cdr form)))))
474 474
475 ((eq fn 'interactive) 475 ((eq fn 'interactive)
476 (byte-compile-warn "Misplaced interactive spec: `%s'" 476 (byte-compile-warn "misplaced interactive spec: `%s'"
477 (prin1-to-string form)) 477 (prin1-to-string form))
478 nil) 478 nil)
479 479
@@ -849,7 +849,7 @@
849(defun byte-optimize-identity (form) 849(defun byte-optimize-identity (form)
850 (if (and (cdr form) (null (cdr (cdr form)))) 850 (if (and (cdr form) (null (cdr (cdr form))))
851 (nth 1 form) 851 (nth 1 form)
852 (byte-compile-warn "Identity called with %d arg%s, but requires 1" 852 (byte-compile-warn "identity called with %d arg%s, but requires 1"
853 (length (cdr form)) 853 (length (cdr form))
854 (if (= 1 (length (cdr form))) "" "s")) 854 (if (= 1 (length (cdr form))) "" "s"))
855 form)) 855 form))
@@ -1017,7 +1017,7 @@
1017 1017
1018(defun byte-optimize-while (form) 1018(defun byte-optimize-while (form)
1019 (when (< (length form) 2) 1019 (when (< (length form) 2)
1020 (byte-compile-warn "Too few arguments for `while'")) 1020 (byte-compile-warn "too few arguments for `while'"))
1021 (if (nth 1 form) 1021 (if (nth 1 form)
1022 form)) 1022 form))
1023 1023
@@ -1053,7 +1053,7 @@
1053 (nconc (list 'funcall fn) butlast 1053 (nconc (list 'funcall fn) butlast
1054 (mapcar (lambda (x) (list 'quote x)) (nth 1 last)))) 1054 (mapcar (lambda (x) (list 'quote x)) (nth 1 last))))
1055 (byte-compile-warn 1055 (byte-compile-warn
1056 "Last arg to apply can't be a literal atom: `%s'" 1056 "last arg to apply can't be a literal atom: `%s'"
1057 (prin1-to-string last)) 1057 (prin1-to-string last))
1058 nil)) 1058 nil))
1059 form))) 1059 form)))