From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Byte-compiled elisp libraries on different platforms Date: Thu, 20 Nov 2008 10:29:38 -0800 Message-ID: <000f01c94b3d$f324c010$c2b22382@us.oracle.com> References: <20081120104754.GE6811@groll.co.za> <010201c94b34$281dbd30$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227205818 18222 80.91.229.12 (20 Nov 2008 18:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2008 18:30:18 +0000 (UTC) Cc: 'Jonathan Groll' , 'GnuEmacs Help' To: "'Juanma Barranquero'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 19:31:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L3EJA-0005E1-IO for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Nov 2008 19:31:17 +0100 Original-Received: from localhost ([127.0.0.1]:49294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3EI1-0003Xh-Ad for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Nov 2008 13:30:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3EHj-0003XS-Up for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 13:29:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3EHh-0003XA-Fs for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 13:29:46 -0500 Original-Received: from [199.232.76.173] (port=47331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3EHh-0003X5-B7 for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 13:29:45 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:59632) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3EHg-0003wW-VU for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 13:29:45 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAKIUIQM028899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Nov 2008 18:30:19 GMT Original-Received: from acsmt704.oracle.com (acsmt704.oracle.com [141.146.40.82]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAKITgCP019633; Thu, 20 Nov 2008 18:29:43 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 20 Nov 2008 10:29:36 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AclLOv/itBkcT7VwTIe5dpjveImxyQAAfk/g In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt704.oracle.com [141.146.40.82] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4925AC92.0114:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59974 Archived-At: > > I don't agree about the last part. I have come across > > things that do not work in Emacs 23 if byte-compiled > > with Emacs 22 (and vice versa). > > I was talking only about 22 -> 23, not the other way around. Me too (that's what I said). And I mentioned both directions - I've seen problems in both directions. > And of course you can have code that does fail, in subtle or not so > subtle ways. If it does not satisfy the expectations of 23.X > (functions with different parameter profiles, macros whose semantics > has changed, whatever), for example. The only real way to have 100% > compatibility is compiling the .el files with the Emacs release you're > going to use them. Agreed. > That said, most of the time .elc files generated with 22.X work fine > with 23.X Emacs. Most, yes, probably. The byte-compiler changes probably affect only a minority of code in incompatible ways. But it's enough. ;-) > > In general, I believe, Emacs has always been > > platform-independent wrt byte-compiled code, > > Yes. But as stated above, whether a .elc file from one Emacs works in > another Emacs is not (just) about byte-code. Agreed. But if the uncompiled code works on two different platforms, then so should the byte-compiled code (compiled with the same release #). > Of course byte-code must be compatible, or you're liable to crash Emacs. Yup.