From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#9313: 24.0.50; Emacs 24 cannot load byte-compiled code from Emacs 23.3 when using EIEIO's defmethod Date: Wed, 17 Aug 2011 17:52:03 +0200 Message-ID: <87wreckpcs.fsf@engster.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313596399 19041 80.91.229.12 (17 Aug 2011 15:53:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 15:53:19 +0000 (UTC) To: 9313@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 17:53:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QtiQb-0000zd-5V for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2011 17:53:13 +0200 Original-Received: from localhost ([::1]:33960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiQa-000636-GA for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2011 11:53:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiQX-00062j-CI for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:53:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtiQW-0004yN-7O for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:53:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiQW-0004yF-5e for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:53:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QtiSL-0006Kl-Ui; Wed, 17 Aug 2011 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2011 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131359644924282 (code B ref -1); Wed, 17 Aug 2011 15:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Aug 2011 15:54:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtiRU-0006JZ-AS for submit@debbugs.gnu.org; Wed, 17 Aug 2011 11:54:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtiRS-0006JS-7a for submit@debbugs.gnu.org; Wed, 17 Aug 2011 11:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtiPa-0004jB-Qs for submit@debbugs.gnu.org; Wed, 17 Aug 2011 11:52:11 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:52717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiPa-0004j7-PQ for submit@debbugs.gnu.org; Wed, 17 Aug 2011 11:52:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiPZ-0005yf-MF for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtiPY-0004io-CE for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:52:09 -0400 Original-Received: from v3-1008.vxen.de ([79.140.41.8]:55777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiPY-0004iT-0C for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 11:52:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=C5nmtgnJ9gG3ws6vUzBjyHdaRNPCIv74dIkjUpga9vk=; b=EPgC7pZ36xUeR48WLcxzmYMIyshWj3VCjepHzQxg88p45nWPtnVFVTv77Jn5vJDvhYN/FC4rz+ZlR+HdDipIUvssIxIoOOm37o3MAQBncZxssEc79r7fUDSXLutxI7y5; Original-Received: from dslc-082-083-057-129.pools.arcor-ip.net ([82.83.57.129] helo=spaten) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QtiPU-0006eS-La for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2011 17:52:05 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 17 Aug 2011 11:55:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50106 Archived-At: This is a very late followup to an older message from emacs-devel, regarding the issue that Emacs24 after the lexbind merge cannot run byte-compiled code from Emacs23.3 if that is using EIEIO's 'defmethod': http://thread.gmane.org/gmane.emacs.devel/138030/focus=78338 In that message Stefan Monnier says that this is considered a bug, so I'm writing this report. Also, this issue is popping up more frequently now as people are migrating to Emacs24-bzr, but still have compiled Gnus or CEDET sources with Emacs23, so I think this should be fixed before a release. Here's a recipe: * Create a file ~/eieio-test/eieio-test.el with the following contents: (require 'eieio) (defclass someclass () ((astring :initarg :astring :initform "")) "Some test class.") (defmethod somemethod ((arg someclass)) "Some method." (message "Somemethod called.")) (provide 'eieio-test) * Byte-compile the file using Emacs 23.3: emacs23 --batch -f batch-byte-compile eieio-test.el * Load Emacs24-bzr with emacs24 -Q -L ~/eieio-test and evaluate (require 'eieio-test) * The following backtrace will appear: Debugger entered--Lisp error: (void-function eieio-defmethod) (eieio-defmethod (quote somemethod) (quote (((arg someclass)) #[(arg) "\300\301!\207" [message "Somemethod called."] 2 "Some method."]))) require(eieio-test) eval((require (quote eieio-test)) nil) * Note that the following setups work: - Byte compile with Emacs23, require with Emacs23 - Byte compile with Emacs24, require with Emacs24 - Require uncompiled el-file. * This issue is occuring since the lexbind merge. Cheers, David