From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#42316: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17374"; mail-complaints-to="usenet@ciao.gmane.io" To: 42316@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 10 23:51:12 2020 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 1ju0vG-0004Jn-BZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jul 2020 23:51:10 +0200 Original-Received: from localhost ([::1]:46040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ju0vF-0006gL-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jul 2020 17:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ju0v8-0006g0-J5 for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2020 17:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ju0v8-000603-8s for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2020 17:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ju0v8-0000IM-76 for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2020 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jul 2020 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42316 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15944178351096 (code B ref -1); Fri, 10 Jul 2020 21:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2020 21:50:35 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:182903 Archived-At: 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