From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Stability of core packages (was: Not easy at all to upgrade :core packages like Eglot) Date: Wed, 19 Apr 2023 21:37:07 +0300 Message-ID: <83lein7m7g.fsf@gnu.org> References: <87a5zj2vfo.fsf@gmail.com> <871qkom3fj.fsf@posteo.net> <83mt3b4yfc.fsf@gnu.org> <87edonlsxi.fsf@posteo.net> <83jzyf4vzb.fsf@gnu.org> <871qknllkj.fsf@posteo.net> <83fs934pjf.fsf@gnu.org> <87wn2fk47y.fsf@posteo.net> <83sfd2g2ek.fsf@gnu.org> <875y9yfxrr.fsf@gmail.com> <87y1muefks.fsf@gmail.com> <834jpifizy.fsf@gnu.org> <83y1mue1qi.fsf@gnu.org> <83sfd2e01f.fsf@gnu.org> <1a5e5837-513b-84d8-3260-cdbf42b71267@gutov.dev> <83sfcz9rf2.fsf@gnu.org> <09a49ab9-ac72-36a9-3e68-9c633710eba7@gutov.dev> <83r0sh8i1q.fsf@gnu.org> <83a5z482e3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, joaotavora@gmail.com, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 19 20:37:19 2023 Return-path: Envelope-to: ged-emacs-devel@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 1ppCgA-00019b-Oh for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Apr 2023 20:37:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppCfp-00059r-CV; Wed, 19 Apr 2023 14:36:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppCfo-00059j-Ic for emacs-devel@gnu.org; Wed, 19 Apr 2023 14:36:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppCfn-00014p-UL; Wed, 19 Apr 2023 14:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pw7PWTTBT+ysJXVkzDjRfuGICKPm7C/F93xCH3+2swQ=; b=dTwDX/qAoDOk RbHS/3UytUlPrjoHwXR7MlPu/yKaHVACIHX1Ye+nfr7kMGCzAIr4QzY/Q0XhxevH69n2nflBJr2IP HPvJgrBylVpzCKrceuWZF3tXDK7OuVopei1xXmXEGTbPSyNAPfu3orzfN1uX0hPpSF6fikjUdBU1u etIyVXTFkk07X0cd/gXfMuETHeTaaZc45pBTjOnM/tuAaH6s92sB2ca/V/bpSAF+MF6ual9N4TdzZ kJ8eITq2S5zpKKPKpbM9B1yC4r63O/W4H/YXxe7uXxdtguxwhr6gKzPZCGLKEHIdt7ZSyuQGiRZ6C cSsMrtYYNBEFnngEmABJ6w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppCfn-0007j7-2A; Wed, 19 Apr 2023 14:36:55 -0400 In-Reply-To: (message from Jim Porter on Wed, 19 Apr 2023 11:22:10 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305455 Archived-At: > Date: Wed, 19 Apr 2023 11:22:10 -0700 > Cc: joaotavora@gmail.com, emacs-devel@gnu.org > From: Jim Porter > > On 4/19/2023 5:47 AM, Eli Zaretskii wrote: > > Also, does package.el support "downgrading" to the bundled version? > > Did anyone actually try that? In particular, what happens with the > > dependencies the user upgraded together with the package being > > "uninstalled", due to the minimum requirements of that package? > > I've done this in the past and everything works pretty much as expected > from my recollection: you can uninstall a package that you got from > ELPA, so afterwards, you'd just get the bundled version (you might need > to restart; I always do). > > In addition, any automatically-installed dependent packages are marked > with the status "dependency". You can remove no-longer-needed deps via > 'package-autoremove'. When uninstalling a package interactively in the > *Packages* buffer, it will even suggest that you remove unneeded deps > when appropriate (see 'package-menu-execute'). IMO, downgrading to the bundled version should be much simpler and by default should remove all the dependencies without asking and without any need for manual user actions. In any case, I don't think this use case was considered or tried enough for us to consider it a solved issue. I'm quite sure there's more here than meets the eye, simply because this is rarely if ever done.