GNU bug report logs - #30506
Say Added by package.el

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 18 Feb 2018 02:43:02 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30506 in the body.
You can then email your comments to 30506 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Sun, 18 Feb 2018 02:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 18 Feb 2018 02:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Say Added by package.el
Date: Sun, 18 Feb 2018 10:42:11 +0800
In one's .emacs file, one might find

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

Well it should say Added by package.el . There is no Package.el on the
system and the user will spend a long time looking for it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Sun, 14 Jul 2019 16:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Sun, 14 Jul 2019 18:24:37 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> In one's .emacs file, one might find
>
> ;; Added by Package.el.  This must come before configurations of
> ;; installed packages.  Don't delete this line.  If you don't want it,
> ;; just comment it out by adding a semicolon to the start of the line.
> ;; You may delete these explanatory comments.
> (package-initialize)
>
> Well it should say Added by package.el . There is no Package.el on the
> system and the user will spend a long time looking for it.

Emacs no longer adds this stuff to .emacs, so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 30506 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 14 Jul 2019 16:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Sun, 14 Jul 2019 20:29:02 GMT) Full text and rfc822 format available.

Message #13 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Mon, 15 Jul 2019 04:27:41 +0800
>> In one's .emacs file, one might find
>> 
>> ;; Added by Package.el.  This must come before configurations of
>> ;; installed packages.  Don't delete this line.  If you don't want it,
>> ;; just comment it out by adding a semicolon to the start of the line.
>> ;; You may delete these explanatory comments.
>> (package-initialize)
>> 
>> Well it should say Added by package.el . There is no Package.el on the
>> system and the user will spend a long time looking for it.

LI> Emacs no longer adds this stuff to .emacs, so I'm closing this bug report.

Are you saying it is now safe to remove those lines from .emacs?
emacs-version "26.1"
and there still is a
$ dlocate package.elc
emacs-common: /usr/share/emacs/26.1/lisp/emacs-lisp/package.elc
lurking on disk.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Thu, 18 Jul 2019 18:49:02 GMT) Full text and rfc822 format available.

Message #16 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Thu, 18 Jul 2019 20:48:45 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>>> In one's .emacs file, one might find
>>> 
>>> ;; Added by Package.el.  This must come before configurations of
>>> ;; installed packages.  Don't delete this line.  If you don't want it,
>>> ;; just comment it out by adding a semicolon to the start of the line.
>>> ;; You may delete these explanatory comments.
>>> (package-initialize)
>>> 
>>> Well it should say Added by package.el . There is no Package.el on the
>>> system and the user will spend a long time looking for it.
>
> LI> Emacs no longer adds this stuff to .emacs, so I'm closing this bug report.
>
> Are you saying it is now safe to remove those lines from .emacs?
> emacs-version "26.1"
> and there still is a
> $ dlocate package.elc
> emacs-common: /usr/share/emacs/26.1/lisp/emacs-lisp/package.elc
> lurking on disk.

package.el[c] is still there, but it doesn't add the above comment and
code to the user's init file.

Bye,
Tassilo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Fri, 19 Jul 2019 02:33:01 GMT) Full text and rfc822 format available.

Message #19 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Fri, 19 Jul 2019 10:31:48 +0800
TH> package.el[c] is still there, but it doesn't add the above comment and
TH> code to the user's init file.

Maybe the package-initialize's docstring should say "You may have
noticed a line in your .emacs file... Well it is now safe to remove that
line."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Fri, 19 Jul 2019 06:52:02 GMT) Full text and rfc822 format available.

Message #22 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Fri, 19 Jul 2019 08:51:20 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> TH> package.el[c] is still there, but it doesn't add the above comment
> TH> and code to the user's init file.
>
> Maybe the package-initialize's docstring should say "You may have
> noticed a line in your .emacs file... Well it is now safe to remove
> that line."

The NEWS entry is this:

--8<---------------cut here---------------start------------->8---
** Installed packages are now activated *before* loading the init file.
This is part of a change intended to eliminate the behavior of
package.el inserting a call to 'package-initialize' into the init
file, which was previously done when Emacs was started.  As a result
of this change, it is no longer necessary to call 'package-initialize'
in your init file.

However, if your init file changes the values of 'package-load-list'
or 'package-user-dir', or sets 'package-enable-at-startup' to nil then
it won't work right without some adjustment:
- You can move that code to the early init file (see above), so those
  settings apply before Emacs tries to activate the packages.
- You can use the new 'package-quickstart' so activation of packages
  does not need to pay attention to 'package-load-list' or
  'package-user-dir' any more.
--8<---------------cut here---------------end--------------->8---

So I guess the entry won't hurt anyone but simply removing it might
cause issues for people with some special configurations.  Additionally,
`package-initialize' prints a warning

  Unnecessary call to `package-initialize' in init file

to *Messages* if it is called once packages have been initialized
already and no such special configurations apply.

So it looks to me like it has been catered for the unnecessary call case
already.  I'm closing this issue.

Bye,
Tassilo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30506; Package emacs. (Fri, 19 Jul 2019 14:11:02 GMT) Full text and rfc822 format available.

Message #25 received at 30506 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 30506 <at> debbugs.gnu.org
Subject: Re: bug#30506: Say Added by package.el
Date: Fri, 19 Jul 2019 22:10:23 +0800
>>>>> "TH" == Tassilo Horn <tsdh <at> gnu.org> writes:
TH> Additionally, `package-initialize' prints a warning

TH>   Unnecessary call to `package-initialize' in init file

TH> to *Messages* if it is called once packages have been initialized
TH> already and no such special configurations apply.

OK good. I will be seeing this soon when Debian upgrades.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 17 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.