From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27253: 25.2; Suggestion: On startup after Emacs version change, package should offer to correct invalid bytecode Date: Thu, 16 Jun 2022 13:50:48 +0200 Message-ID: <87r13oesiv.fsf@gnus.org> References: <87shjeo42b.fsf@moondust.localdomain> <87pmkcht9m.fsf@gnus.org> <87letxg9li.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "N. Jackson" , 27253@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 13:55:48 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1o6G-0001XU-1V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 13:55:48 +0200 Original-Received: from localhost ([::1]:41276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1o6E-00084q-CZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 07:55:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1o2c-0004vg-PD for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 07:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1o2c-0008Di-Gj for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 07:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1o2c-00007O-D7 for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 07:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2022 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 27253-submit@debbugs.gnu.org id=B27253.1655380266368 (code B ref 27253); Thu, 16 Jun 2022 11:52:02 +0000 Original-Received: (at 27253) by debbugs.gnu.org; 16 Jun 2022 11:51:06 +0000 Original-Received: from localhost ([127.0.0.1]:40900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1o1i-00005r-4I for submit@debbugs.gnu.org; Thu, 16 Jun 2022 07:51:06 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1o1g-00005E-Eo for 27253@debbugs.gnu.org; Thu, 16 Jun 2022 07:51:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YDQjgFfrxs2WkxXtlXpPuGRO3tXEgiHjHWId+YQzrnY=; b=DU+XImWxYfuJm0FP9RKRCsKYME rzYsFTjWEDXXrkHEiMJZpiQv0LKwvQhNKtWbP7oYayE8wK9g+8cGv8YbEQqmXRjYptKB0xWniWfhZ EW/fCs/kcUlIomzrHVCAK2Lpb43wmt2XaZQQVqiLYyOYZo6OaZJcCfQxdfHVu6zNy9vc=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1o1W-0006cF-6n; Thu, 16 Jun 2022 13:50:56 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEX09Nb7++Le3sFj Y1SKiXUGBgK4uJ8tLSVHRjt/f23///+3Y8xXAAAAAWJLR0QKaND0VgAAAAd0SU1FB+YGEAsfB4z7 hNwAAAGvSURBVDjLdZRNT8JAEIZnkFSOu0B65kOCV4OaeKPCL6AMcFSM0SMayxk1Gn62M7Nttwvy HnbD+7DztW0BRAbBehlr0aoPXUR7IPVbyZGvAAcMsOqhLgZvkiCHZgGIujElYNdiXDyKO5l20QCc fwwpwdcF/8tkC15aRBsQQERJnxhAk+bGIhvvknrIYEQMAPsMoJ3lQE6w5gbrmawD/jELAPsChgrQ gzijCvAn0h86AGf7PZXi5CVg/ZwCgyqQ0DNjxK+1SrBwYAduuv3CTztazBYU4EV54M2N6ApkViCN 5dpAAViR90NQd97yCIBLPb8UYKoAXl0HvKX3Wu4OKmTeNC8cEALw4nqOeetAw4M8FLQPQJ8CwOXv quWmqIAf1nP61Ak28ua2Cu57vWfadqqAftvlBN4DQNd++iHwkhvsMUjdHL9pNWJNp9MHB1ZrBR8x bSovR6+xeqhlenuRTrdUfQwKrmpxCPgW3YnuwQmpzOWI+LHxpjQJRVXLr3+BxDMBcKGk8xKg2xTc xh4UXwYBvxDprQRgMhrd8vZ0N84j5Z8MyMfA73LRG8IJ2RM+2j+QnMAKWUIZ/wAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMi0wNi0xNlQxMTozMTowNyswMDowMJg5DYQAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjItMDYtMTZUMTE6MzE6MDcrMDA6MDDpZLU4AAAAAElFTkSuQmCC X-Now-Playing: Jana Rush's _Planet Mu 25_: "Mynd Fuc" In-Reply-To: (Stefan Monnier's message of "Wed, 15 Jun 2022 13:18:29 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234626 Archived-At: Stefan Monnier writes: > There should be a command/function to recompile an installed package, > and maybe another to do the same for all packages, yes. OK; I've now added two commands for that to Emacs 29. > I don't think the OP's situation would be best served by recompiling > everything, because usually recompilation is only needed for those few > packages that were compiled a *long* time ago ( where I'd expect most > packages have probably been recompiled since then because of > package updates). > > But there's definitely room for improvement along the path of: > detecting the presence of a file that's too old, figuring out which > package needs to be recompiled, and then recompiling it. I'm not sure there's any way of doing that that would be reliable enough not to be annoying? That is, we can determine if an .elc file is readable, but we can't really detect if it's using a macro that has changed so much that the .elc file should be rebuilt... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no