From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: User-defined record types, v3 Date: Tue, 4 Apr 2017 08:08:59 -0400 Message-ID: References: <86r31gh7v5.fsf@molnjunk.nocrew.org> <86k271crfj.fsf@molnjunk.nocrew.org> <86y3vgboyo.fsf@molnjunk.nocrew.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1491307822 22761 195.159.176.226 (4 Apr 2017 12:10:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 12:10:22 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 04 14:10:18 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 1cvNHo-0004fs-Af for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 14:10:12 +0200 Original-Received: from localhost ([::1]:35480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvNHq-0001G9-VW for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 08:10:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvNGk-0001EI-JO for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvNGg-0007Up-KJ for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:09:06 -0400 Original-Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:34290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvNGg-0007Ue-Fk for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:09:02 -0400 Original-Received: by mail-qk0-x232.google.com with SMTP id d10so139541022qke.1 for ; Tue, 04 Apr 2017 05:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Y/IlzIXf1sfDWmJ9F0mDY2lVZ+eS+6YIxvRK+HToxS4=; b=LJLYZH9q9s/as1giQFTBhtMmpazPdDDHTKzOWqbjnRUhsTRSb5OElN9YbM5vIfX8Cz SCGHUcNCZQxnepNpgeZ1i4u5ohEMCC6aooj/BSsFi0SziJUbIU2maI2FXap6PABBkqdN 5mVzKGGc2xChPKcW8dJv4Sp3L2DBW+5ueMYb/k7jSMctH0KutKDveMgedWvZnNqGIzXf XQRlS7paukXzJj/LzohcspB+BgH+qL/XtKzEVkyDPXqnDPgFmcjl4oIr9Au5+z2tlvDQ OXxq9alKSe+5ihl2EMHgLqjLeLNl6M6fDwrfz8Q/tShDd5D1Rcbzmr5vcpTji5kDP+ny XSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Y/IlzIXf1sfDWmJ9F0mDY2lVZ+eS+6YIxvRK+HToxS4=; b=gJdvDjKHe5FCyj8e5lr2wscxLD8CjtA8QeZbv9VgZhAsbNK6/cIAJ9k5hZJRH/umeg 7C79jxr8RsRObF93ao/GU5qYHhv27Kz+wkvVeSZCoNpI7liGc/f+iBofglyaFj4SBOY2 B98B3fJ9Tgrl2apYaWCBdv15Gvtbz4zjjDmMUa1OHUsrFRbKNGJnEmpm6jXeLqW7ql9Z B43P523dArIixxgJvz3KhVGgZ+vZ19COZX6ecRNkTAW5VwilsZeE9OjD/Dogd+eSVWuc jlTVaU2TTOsvUwbTZe8PGTpjajwEhNy6c8GXqhYg65T7IbsZ+nf/Tirzmz43ptselQkF YxfA== X-Gm-Message-State: AFeK/H3f069KkiDlveLiof8bKuUm21Ql/EiPO1sFa9+h74DQDC7dzEQe+i3KSj+76TZfww== X-Received: by 10.55.65.81 with SMTP id o78mr20712700qka.82.1491307741441; Tue, 04 Apr 2017 05:09:01 -0700 (PDT) Original-Received: from [18.189.29.195] (dhcp-18-189-29-195.dyn.MIT.EDU. [18.189.29.195]) by smtp.gmail.com with ESMTPSA id e55sm11692520qte.52.2017.04.04.05.09.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 05:09:01 -0700 (PDT) In-Reply-To: <86y3vgboyo.fsf@molnjunk.nocrew.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::232 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:213636 Archived-At: On 2017-04-04 03:40, Lars Brinkhoff wrote: > John Wiegley wrote: >> LB> John Wiegley has okayed this, so I'm planning to merge this within >> LB> 24 hours. >> So it's on the official record, I'll confirm for the list that I did OK >> this. :) > > It has been pushed. > > I'll reiterate: > >> A full boostrap build (and testsuite run) works fine. Incremental >> builds can run into problems with .elc files. To be on the safe side, >> I usually rebuild from a clean repository, but just removing all .elc >> files also seems to work. > > Also, if some .elc file (outside the repository) compiled with the old > cl-defstruct breaks, there a backward compatibility mode that can be > enabled: > > (cl-old-struct-compat-mode 1) > > If there's a need to go beoynd that, I have a patch to bump the version > of generated .elc files (the number after ;ELC), and enable backward > compatibility as soon as an old file is loaded. Is there a way for Lisp programs to read the version tag of an ELC file before loading it? Clément.