From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter 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 14:58:40 -0700 Message-ID: <54b61415-32d9-ccc6-7709-f1e3dcb8f98f@gmail.com> References: <87a5zj2vfo.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> <35638c9d-e13f-fad8-5f95-ea03d65d4aa2@gmail.com> <87a5z3izst.fsf@web.de> <83v8hr7qk9.fsf@gnu.org> <83pm7z7nkc.fsf@gnu.org> <4b63ef62-5e1c-3dcf-ec7b-06b69e79133b@gutov.dev> <83o7nj7mfn.fsf@gnu.org> <556e0fbb-215e-c11d-0e8b-73e97441abbb@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , arne_bab@web.de, emacs-devel@gnu.org To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 19 23:59:29 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 1ppFpp-0000A0-LR for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Apr 2023 23:59:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppFpJ-0005tL-26; Wed, 19 Apr 2023 17:58: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 1ppFpH-0005tB-K5 for emacs-devel@gnu.org; Wed, 19 Apr 2023 17:58:55 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppFpD-0000I6-P1; Wed, 19 Apr 2023 17:58:55 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-246f856d751so193758a91.0; Wed, 19 Apr 2023 14:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681941521; x=1684533521; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=W30zKaxcoWRlWFgZ8M3cJbc2xbyDcNSoepAuLCO6I9M=; b=n6dF3CxhcXhVTf8eA/+exVxHnSnDxhnsKvC491Ty94GCbfzzxTJo6ZGBVwnMDgP0QE ileM6M3nLlzfXtBxCZV+t5NYXZ7Nct3Y4IhHphEgRtbT3pfUwVUevT3CTz+Wj5E/oxXI UMQoZgvbTFsaLdnS9xdTAxQfHFGEYja1hh7AjNaf7XDtV0ux2ZQ7DWaQE7nujRk9j0Y7 3uoq2GN3X29O2yAmZlpiEXRYSV8a9dR9toeavNmkXFl9BnV8KAI80IwgO4cJKIavpWB5 lX8oaFjffa6i/N+xAYADRq3HelRDZ5Jf4wkCevx6eSmnOc2JfnmIi2m19nWdsFYfyvpv MMVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681941521; x=1684533521; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W30zKaxcoWRlWFgZ8M3cJbc2xbyDcNSoepAuLCO6I9M=; b=c/Z6zHMTM0UbveurOvyzOxZG/wawwSR+X2WV/EURU9yNRc4vQkj9D5F6Ed3QqGNo3D SQUZATg3x9JAYl1PwJA1cKjJK6+YXfw/Gkl6U9mKM0jPus43oSyzHM7N4VKnpBDNMIW1 hCQAuGLQYtPGCAKpzb0iOBNr7R2ya5ubYdENfHizgdvxbQZzeG8BpYWUHTNJKgbmHVY0 LpXQ7z+bf/nqyemhxVc1P8CKVFiI+sE6EyD7daQKIXifLrT1H4DsZPY9q4Gt+UEycJb7 WSr3pyslPyKSSJJMdvcJCiscqjYjZxEm+FQapcTlZIUj4Nryf4PQdpv6iS1MdmFoPLce x5eQ== X-Gm-Message-State: AAQBX9e3HBvEJPNi/rxVEPRaNCs0oM1QClPxz1jgv7AFZN+Ag6jKKB6g KYmWpLXS6nuSklM6aZHGznM= X-Google-Smtp-Source: AKy350YIlQMyweZtAE5f2Ru1/UU+NhMNyK7nCor0pFarJwGaOXwKz/UsSDqC3FQSm2MzjsC+SgZbzg== X-Received: by 2002:a17:90b:1e04:b0:240:f8a6:55c7 with SMTP id pg4-20020a17090b1e0400b00240f8a655c7mr4165685pjb.20.1681941521180; Wed, 19 Apr 2023 14:58:41 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id h9-20020a17090a2ec900b00230b8431323sm1835948pjs.30.2023.04.19.14.58.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 14:58:40 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1030.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:305467 Archived-At: On 4/19/2023 1:57 PM, João Távora wrote: > But that doesn't change anything. In Emacs 26/27/28 from scratch > package-install and use-package _will_ rev up Eglot to whatever is the > newest version. In Emacs 29 it won't. But in that case, the user simply ends up with, at best, whatever version of Eglot was current at the time they ran Emacs with their config for the first time on that machine. The status quo is already that users are likely on an older version of Eglot, unless they wipe their elpa/ directory regularly (which seems an awkward way to update your packages to me). > In fact deleting Eglot and restarting Emacs the config run again is what > I suppose the most common upgrade method (since there is no > package-update in Emacs 28). As mentioned elsewhere in this thread, I just use the *Packages* buffer and 'package-menu-mark-upgrades' (bound to "U"). That works on older Emacsen too. In 29, 'package-update' would make it easier to update a single package though, and 'package-update-all' provides a programmatic way to do what I do interactively in 28. (Though now I wonder why we use both "update" and "upgrade"...) > Other than that, think CI scripts, dockerfiles, VMs, or just the > casual user who trashes the packages dir to get a fresh set when > looking for a bug (like I do, and multiple people I've interacted with). If a user hasn't done anything to specify the release channel they want, then I think the current behavior is correct. "(package-install 'eglot)" just means "make sure I have Eglot". However, if the user pinned Eglot to GNU ELPA, I think it would make some sense for 'package-install' to install Eglot from GNU ELPA (i.e. it now means "make sure I have Eglot *from GNU ELPA*"). I know this isn't automatic; a user would need to pin Eglot to GNU ELPA to get this behavior, but it's fairly easy to do. use-package already supports pinning as well. We'd just need to tweak 'package-install' and 'use-package :ensure' to handle pinning as described above.