Commit cca09170 authored by Stefan Monnier's avatar Stefan Monnier

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

before binding generated-autoload-file.
parent 027b979c
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.
......
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment