From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Olson Newsgroups: gmane.emacs.devel Subject: Re: package.el: bytecode portability across emacs versions Date: Tue, 29 May 2007 20:44:38 -0400 Message-ID: <87wsyrxhqh.fsf@hariken.mwolson.org> References: <20070521134747.GA14137@baal.lan> <85veemdp3s.fsf@lola.goethe.zz> <20070522001139.GA11896@baal.lan> <85tztyrfgu.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1438517223==" X-Trace: sea.gmane.org 1180487430 28390 80.91.229.12 (30 May 2007 01:10:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 May 2007 01:10:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 30 03:10:29 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HtChj-0008Tf-M1 for ged-emacs-devel@m.gmane.org; Wed, 30 May 2007 03:10:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtChi-00030D-WF for ged-emacs-devel@m.gmane.org; Tue, 29 May 2007 21:10:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HtChf-000308-Me for emacs-devel@gnu.org; Tue, 29 May 2007 21:10:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HtChe-0002zw-5O for emacs-devel@gnu.org; Tue, 29 May 2007 21:10:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtChe-0002zt-17 for emacs-devel@gnu.org; Tue, 29 May 2007 21:10:18 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HtChd-0002QT-69 for emacs-devel@gnu.org; Tue, 29 May 2007 21:10:17 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HtChO-0007F8-EZ for emacs-devel@gnu.org; Wed, 30 May 2007 03:10:03 +0200 Original-Received: from jpi-wlafyte-212-116.dmisinetworks.net ([66.253.212.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2007 03:10:02 +0200 Original-Received: from mwolson by jpi-wlafyte-212-116.dmisinetworks.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2007 03:10:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: jpi-wlafyte-212-116.dmisinetworks.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.98 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU1QytIVTlZY0dqc1N6 hGGJl3qZpZCtuKXsjxzFAAACW0lEQVR42l2UXXrqIBCGk67Aoe29Ac4CTPDcGwZ73wLdQDOuQLP9 8wHG9hT1Mc6bb/5jp7Xed92TVrqeCYfKRVc+XdfDbqbJ8TixG1UDu2a3xkf2H+z+A6Qn7Xk71AA8 kdJmZg4xpcTshgr2JQSurAswhwDFYQN9r4yxx1BIQqBTBbvqahw9hxRSLOBdFVA89TTOvgSoMaLf ABTWOg5Z8lLRNyD7x4WSVHU1DZurThn2HI9Oa561JhTSDUWxq64YqRlmrcdhA73y3rmJY1okotDT NzDO2XNGZPnS7A4b6NQ8foQFN2eJmEBR7Du1Q/DRh7R4O50BrGmu0F8i49Iya+ScvtDNqkADB8zD pwU9wTu9c8msdNYOO0JvYYyREd9xBOh7zS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GSfQXQbeo41lyEzzf7gHGvSGe764gH6IMwCPGz2Bc6v5zH/AZe+KEbUzWsyO TIPnQk19APFd1eiYZj4XAl0190dm79g0q+ExMF4UkvbIBOiFYSiTR/bI0Hp/ThSp25ahS9lb8JmQ im11O4SEYHQsYqK0LKPbCINeJaJAsqbRbYs7LGhFRRYgmWVs4xg7aoeKQggMectK41iZgUxRJq7c H2Mcq236cJQpZmSCgWow6dngTywoSkGB8piImBekFfwGnCDfe9Nk05YAAAAASUVORK5CYII= Cancel-Lock: sha1:U1wtap0+HS0KkhW9QP0CfUsm7rw= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71974 Archived-At: --===============1438517223== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable David Kastrup writes: > Richard Stallman writes: > >> I know that sharing bytecode is bad. I just didn't know what to do >> about it. >> >> You could put the bytecode in >> /usr/local/share/emacs/VERSION/site-lisp, which is a standard element >> of load-path, version-specific. The source code could go in >> /usr/local/share/emacs/site-lisp. If package.el finds the source >> code and not the binary, it can compile for the current Emacs version. > > Emacs is not well-equipped to have source and byte code in different > directories. For example, it messes with the load path order: Emacs > will prefer loading an .el file in an earlier place in the load-path > over a .elc file in a later place. > > It also stops byte-recompile-directory from working and makes > list-load-path-shadow complain. > > I don't say that such a system could not be supported, but it would > need code changes outside of package.el itself. If you put symlinks to the source files in the same directory as the byte-compiled files (or just copy them there), and don't include the version-independent directory in load-path, there is no problem (to the best of my knowledge). I'm trying to get something to this effect added to the Debian Emacs packaging policy, but the policy-makers are rather slow. =2D-=20 Michael Olson -- FSF Associate Member #652 | http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net | /` |\ | | | Sysadmin -- Hobbies: Lisp, GP2X, HCoop | |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner | --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGXMj4+1Ho2POo0xkRAoaLAKCfI8QOEh2uripZoRCfksHfmqzfOgCgosR0 ehmr7+oFmCz4YGUPO5KAcyA= =9iey -----END PGP SIGNATURE----- --=-=-=-- --===============1438517223== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1438517223==--