1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

* lisp/emacs-lisp/package.el (package-generate-autoloads): Load autoloads

before binding generated-autoload-file.
This commit is contained in:
Stefan Monnier 2011-08-01 11:54:09 -04:00
parent 027b979ca0
commit cca09170ad
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/package.el (package-generate-autoloads): Load autoloads
before binding generated-autoload-file.
2011-08-01 Deniz Dogan <deniz@dogan.se>
* net/rcirc.el (rcirc-handler-333): Clarify docstring.

View File

@ -570,11 +570,11 @@ EXTRA-PROPERTIES is currently unused."
file)
(defun package-generate-autoloads (name pkg-dir)
(require 'autoload) ;Load before we let-bind generated-autoload-file!
(let* ((auto-name (concat name "-autoloads.el"))
(ignore-name (concat name "-pkg.el"))
(generated-autoload-file (expand-file-name auto-name pkg-dir))
(version-control 'never))
(require 'autoload)
(unless (fboundp 'autoload-ensure-default-file)
(package-autoload-ensure-default-file generated-autoload-file))
(update-directory-autoloads pkg-dir)))