all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Allow calling package-initialize more than once
@ 2018-08-11 19:51 Radon Rosborough
  2018-08-20 18:10 ` Radon Rosborough
  2018-08-29  2:25 ` Tom Tromey
  0 siblings, 2 replies; 8+ messages in thread
From: Radon Rosborough @ 2018-08-11 19:51 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

I would like to propose the following change, as a corollary to
previous changes to package initialization for Emacs 27:

| When `package-initialize' is first called, it acts as before; however,
| if it is called again, then it does nothing. This behavior can be
| overridden using a dynamically bound variable or an additional
| argument to `package-initialize'.

This change breaks backwards compatibility only in the following
case:

| Someone who already uses Emacs 27 intentionally calls
| `package-initialize' in their early init-file, then customizes
| `package-user-dir', then intentionally calls `package-initialize'
| again.

I am fairly confident that this use case has never been exercised by
anyone, so the change should be safe.

The benefit to making this change is that there is no need for people
to remove extraneous calls to `package-initialize' from their
init-file when upgrading from Emacs 26 to Emacs 27, and we may remove
the annoying warning introduced in [1] and discussed at [2].

If there are no objections, I would like to prepare a patch to
implement the change.

Best regards,
Radon Rosborough

[1]:
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=2db57579b08ac99c464b6d3698648b3167fc5d55
[2]: https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00626.html

[-- Attachment #2: Type: text/html, Size: 1809 bytes --]

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

end of thread, other threads:[~2018-08-29 19:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-11 19:51 Allow calling package-initialize more than once Radon Rosborough
2018-08-20 18:10 ` Radon Rosborough
2018-08-28 20:36   ` Radon Rosborough
2018-08-28 22:11     ` Clément Pit-Claudel
2018-08-29 15:45       ` Radon Rosborough
2018-08-29  2:25 ` Tom Tromey
2018-08-29 15:50   ` Radon Rosborough
2018-08-29 19:33     ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.