From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#21423: 24.5; (package-initialize) added to init.el without (setq package-enable-at-startup nil) Date: Sun, 06 Sep 2015 23:01:08 +1200 Message-ID: <55EC1CF4.60006@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050806030400060809030404" X-Trace: ger.gmane.org 1441537347 23546 80.91.229.3 (6 Sep 2015 11:02:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2015 11:02:27 +0000 (UTC) To: 21423@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 13:02:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZYXi9-0002Ek-VU for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2015 13:02:14 +0200 Original-Received: from localhost ([::1]:47284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXi9-00050a-5P for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2015 07:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXi3-0004xM-FY for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYXhz-0001v7-Ap for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXhz-0001uu-6T for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZYXhy-000603-Ua for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Sep 2015 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21423 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144153728722963 (code B ref -1); Sun, 06 Sep 2015 11:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2015 11:01:27 +0000 Original-Received: from localhost ([127.0.0.1]:50486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYXhO-0005yI-Fk for submit@debbugs.gnu.org; Sun, 06 Sep 2015 07:01:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38969) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYXhL-0005y5-PY for submit@debbugs.gnu.org; Sun, 06 Sep 2015 07:01:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYXhK-0001Hm-Dt for submit@debbugs.gnu.org; Sun, 06 Sep 2015 07:01:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXhK-0001Hi-Ar for submit@debbugs.gnu.org; Sun, 06 Sep 2015 07:01:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXhJ-0004BG-7U for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:01:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYXhF-0001FB-1A for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:01:21 -0400 Original-Received: from [219.88.242.52] (port=55383 helo=mail.orcon.net.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYXhE-0001EF-IJ for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2015 07:01:16 -0400 Original-Received: from [10.1.1.5] (202-150-102-33.bng1.avl.orcon.net.nz [202.150.102.33] (may be forged)) (authenticated bits=0) by mail.orcon.net.nz (8.14.3/8.14.3/Debian-9.4) with ESMTP id t86B18tU027995 for ; Sun, 6 Sep 2015 23:01:09 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 X-Bayes-Prob: 0.0001 (Score 0: No Bayes scoring rules defined, tokens from: outbound) X-CanIt-Geo: ip=202.150.102.33; country=NZ; latitude=-41; longitude=174.0000; http://maps.google.com/maps?q=-41,174.0000&z=6 X-CanItPRO-Stream: base:outbound X-Canit-Stats-ID: 02PdL19X9 - deeb6977015b - 20150906 X-Scanned-By: CanIt (www . roaringpenguin . com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106184 Archived-At: This is a multi-part message in MIME format. --------------050806030400060809030404 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.orcon.net.nz id t86B18tU027995 package--ensure-init-file inserts (package-initialize) into the user's init file, but it does not also insert (setq package-enable-at-startup ni= l), which means that (according to (emacs) Package Installation) Emacs will re-initialize the packages post-init: > In some circumstances, you may want to load packages explicitly in > your init file (usually because some other code in your init file > depends on a package). In that case, your init file should call the > function =E2=80=98package-initialize=E2=80=99. It is up to you to ens= ure that > relevant user options, such as =E2=80=98package-load-list=E2=80=99 (se= e below), are > set up prior to the =E2=80=98package-initialize=E2=80=99 call. You sh= ould also set > =E2=80=98package-enable-at-startup=E2=80=99 to =E2=80=98nil=E2=80=99, = to avoid loading the packages > again after processing the init file. --------------050806030400060809030404 Content-Type: text/x-patch; name="0001-Disable-package-enable-at-startup-when-forcing-packa.patch" Content-Disposition: attachment; filename*0="0001-Disable-package-enable-at-startup-when-forcing-packa.pa"; filename*1="tch" Content-Transfer-Encoding: 7bit >From 297f2d5555ba0efb0afc3412f49d1c728ebb5700 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Sun, 6 Sep 2015 22:48:40 +1200 Subject: [PATCH] Disable package-enable-at-startup when forcing package-initialize --- lisp/emacs-lisp/package.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index d4a2f02..baa4ab6 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1856,6 +1856,7 @@ add a call to it along with some explanatory comments." ";; installed packages. Don't delete this line. If you don't want it,\n" ";; just comment it out by adding a semicolon to the start of the line.\n" ";; You may delete these explanatory comments.\n" + "(setq package-enable-at-startup nil)\n") "(package-initialize)\n") (unless (looking-at-p "$") (insert "\n")) -- 2.1.0 --------------050806030400060809030404--