From: Daniel Hackney Date: Sun, 28 Oct 2012 20:41:49 +0000 (-0400) Subject: * lisp/emacs-lisp/package.el (package-generate-autoloads): Kill buffer X-Git-Tag: emacs-24.2.90~209^2~31 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd44022cb0f1a126f74a45b98302185262d19396;p=emacs.git * lisp/emacs-lisp/package.el (package-generate-autoloads): Kill buffer "PKGNAME-autoloads.el" in case we created it. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2bdf074b9d5..999a06648ac 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-10-28 Daniel Hackney + + * emacs-lisp/package.el (package-generate-autoloads): Kill buffer + "PKGNAME-autoloads.el" in case we created it. + 2012-10-28 Stefan Monnier * minibuffer.el (completion--sifn-requote): Rewrite to handle things diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 303642b5bec..6629410a1f1 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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" ())