unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30506: Say Added by package.el
@ 2018-02-18  2:42 積丹尼 Dan Jacobson
  2019-07-14 16:24 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2018-02-18  2:42 UTC (permalink / raw)
  To: 30506

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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2018-02-18  2:42 bug#30506: Say Added by package.el 積丹尼 Dan Jacobson
@ 2019-07-14 16:24 ` Lars Ingebrigtsen
  2019-07-14 20:27   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-14 16:24 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 30506

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2019-07-14 16:24 ` Lars Ingebrigtsen
@ 2019-07-14 20:27   ` 積丹尼 Dan Jacobson
  2019-07-18 18:48     ` Tassilo Horn
  0 siblings, 1 reply; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-14 20:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 30506

>> 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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2019-07-14 20:27   ` 積丹尼 Dan Jacobson
@ 2019-07-18 18:48     ` Tassilo Horn
  2019-07-19  2:31       ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2019-07-18 18:48 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: Lars Ingebrigtsen, 30506

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2019-07-18 18:48     ` Tassilo Horn
@ 2019-07-19  2:31       ` 積丹尼 Dan Jacobson
  2019-07-19  6:51         ` Tassilo Horn
  0 siblings, 1 reply; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-19  2:31 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Lars Ingebrigtsen, 30506

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."





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2019-07-19  2:31       ` 積丹尼 Dan Jacobson
@ 2019-07-19  6:51         ` Tassilo Horn
  2019-07-19 14:10           ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2019-07-19  6:51 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: Lars Ingebrigtsen, 30506

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#30506: Say Added by package.el
  2019-07-19  6:51         ` Tassilo Horn
@ 2019-07-19 14:10           ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-19 14:10 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Lars Ingebrigtsen, 30506

>>>>> "TH" == Tassilo Horn <tsdh@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-19 14:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-18  2:42 bug#30506: Say Added by package.el 積丹尼 Dan Jacobson
2019-07-14 16:24 ` Lars Ingebrigtsen
2019-07-14 20:27   ` 積丹尼 Dan Jacobson
2019-07-18 18:48     ` Tassilo Horn
2019-07-19  2:31       ` 積丹尼 Dan Jacobson
2019-07-19  6:51         ` Tassilo Horn
2019-07-19 14:10           ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).