From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Warning on files byte-compiled with different versions Date: Fri, 19 Feb 2016 18:29:10 -0800 Message-ID: References: <87mvr7nxu4.fsf@russet.org.uk> <87pow2c956.fsf@russet.org.uk> Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455935698 1756 80.91.229.3 (20 Feb 2016 02:34:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 02:34:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 20 03:34:51 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aWxNi-0006Cd-Jv for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 03:34:50 +0100 Original-Received: from localhost ([::1]:57325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxNi-0000hg-13 for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 21:34:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxMd-0007Ow-17 for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWxMZ-0007bf-Tj for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:40 -0500 Original-Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:35155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxMZ-0007b8-Jb for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:39 -0500 Original-Received: by mail-pa0-x235.google.com with SMTP id ho8so61203194pac.2 for ; Fri, 19 Feb 2016 18:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mail-followup-to:mime-version:content-type; bh=JN8/gTE36VynMk/WfHltrjrgsr2vEZvqdMOFNImnEy4=; b=R+tXY1rA92ISYEEXTGUieCjcapiCGB6LPoYj7Om6EBA4L3Fh3a5RB8uH55jBzzzNPo xvN4zaG/Fq0smbe81Bmji8s1U6OHiPAj/X7wKVn++4EisTRqD0grqXZ3va8ENd9bzuAj xAWX+Y8mC/UvG6BW0+CQJQJ8rPxHgn4Nn4zpoInkdh+gtdR+9/NBXh6M9eiR9HzwZMM7 nzxcjM21+rUHuvf7mW7LiNxlAAPw24kSiuxPQ/wvFTSLQ4bGuOEbaMTPmh4XJXXYMLWK xt4lO9chVkLLhGgcwx6IxZnLvzMWjFiaEmDPhZqVfoY2PqStcwCt8tID7/DsvQ+8Q5kM Qgmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mail-followup-to:mime-version :content-type; bh=JN8/gTE36VynMk/WfHltrjrgsr2vEZvqdMOFNImnEy4=; b=NitC1i34O0VynEDh22Kvc9u84z/p7un5sGuDXvc5GZecNrwAOEP51QBKJlttvzIcOh cgJj8J/nqtHQ732EdTMvGCxY6uGnJNg+MC9jRtpU35l7PyOvOMD6580uFfBvYUh2N0WS RRikMKOnPIZAP+Xjd2A20ABnVZ8Z7kKKELDN4rvaTlJidLnWu94mNzseLXItNnDvMdLk Mm2jyVQKUpiZq0dyQvxT4oXLMhkNpbF7bK3ehgwWwpl2yrZfTGdOcH6gU4nByuSZhMhx 0jw0umJgUAigfZDwmtzahQb5BOVcYx2Q5fpBzMkCzwONcQeJA0d/zeiO3lNSC6Mg3cv2 hAzA== X-Gm-Message-State: AG10YORXJFxrd1cqqpotzSisgvYyyCXjWVn3gwhFaGwyKJK3CRXQd43CYicmliVCOgY6yA== X-Received: by 10.66.190.131 with SMTP id gq3mr22465834pac.42.1455935616536; Fri, 19 Feb 2016 18:33:36 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id x12sm20516756pfi.88.2016.02.19.18.33.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Feb 2016 18:33:33 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 443BB130D9B96; Fri, 19 Feb 2016 18:33:30 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sun, 14 Feb 2016 09:00:56 -0500") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200262 Archived-At: >>>>> Stefan Monnier writes: >> So, the answer is no, AFAICT. Second question, is there any reason why this >> kind of functionality could not be added? > Indeed. The byte-compiler could simply emit > `(if (< emacs-major-version ,emacs-major-version) > (message "This file was compiled for a more recent Emacs")) > at the beginning of every file. IIRC we used to do something like that. I'd personally appreciate having a warning like this, since it would let me know that part of my environment is not built the way I thought it was. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2