From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Warning on files byte-compiled with different versions Date: Sun, 14 Feb 2016 09:00:56 -0500 Message-ID: References: <87mvr7nxu4.fsf@russet.org.uk> <87pow2c956.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455458728 4525 80.91.229.3 (14 Feb 2016 14:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2016 14:05:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 14 15:05:20 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 1aUxId-0007uY-Jo for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 15:05:19 +0100 Original-Received: from localhost ([::1]:50893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUxIZ-0002mC-K5 for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 09:05:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUxIV-0002m6-QH for emacs-devel@gnu.org; Sun, 14 Feb 2016 09:05:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUxIQ-0004Xh-Rb for emacs-devel@gnu.org; Sun, 14 Feb 2016 09:05:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUxIQ-0004WV-KY for emacs-devel@gnu.org; Sun, 14 Feb 2016 09:05:06 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aUxIN-0007pB-L0 for emacs-devel@gnu.org; Sun, 14 Feb 2016 15:05:03 +0100 Original-Received: from 23-91-130-126.cpe.pppoe.ca ([23.91.130.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Feb 2016 15:05:03 +0100 Original-Received: from monnier by 23-91-130-126.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Feb 2016 15:05:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 23-91-130-126.cpe.pppoe.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:a1iXl9KZfJwdtM4IFcLNoWYeXGo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:199926 Archived-At: > 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. Stefan