[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using use-package

From: tomas
Subject: Re: using use-package
Date: Thu, 13 Aug 2015 23:11:02 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hash: SHA1

On Thu, Aug 13, 2015 at 04:31:03PM -0400, Stefan Monnier wrote:
> >> Please do keep us informed of those problems: it's indeed very important
> >> to make package.el more robust.
> > My hunch now is that the package brought with it an .elc file (probably
> > magit.elc) compiled with the wrong Emacs version.
> Sounds unlikely both because of the way the ELPA package gets built and
> because many other people would have bumped into this problem.

Sounds compelling, but...

> > Removing all .elc and recompiling the directory seems to succeed [...]

> My crystal ball tells me that you upgraded Magit from an Emacs where the
> previous Magit was already loaded, and the old (loaded) version
> interfered while byte-compiling the new version.
> [ The typical interference, looks like this: Emacs tries to compile
>   foo-1.el which does (require 'foo-2) to get some macros, but (the old)
>   `foo-2' is already loaded so we end up using the old version of the
>   macros (or the macros may simply not be defined at all).  ]

... the only version of magit to hit my computer was this one loaded
via ELPA (once). Unless I fat-fingered something (does happen sometimes).

> Normally byte-code is upward compatible, so the problem is only if you
> compile with Emacs-NN and then use that file with Emacs-MM where MM<NN.
> Admittedly, handling this more cleanly would be good.

I'll try to reproduce it -- after nuking .emacs.d/elpa (I can afford
this luxury since magit was my first dabbling in elpa anyway :-)

I'll report back.

- -- tomás
Version: GnuPG v1.4.12 (GNU/Linux)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]