Downcase error messages.
authorGerd Moellmann <gerd@gnu.org>
Thu, 11 Oct 2001 12:57:53 +0000 (12:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 11 Oct 2001 12:57:53 +0000 (12:57 +0000)
lisp/emacs-lisp/byte-opt.el

index cbfc9a6..47b803a 100644 (file)
                 (and (fboundp name) (symbol-function name)))))
     (if (null fn)
        (progn
-         (byte-compile-warn "Attempt to inline `%s' before it was defined"
+         (byte-compile-warn "attempt to inline `%s' before it was defined"
                             name)
          form)
       ;; else
                                    bindings)
                     values nil))
              ((and (not optionalp) (null values))
-              (byte-compile-warn "Attempt to open-code `%s' with too few arguments" name)
+              (byte-compile-warn "attempt to open-code `%s' with too few arguments" name)
               (setq arglist nil values 'too-few))
              (t
               (setq bindings (cons (list (car arglist) (car values))
          (progn
            (or (eq values 'too-few)
                (byte-compile-warn
-                "Attempt to open-code `%s' with too many arguments" name))
+                "attempt to open-code `%s' with too many arguments" name))
            form)
        
        ;; The following leads to infinite recursion when loading a
             form))
          ((eq fn 'quote)
           (if (cdr (cdr form))
-              (byte-compile-warn "Malformed quote form: `%s'"
+              (byte-compile-warn "malformed quote form: `%s'"
                                  (prin1-to-string form)))
           ;; map (quote nil) to nil to simplify optimizer logic.
           ;; map quoted constants to nil if for-effect (just because).
                         (if (symbolp binding)
                             binding
                           (if (cdr (cdr binding))
-                              (byte-compile-warn "Malformed let binding: `%s'"
+                              (byte-compile-warn "malformed let binding: `%s'"
                                                  (prin1-to-string binding)))
                           (list (car binding)
                                 (byte-optimize-form (nth 1 binding) nil))))
                                (cons
                                 (byte-optimize-form (car clause) nil)
                                 (byte-optimize-body (cdr clause) for-effect))
-                             (byte-compile-warn "Malformed cond form: `%s'"
+                             (byte-compile-warn "malformed cond form: `%s'"
                                                 (prin1-to-string clause))
                              clause))
                         (cdr form))))
          
          ((eq fn 'if)
           (when (< (length form) 3)
-            (byte-compile-warn "Too few arguments for `if'"))
+            (byte-compile-warn "too few arguments for `if'"))
           (cons fn
             (cons (byte-optimize-form (nth 1 form) nil)
               (cons
             (cons fn (mapcar 'byte-optimize-form (cdr form)))))
 
          ((eq fn 'interactive)
-          (byte-compile-warn "Misplaced interactive spec: `%s'"
+          (byte-compile-warn "misplaced interactive spec: `%s'"
                              (prin1-to-string form))
           nil)
          
 (defun byte-optimize-identity (form)
   (if (and (cdr form) (null (cdr (cdr form))))
       (nth 1 form)
-    (byte-compile-warn "Identity called with %d arg%s, but requires 1"
+    (byte-compile-warn "identity called with %d arg%s, but requires 1"
                       (length (cdr form))
                       (if (= 1 (length (cdr form))) "" "s"))
     form))
 
 (defun byte-optimize-while (form)
   (when (< (length form) 2)
-    (byte-compile-warn "Too few arguments for `while'"))
+    (byte-compile-warn "too few arguments for `while'"))
   (if (nth 1 form)
       form))
 
                  (nconc (list 'funcall fn) butlast
                         (mapcar (lambda (x) (list 'quote x)) (nth 1 last))))
              (byte-compile-warn
-              "Last arg to apply can't be a literal atom: `%s'"
+              "last arg to apply can't be a literal atom: `%s'"
               (prin1-to-string last))
              nil))
        form)))