all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21858: package-initialize: no good in .emacs!
@ 2015-11-08  3:17 David Reitter
  2015-11-08 14:46 ` Juanma Barranquero
  2018-02-17 14:19 ` Noam Postavsky
  0 siblings, 2 replies; 6+ messages in thread
From: David Reitter @ 2015-11-08  3:17 UTC (permalink / raw)
  To: 21858; +Cc: bruce.connor.am

X-Debbugs-CC: bruce.connor.am@gmail.com

Emacs 25’s package system liberally modified my ~/.emacs, adding a call do `package-initialize’.

What happens when I call emacs from the command line (as opposed to one installed elsewhere, like a GUI Emacs in /Applications)?

> An error has occurred while loading `/Users/dr/.emacs':
> 
> Symbol's function definition is void: package-initialize


… because my command-line emacs is an older one, such as the one that comes with the latest version of OS X (Emacs 22).

This is not a good state of affairs...




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

* bug#21858: package-initialize: no good in .emacs!
  2015-11-08  3:17 bug#21858: package-initialize: no good in .emacs! David Reitter
@ 2015-11-08 14:46 ` Juanma Barranquero
  2015-11-08 15:41   ` Artur Malabarba
  2015-11-08 17:00   ` Wolfgang Jenkner
  2018-02-17 14:19 ` Noam Postavsky
  1 sibling, 2 replies; 6+ messages in thread
From: Juanma Barranquero @ 2015-11-08 14:46 UTC (permalink / raw)
  To: David Reitter; +Cc: 21858, bruce.connor.am

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

On Sun, Nov 8, 2015 at 4:17 AM, David Reitter <david.reitter@gmail.com>
wrote:

> > Symbol's function definition is void: package-initialize

Obviously you could work around it by adding

(unless (fboundp 'package-initialize) (defalias 'package-initialize
'ignore))

to your init file...

> This is not a good state of affairs...

...but I couldn't agree more with you about packages messing with the init
file. I *hate* custom for several reasons, and that's one of them.

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

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

* bug#21858: package-initialize: no good in .emacs!
  2015-11-08 14:46 ` Juanma Barranquero
@ 2015-11-08 15:41   ` Artur Malabarba
  2015-11-08 17:00   ` Wolfgang Jenkner
  1 sibling, 0 replies; 6+ messages in thread
From: Artur Malabarba @ 2015-11-08 15:41 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: David Reitter, 21858

2015-11-08 14:46 GMT+00:00 Juanma Barranquero <lekktu@gmail.com>:
> On Sun, Nov 8, 2015 at 4:17 AM, David Reitter <david.reitter@gmail.com>
> wrote:
>
>> > Symbol's function definition is void: package-initialize
>
> Obviously you could work around it by adding
>
> (unless (fboundp 'package-initialize) (defalias 'package-initialize
> 'ignore))

Or just comment out that `(package-initialize)' line, as explained in
the comments inserted above it.
If you do that, you're left with the usual behaviour from Emacs 24.





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

* bug#21858: package-initialize: no good in .emacs!
  2015-11-08 14:46 ` Juanma Barranquero
  2015-11-08 15:41   ` Artur Malabarba
@ 2015-11-08 17:00   ` Wolfgang Jenkner
  2015-11-08 17:03     ` David Reitter
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Jenkner @ 2015-11-08 17:00 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: David Reitter, bruce.connor.am, 21858

On Sun, Nov 08 2015, Juanma Barranquero wrote:

> I *hate* custom for several reasons, and that's one of them.

If only it could be ripped out of emacs...

Anyway, isn't setting `custom-file' enough to prevent custom from
messing with ~/.emacs?

(I realize this bug report is not about custom, sorry).





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

* bug#21858: package-initialize: no good in .emacs!
  2015-11-08 17:00   ` Wolfgang Jenkner
@ 2015-11-08 17:03     ` David Reitter
  0 siblings, 0 replies; 6+ messages in thread
From: David Reitter @ 2015-11-08 17:03 UTC (permalink / raw)
  To: Wolfgang Jenkner; +Cc: Juanma Barranquero, bruce.connor.am, 21858

On Nov 8, 2015, at 12:00 PM, Wolfgang Jenkner <wjenkner@inode.at> wrote:

> Anyway, isn't setting `custom-file' enough to prevent custom from
> messing with ~/.emacs?

Yes, and that works.

The more surprising is it when now `package’ likes to mess with it.




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

* bug#21858: package-initialize: no good in .emacs!
  2015-11-08  3:17 bug#21858: package-initialize: no good in .emacs! David Reitter
  2015-11-08 14:46 ` Juanma Barranquero
@ 2018-02-17 14:19 ` Noam Postavsky
  1 sibling, 0 replies; 6+ messages in thread
From: Noam Postavsky @ 2018-02-17 14:19 UTC (permalink / raw)
  To: David Reitter; +Cc: 21858, bruce.connor.am

tags 21858 fixed
close 21858 27.1
quit

David Reitter <david.reitter@gmail.com> writes:

> Emacs 25’s package system liberally modified my ~/.emacs, adding a call do `package-initialize’.

This is fixed in master now.

[1: 24acb31c04]: 2018-02-17 13:36:16 +0200
  Add early init file, stop package-initialize insertion
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24acb31c04b4048b85311d794e600ecd7ce60d3b





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

end of thread, other threads:[~2018-02-17 14:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-08  3:17 bug#21858: package-initialize: no good in .emacs! David Reitter
2015-11-08 14:46 ` Juanma Barranquero
2015-11-08 15:41   ` Artur Malabarba
2015-11-08 17:00   ` Wolfgang Jenkner
2015-11-08 17:03     ` David Reitter
2018-02-17 14:19 ` Noam Postavsky

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.