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: Changing a cl-defstruct definition in a published package Date: Sun, 15 Jul 2018 09:25:40 -0400 Message-ID: <285c8ce6-3cc0-a4ca-55c2-d95e68f05d22@gmail.com> References: <9afc36c6-5759-6ea0-4cd4-9d6eb6b073b5@gmail.com> <87601jx6xa.fsf@gmail.com> <8806cd3a-da5f-28da-1aa6-fff611214396@gmail.com> <33b59faf-9357-706e-2239-68411096bc51@gmail.com> <133dfba4-e6c7-3aca-a39f-4d26a688c8b5@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1531661057 468 195.159.176.226 (15 Jul 2018 13:24:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2018 13:24:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 15 15:24:13 2018 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 1feh0W-0008Pr-6G for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2018 15:24:12 +0200 Original-Received: from localhost ([::1]:45647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feh2b-0003YB-HQ for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2018 09:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feh1z-0003Y3-97 for emacs-devel@gnu.org; Sun, 15 Jul 2018 09:25:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feh1y-0004Qj-An for emacs-devel@gnu.org; Sun, 15 Jul 2018 09:25:43 -0400 Original-Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:33635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1feh1y-0004QB-5M for emacs-devel@gnu.org; Sun, 15 Jul 2018 09:25:42 -0400 Original-Received: by mail-qk0-x230.google.com with SMTP id 27-v6so6329320qkv.0 for ; Sun, 15 Jul 2018 06:25:42 -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-language:content-transfer-encoding; bh=lC/x8I8IVTraFULGyKjXamNEe9hYOWegNY5/n8Z9QRg=; b=H5IDh6qukfxpMg53sdVpzagybwEx1u9+Zt7xfSF5d0dWEQZVMDXQ2+reiuyh3h6S9z 81CMsyIJxUm8HAe5TfaO5jSdx+tOoDYt98bFVkEEJMyxRGCw/Zd71aVPF0udD1ooaUYZ h6RktBoISLPJXJxTzIjwo4l34ja4w4A3hhdwdi/scXC7k1962Eilhu9+zIR0voKEunsU y7Hkfv26lVBYIhK0hpwDDdjUpORoZa6MzTKEo84oyjLtp4xAP6Tn5UCFbsWnG2cfIVUv RRT4nheJCKlhLeI90iOVu1GQLdqMr0gs4EytMRJNPNbNE4gZBiKUxGv3nJdKzdO7aXn4 JiXg== 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-language :content-transfer-encoding; bh=lC/x8I8IVTraFULGyKjXamNEe9hYOWegNY5/n8Z9QRg=; b=r0aQE7Nm8RRTk5l6P6pbiFQU8BHMWXugz5gKMMBtpyf9C/DHsQSoniXDZUIJm7pUf5 EnW3RY8jaeGtjZdNkyu4lXz9Y/1ZCPGtmUhfLDNpKsJKRWoSgDzXunfncwsvkBIu4Q0h Oymp0IU2QLThTZOjkc5pVBn/UVgl87AyhvQRvU+n8p5x0ynCb+kgfiFvjsCVQtVcwcxI B3JBAhXvB1qoKTw8nSvxRrejaJCfB30yXK7csSyzjtQMgwS/oZ6J7+0/akE4O5R1xSA3 QSFyMcnDEUevxuLYq23j3i+vYvipywdOPceSRWHZnr7+T6NcFLHvaJ1F2Agj+F4+2z/J j8Kg== X-Gm-Message-State: AOUpUlGY73O4BTkQwGoROBEtcUGcpcij/nc901DSf8FHRqz9HNqXtKgF TTa1uX/s2sZ2+iHKOpZyYDiN/Nbe X-Google-Smtp-Source: AAOMgpcZM9YpaItBR4vaQQeZdYp3onv4LcwkodVMhH5v1RtKLFw8RvyShUTao+JeMm5SWwrygkvKRA== X-Received: by 2002:a37:8044:: with SMTP id b65-v6mr11083689qkd.347.1531661141568; Sun, 15 Jul 2018 06:25:41 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:8c91:a307:4721:dd91? ([2601:184:4180:66e7:8c91:a307:4721:dd91]) by smtp.gmail.com with ESMTPSA id z12-v6sm9411487qkf.40.2018.07.15.06.25.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 06:25:41 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::230 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:227426 Archived-At: On 2018-07-15 09:11, Stefan Monnier wrote: > Hmm... then it's going to be difficult: old UI plugins will see objects > created by the new core, and there's no much we can do at that point, > I think. :'( good point >> Is there a setting to tell cl-defstruct to not generate macros for >> constructors and accessors? > > Not currently, no. But João would also like to have such a thing. I see. That would be very neat. > Note that the recompilation issue can be solved outside of package.el: > - "recompile package" doesn't have to be in package.el (tho it is its > most natural place). > - you could have code in flycheck.el that does: > > (eval-when-compile > (dolist (pkg (find-pkgs-using-the-old-flycheck-object-layout)) > (recompile-package pkg))) > > so it will be executed when flycheck is compiled. That's a interesting idea, and a good point. But wouldn't it have to run *after* Flycheck is compiled? (Can you call the byte-compiler from code that's currently being run by the byte-compiler?) Thanks again for your help, Clément.