]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/package.el (package-generate-autoloads): Kill buffer
authorDaniel Hackney <dan@haxney.org>
Sun, 28 Oct 2012 20:41:49 +0000 (16:41 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 28 Oct 2012 20:41:49 +0000 (16:41 -0400)
"PKGNAME-autoloads.el" in case we created it.

lisp/ChangeLog
lisp/emacs-lisp/package.el

index 2bdf074b9d5d58a565de97dbaf3a26b8741f12e2..999a06648aca2086f1fbbc0164d391154a96ccf3 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-28  Daniel Hackney  <dan@haxney.org>
+
+       * emacs-lisp/package.el (package-generate-autoloads): Kill buffer
+       "PKGNAME-autoloads.el" in case we created it.
+
 2012-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * minibuffer.el (completion--sifn-requote): Rewrite to handle things
index 303642b5beca5166dc29f0595192b31791dcfeaf..6629410a1f1c8aa1045a04f47074052ae6072adf 100644 (file)
@@ -590,7 +590,9 @@ EXTRA-PROPERTIES is currently unused."
         (version-control 'never))
     (unless (fboundp 'autoload-ensure-default-file)
       (package-autoload-ensure-default-file generated-autoload-file))
-    (update-directory-autoloads pkg-dir)))
+    (update-directory-autoloads pkg-dir)
+    (let ((buf (find-buffer-visiting generated-autoload-file)))
+      (when buf (kill-buffer buf)))))
 
 (defvar tar-parse-info)
 (declare-function tar-untar-buffer "tar-mode" ())