Subject: bug#15763: autoload-generate-file-autoloads can put package--builtin-versions in wrong file

From: Glenn Morris <[email-masked]>
Date: Wed, 30 Oct 2013 16:53:02 -0400

Package: emacs
Version: 24.3.50

In current trunk, the autoload section of lisp/htmlfontify.el contains:

  ;;; Generated autoloads from hfy-cmap.el
  (push (purecopy '(htmlfontify 0 20)) package--builtin-versions)

That is:

1) Incorrect (htmlfontify.el is at version 0.21, whereas hfy-cmap.el is
at version 0.20).

2) In the wrong file.

I guess autoload-generate-file-autoloads should only do the
package--builtin-versions stuff when writing to the top-level
loaddefs.el file, not when respecting a buffer-local
generated-autoload-file.