From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Thu, 13 Aug 2015 23:11:02 +0200 Message-ID: <20150813211102.GB12979@tuxteam.de> References: <67cb463e-41f6-4f37-91ee-15d0fdb5ba9f@googlegroups.com> <20150812180621.32265.2E673ABE@ahiker.mooo.com> <20150813072506.GA21389@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1439500295 8953 80.91.229.3 (13 Aug 2015 21:11:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 21:11:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 13 23:11:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZPzmV-0005th-9V for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 23:11:23 +0200 Original-Received: from localhost ([::1]:44155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzmU-0007lx-76 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 17:11:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzmI-0007kb-Q9 for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 17:11:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPzmF-0008P7-KH for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 17:11:10 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:50015 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPzmF-0008Oc-EP for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 17:11:07 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ZPzmB-0003bG-48; Thu, 13 Aug 2015 23:11:03 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106554 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- 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 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. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlXNB+YACgkQBcgs9XrR2kb8zACeIMcDlIaCbn/Fe+MkBHNOkQYc E6cAn3B2WmNu2n2COtcKfkOHJiaXocy3 =2Ete -----END PGP SIGNATURE-----