From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hackney Newsgroups: gmane.emacs.devel Subject: [PATCH] package.el: Kill "PKGNAME-autoloads.el" buffer Date: Sun, 28 Oct 2012 13:11:28 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1351444315 28174 80.91.229.3 (28 Oct 2012 17:11:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2012 17:11:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 18:12:03 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TSWP3-0008Ug-Kp for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2012 18:12:01 +0100 Original-Received: from localhost ([::1]:57295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSWOv-0003k6-Do for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2012 13:11:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSWOt-0003jt-6n for emacs-devel@gnu.org; Sun, 28 Oct 2012 13:11:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSWOs-000239-Ba for emacs-devel@gnu.org; Sun, 28 Oct 2012 13:11:51 -0400 Original-Received: from mail-ia0-f169.google.com ([209.85.210.169]:42512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSWOs-000234-4P for emacs-devel@gnu.org; Sun, 28 Oct 2012 13:11:50 -0400 Original-Received: by mail-ia0-f169.google.com with SMTP id h37so4180149iak.0 for ; Sun, 28 Oct 2012 10:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haxney.org; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=f7oZ5sU77aoN7gqyQApMNpwNsalct3XlgMdY6EO9XKQ=; b=ZrxH57djciElZuoRwEaxrvUNM619W5y4ZpVR8EdF5YkoGZdy/GHgmYOZaAhS1ifGYt f4tM5FP/DH5QSUb6X2Jmc1MLyuYwcuyx94EFUKEg7d+pKeCG9SZeY2LnFfP71Pz4WYYw K5fW52GVta8+lv5TNolHJMuY7fwsHvZlYe3WU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=f7oZ5sU77aoN7gqyQApMNpwNsalct3XlgMdY6EO9XKQ=; b=XoVqGItqnAOrsSZWLtsXGf2Uo2uBbEbwcn/ddYSialvUa4nbRWFy/fqt+Q2jyZUi8K ARp5NShEg670HhgK1Tsf4ZzRHYY7P4WPBrkvk1WzA3Xkqz82g3gi2welDSWTnxCSQ7el zHBtbp8Jxag/G0q7ZFlIS2PEdzoVwf4i8dQT1EB/0kHpSKi+MYi607nQ/CPJtJPcuXJx NRAFOmo0UhHJIXpQXPgAxpPRnRWImb1PjO+uGLbYpYnMBuD/vGhxXHN8jZNNrpvIM3of zlo//401ceioiWTIz7vJmfHT4PsjHpPEd6bJYSPNvLj5wUe92dLFd2oOQUXErYKkZjqE EVhA== Original-Received: by 10.42.35.136 with SMTP id q8mr23781265icd.11.1351444309020; Sun, 28 Oct 2012 10:11:49 -0700 (PDT) Original-Received: by 10.64.0.110 with HTTP; Sun, 28 Oct 2012 10:11:28 -0700 (PDT) X-Gm-Message-State: ALoCoQmPKn0MjcBsIZFJ1TZrILbkaL95SRQPqgrKG7QHGCK7/t2zY1ZPIYt0TT/6uC6re/k+8uDb X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154554 Archived-At: This prevents the buffers from sticking around after a package installation. If the package is updated or deleted, the left-over buffer can interrupt the automated flow of things. --- lisp/ChangeLog | 8 ++++++++ lisp/emacs-lisp/package.el | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8122b16..ddff5ab 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2012-10-28 Daniel Hackney + + * emacs-lisp/package.el (package-generate-autoloads): Kill buffer + "PKGNAME-autoloads.el". This prevents the buffers from sticking + around after a package installation. If the package is updated or + deleted, the left-over buffer can interrupt the automated flow of + things. + 2012-10-27 Eli Zaretskii * profiler.el (profiler-report-make-entry-part): Fix help-echo diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 303642b..a974527 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -590,7 +590,8 @@ 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) + (kill-buffer (get-buffer auto-name)))) (defvar tar-parse-info) (declare-function tar-untar-buffer "tar-mode" ())