diff lisp/bytecomp/byte-optimize.el @ 22:8fc7fe29b841 r19-15b94

Import from CVS: tag r19-15b94
author cvs
date Mon, 13 Aug 2007 08:50:29 +0200
parents 0293115a14e9
children 56c54cf7c5b6
line wrap: on
line diff
--- a/lisp/bytecomp/byte-optimize.el	Mon Aug 13 08:50:06 2007 +0200
+++ b/lisp/bytecomp/byte-optimize.el	Mon Aug 13 08:50:29 2007 +0200
@@ -273,7 +273,10 @@
 	  form)
       ;; else
       (if (and (consp fn) (eq (car fn) 'autoload))
-	  (load (nth 1 fn)))
+	  (progn
+	    (load (nth 1 fn))
+	    (setq fn (or (cdr (assq name byte-compile-function-environment))
+			 (and (fboundp name) (symbol-function name))))))
       (if (and (consp fn) (eq (car fn) 'autoload))
 	  (error "file \"%s\" didn't define \"%s\"" (nth 1 fn) name))
       (if (symbolp fn)