]> git.eshelyaron.com Git - emacs.git/commitdiff
Johan Bockg� <bojohan at gnu.org>
authorGlenn Morris <rgm@gnu.org>
Sun, 27 Apr 2008 01:17:03 +0000 (01:17 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 27 Apr 2008 01:17:03 +0000 (01:17 +0000)
(byte-compile-find-cl-functions): Simplify.  Collect `defun' and
`autoload' entries.  Avoid modifying load-history.

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

index e9ba1a706e62d389f78a47c7efd2643d16c8cbeb..55794b99016e16a1677ee65a7eb01832aa1d7e15 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-27  Johan Bockgård  <bojohan@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-find-cl-functions):
+       Simplify.  Collect `defun' and `autoload' entries.  Avoid
+       modifying load-history.
+
 2008-04-26  Glenn Morris  <rgm@gnu.org>
 
        * textmodes/ispell.el (ispell-insert-word): Revert previous change.
index e54d1edf4d5e2e1b3c8e56ffbc136eb59017eee8..0249c0dc78cc9087fe422e8b84bd0482cc176bbb 100644 (file)
@@ -1405,15 +1405,9 @@ extra args."
       (when (and (stringp (car elt))
                 (string-match
                  "^cl\\>" (file-name-nondirectory (car elt))))
-       (setq byte-compile-cl-functions
-             (append byte-compile-cl-functions
-                     (cdr elt)))))
-    (let ((tail byte-compile-cl-functions))
-      (while tail
-       (if (and (consp (car tail))
-                (eq (car (car tail)) 'autoload))
-           (setcar tail (cdr (car tail))))
-       (setq tail (cdr tail))))))
+       (dolist (e (cdr elt))
+          (when (memq (car-safe e) '(autoload defun))
+            (push (cdr e) byte-compile-cl-functions)))))))
 
 (defun byte-compile-cl-warn (form)
   "Warn if FORM is a call of a function from the CL package."