From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Compiled code in Emacs-26 will fail in Emacs-25 if use pcase [was: Add new bytecode op `switch' for implementing branch tables.] Date: Thu, 23 Feb 2017 10:10:27 -0500 Message-ID: References: <1b07c68a-873e-83c8-246d-423bc83a3881@gmail.com> <83y3xg4ldw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487862713 23750 195.159.176.226 (23 Feb 2017 15:11:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 15:11:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: cpitclaudel@gmail.com, Emacs developers , Eli Zaretskii , Vibhav Pant , Tino Calancha To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 23 16:11:47 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgv3a-0005Sy-Tq for ged-emacs-devel@m.gmane.org; Thu, 23 Feb 2017 16:11:47 +0100 Original-Received: from localhost ([::1]:59241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgv3g-0001ID-FV for ged-emacs-devel@m.gmane.org; Thu, 23 Feb 2017 10:11:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgv2Q-00017F-9X for emacs-devel@gnu.org; Thu, 23 Feb 2017 10:10:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgv2P-0004RZ-I6 for emacs-devel@gnu.org; Thu, 23 Feb 2017 10:10:34 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:23541) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgv2K-0004Qc-UY; Thu, 23 Feb 2017 10:10:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C+BADl+q5Y/5iQSC1dGgEBAQECAQEBAQgBAQEBg1BBhDaLSJBpKQGXF4YcBAICgx9EFAECAQEBAQEBAWIohHEBBAFWIwULCzQHCxQYDSSKAAiwL4tDAQEIAiaLO4o5BZBMi0icWoZbkyg2IYEAIRQILIU/gWYii3sBAQE X-IPAS-Result: A0C+BADl+q5Y/5iQSC1dGgEBAQECAQEBAQgBAQEBg1BBhDaLSJBpKQGXF4YcBAICgx9EFAECAQEBAQEBAWIohHEBBAFWIwULCzQHCxQYDSSKAAiwL4tDAQEIAiaLO4o5BZBMi0icWoZbkyg2IYEAIRQILIU/gWYii3sBAQE X-IronPort-AV: E=Sophos;i="5.35,198,1484024400"; d="scan'208";a="293608044" Original-Received: from 45-72-144-152.cpe.teksavvy.com (HELO pastel.home) ([45.72.144.152]) by smtp.teksavvy.com with ESMTP; 23 Feb 2017 10:10:28 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 41DA66570F; Thu, 23 Feb 2017 10:10:27 -0500 (EST) In-Reply-To: (Kaushal Modi's message of "Thu, 23 Feb 2017 14:33:42 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212547 Archived-At: > I have this in my emacs config for a while now. > It works pretty well. It also allows you to use an older emacs version > without have to mess up the compiled elpa dir of the current version. The > only side-effect is that when switching major versions the package > updates/installs will happen independently. > > (setq package-user-dir (format "%selpa_%s/" > user-emacs-directory emacs-major-version)) If it works for you, that's great. Personally I'd find it annoying to have a different set of installed packages per Emacs version. I hope Emacs can slowly move toward a model where Elisp is byte-compiled automatically and kept in a version-specific place (call it a cache) so users don't have to know about bytecode compatibility issues. Stefan