From unknown Sun Jun 15 08:42:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42316 <42316@debbugs.gnu.org> To: bug#42316 <42316@debbugs.gnu.org> Subject: Status: 28.0.50; package.el has trouble reloading and activating GNU ELPA :core packages Reply-To: bug#42316 <42316@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:42:55 +0000 retitle 42316 28.0.50; package.el has trouble reloading and activating GNU = ELPA :core packages reassign 42316 emacs submitter 42316 Jo=C3=A3o T=C3=A1vora severity 42316 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 17:50:34 2020 Received: (at submit) by debbugs.gnu.org; 10 Jul 2020 21:50:35 +0000 Received: from localhost ([127.0.0.1]:43599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ju0ug-0000Hb-Jo for submit@debbugs.gnu.org; Fri, 10 Jul 2020 17:50:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:33480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ju0ue-0000HT-1f for submit@debbugs.gnu.org; Fri, 10 Jul 2020 17:50:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ju0ud-0006cM-NA for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2020 17:50:31 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:40920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ju0uc-0005uY-3k for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2020 17:50:31 -0400 Received: by mail-wr1-x42d.google.com with SMTP id f2so7268668wrp.7 for ; Fri, 10 Jul 2020 14:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=i9bLRBT6su6CWW241u2Etr7LkyjDQ8GRKeukc6XPhHU=; b=kZDgHB+dDd251u+rVY+b6fcxR225v3CQW7BmBpX6XwyEE4i2BumWhk2BHoh5gBlU2G Cz/f48/5S+sAPsbzZnlSsoX5ZBLytfU0gJTPxJf/81duZXK2ZxXX5SuNbl/7Gx4uhsxZ zIhWPEAHFqrTG2lm+p/aCGfoElp8T/nnHnlOkTpAFomcM/92ZwZP19CPFvLEJeA/oRVX ksOv/y5S54KeMYsajtWTbuDq7ab1n5h74bEQCnpsLjLq9dWND1xsUor8YIg+PKQSf7yU uY6to2vu9kL3YUXvmMWK/OMXqhcRS/WzbE68K5Pj0KG0O6uw1XRILullNBLp6DgHi/ts fFjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=i9bLRBT6su6CWW241u2Etr7LkyjDQ8GRKeukc6XPhHU=; b=OTaXc8K84qOWaJMNw9vZknTkjWR4pOE7dhaEEiopIyVNskw/rQ/6ynjC2QIP7OM5gb kZAE3yW+k1AIo89iL0c6bFvGbWLDH4eM2BL8R/w6iEbMbisM/I2LS4v8S4I7r4Tl1283 lDt2DaneNMTtzPiTlmzCY9NId2FMe3FhIJL0gJIi1/TvUPLJILBe5SnFDxEyrfnR8GHI 11PkxJ4S6GfVMFeEO2Gk5YZK0lRqxWGTs2dS3BCMtzv8W1OSdbKNBWOlekuwkWAaB99n WsN16rV4uWzkotdjQeL3IfyegQUcakU3E7hLwHzE8xAvEc0G7LoUQiMlHSUe8P2bkyf2 siQg== X-Gm-Message-State: AOAM530YnVJVn2owjaPiiuQhTRANo8y2lmfU9Ou2buTLQoR9JmDI30dR I0d1SHCQtnGE7AfZj2ugPTvR8fw0 X-Google-Smtp-Source: ABdhPJxbkwGKZcPAKJOXytl1MWkzPXdqAm1avkAnAQ886aBmRt1RTu3PtK1UG77O6TZa1xSnJKEATQ== X-Received: by 2002:a5d:4d0b:: with SMTP id z11mr39579626wrt.24.1594417828273; Fri, 10 Jul 2020 14:50:28 -0700 (PDT) Received: from krug ([2001:818:d820:9500:824a:171:15a:2213]) by smtp.gmail.com with ESMTPSA id h5sm13227428wrc.97.2020.07.10.14.50.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 14:50:27 -0700 (PDT) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: bug-gnu-emacs@gnu.org Subject: 28.0.50; package.el has trouble reloading and activating GNU ELPA :core packages Date: Fri, 10 Jul 2020 22:50:26 +0100 Message-ID: <87eepjdopp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x42d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Stefan Monnier writes: >> 1. when you `package-install` the new eldoc 1.2.0 package in Emacs 26.3 >> for the first time, it just compiles it, it doesn't load it. We had >> witnessed this with Flymake too, remember? > > `package-install` is not supposed to "load" the package (it installs > it, activates it, and compiles it). But yes, it is also supposed to > *reload* already loaded files (right before compiling), so it looks like > there might be a bug somewhere. > > You might want to trace through `package--load-files-for-activation` to > see why eldoc.el is not reloaded even though it should be in > `load-history`. > >> 2. When you shut down that Emacs session, start it again, run >> package-initialize, you _still_ don't have the new eldoc.el file >> (1.2.0) loaded. This is only for eldoc.el, flymake.el works >> correctly in this use case. > > Yes, this is because it's preloaded in Emacs, so when package.el comes > to activate the package, the autoloads in `eldoc-autoloads.el` won't have= any > effect because all its functions are already defined (since `eldoc.el` > is already loaded). > > This is not a really bug in package.el but arguably a missing feature, > indeed. When `package-activate-all` is called, it should probably > reload all packages that were already loaded before (when the version > already loaded is different from the one that's just been activated). Sounds reasonable. But can these changes ever reach Emacs 26.3? How? Only by updating package.el itself, right? Is that possible? I'm afraid I don't have time to do either of those things, right now, so I'm just going to hack it in Eglot, for now. But I'm also reporting this as a bug, so we can track it. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 25 04:43:16 2020 Received: (at 42316) by debbugs.gnu.org; 25 Nov 2020 09:43:16 +0000 Received: from localhost ([127.0.0.1]:34401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khrKN-0002cC-JW for submit@debbugs.gnu.org; Wed, 25 Nov 2020 04:43:16 -0500 Received: from mail-ej1-f44.google.com ([209.85.218.44]:43487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khrKL-0002bf-Om for 42316@debbugs.gnu.org; Wed, 25 Nov 2020 04:43:06 -0500 Received: by mail-ej1-f44.google.com with SMTP id k27so2055452ejs.10 for <42316@debbugs.gnu.org>; Wed, 25 Nov 2020 01:43:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=WIjN5iDpzOllKaPNFJ/z0usycG2H/TLERDOpF0hxyc8=; b=YI8jn+RSdd3g/Xep+kJSh3J5F2bYjpP4uBUWEcWNmwGsXJaLQCiETz3aIwUkeubfnf Gekmn2HHxKySpshhoq2oDBQFXkJd5uA32nNYeknxaikWPgrm7dhLMFC+HV1SrTlccQ0C b23hoYDBoZZYQ7n7B8MGoqOMsCb1MQbW+KQ+nU5yPukwaWoDwQgdKNjKG00i6inGa6r+ YUYkDPJ+B84cZ2B2DykuWHMYYJND5o492kO9a93OHk3J8M2G654R+cq+BUfyOa3Kq/wf hdK6q5zuwb5Eibglm3okNAx8A3tOQ5CN23Q9LPPA8un5xdjMBClHFP6xcln5wixklwQc trag== X-Gm-Message-State: AOAM531v11nh7gJIljbK9FzCAeavIma4pRfr1na3ladrR8ofx3YwS3Jj PYj9QwgZotgiHDSJLFUF/3GI79kJNg1q4KMZNBg= X-Google-Smtp-Source: ABdhPJxnvW2FTmW91SqUFshBZB4MCNnFJg3K3MPzb8qaqCmsAJeibFqhAUOaUpc+bOuUN8D/EJ7D0Mlet1lAY+xfTwY= X-Received: by 2002:a17:906:1918:: with SMTP id a24mr2355553eje.432.1606297379821; Wed, 25 Nov 2020 01:42:59 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Nov 2020 01:42:59 -0800 From: Stefan Kangas In-Reply-To: =?UTF-8?B?PDg3ZWVwamRvcHAuZnNmQGdtYWlsLmNvbT4gKCJKb8OjbyBUw6F2b3JhIidzIG1l?= =?UTF-8?B?c3NhZ2Ugb2YgIkZyaSwgMTAgSnVsIDIwMjAgMjI6NTA6MjYgKzAxMDAiKQ==?= References: <87eepjdopp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 25 Nov 2020 01:42:59 -0800 Message-ID: Subject: Re: bug#42316: 28.0.50; package.el has trouble reloading and activating GNU ELPA :core packages To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 42316 Cc: 42316@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Jo=C3=A3o T=C3=A1vora writes: > Stefan Monnier writes: > >>> 2. When you shut down that Emacs session, start it again, run >>> package-initialize, you _still_ don't have the new eldoc.el file >>> (1.2.0) loaded. This is only for eldoc.el, flymake.el works >>> correctly in this use case. >> >> Yes, this is because it's preloaded in Emacs, so when package.el comes >> to activate the package, the autoloads in `eldoc-autoloads.el` won't hav= e any >> effect because all its functions are already defined (since `eldoc.el` >> is already loaded). >> >> This is not a really bug in package.el but arguably a missing feature, >> indeed. When `package-activate-all` is called, it should probably >> reload all packages that were already loaded before (when the version >> already loaded is different from the one that's just been activated). Is this the same as Bug#40971? > Sounds reasonable. But can these changes ever reach Emacs 26.3? How? > Only by updating package.el itself, right? Is that possible? I guess if we make package.el into a :core package. But then again we will have the same bug on Emacs 26.3, so it will never be loaded...