]> git.eshelyaron.com Git - emacs.git/commitdiff
Decouple "noruntime" and "cl-functions" bytecomp warnings
authorGlenn Morris <rgm@gnu.org>
Fri, 2 Nov 2012 22:35:01 +0000 (18:35 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 2 Nov 2012 22:35:01 +0000 (18:35 -0400)
* lisp/emacs-lisp/bytecomp.el (byte-compile-eval):
Decouple "noruntime" and "cl-functions" warnings.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index ab73a61d9e64334a1ec79e5755f9096dbe028670..747bbba97c47e736e125a9dd2070530d7c3ffbca 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-02  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-eval):
+       Decouple "noruntime" and "cl-functions" warnings.
+
 2012-11-01  Stephen Berman  <stephen.berman@gmx.net>
 
        * play/gomoku.el (gomoku-display-statistics): Update mode line
index 7534ce5eaca835b1fd26da13253e6214ebaff947..e776df4ef37d5dc20d54d8bbd2676d9517dc1998 100644 (file)
@@ -863,16 +863,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
            (let ((xs (pop hist-new))
                  old-autoloads)
              ;; Make sure the file was not already loaded before.
-             (unless (or (assoc (car xs) hist-orig)
-                         ;; Don't give both the "noruntime" and
-                         ;; "cl-functions" warning for the same function.
-                         ;; FIXME This seems incorrect - these are two
-                         ;; independent warnings.  For example, you may be
-                         ;; choosing to see the cl warnings but ignore them.
-                         ;; You probably don't want to ignore noruntime in the
-                         ;; same way.
-                         (and (byte-compile-warning-enabled-p 'cl-functions)
-                              (byte-compile-cl-file-p (car xs))))
+             (unless (assoc (car xs) hist-orig)
                (dolist (s xs)
                  (cond
                   ((and (consp s) (eq t (car s)))