emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bytecomp warnings


From: Dave Love
Subject: bytecomp warnings
Date: Thu, 05 Feb 2004 17:11:38 +0000
User-agent: Gnus/5.1005 (Gnus v5.10.5) Emacs/21.2 (gnu/linux)

This fixes the majority of the noise from the current byte compiler
about format-like args, though there are a fair number of others which
it would be useful for someone fix.

--- cl-macs.el.~1.43.~  Wed Sep  3 15:58:54 2003
+++ cl-macs.el  Wed Jan 21 19:46:14 2004
@@ -2261,8 +2261,7 @@
                              (list (list 'or pred-check
                                          (list 'error
                                                (format "%s accessing a non-%s"
-                                                       accessor name)
-                                               'cl-x))))
+                                                       accessor name)))))
                         (list (if (eq type 'vector) (list 'aref 'cl-x pos)
                                 (if (= pos 0) '(car cl-x)
                                   (list 'nth pos 'cl-x)))))) forms)


The line number given by the new-style warning reports is often
(mostly?) wrong, particularly for the format-related errors.  (It's
not only for them, though, so I doubt it's anything I messed up.)
This makes warnings pretty confusing.  It's not new, but I never had
time to look at it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]