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#62720: 29.0.60; Not easy at all to upgrade :core packages like Eglot Date: Wed, 12 Apr 2023 08:58:23 +0100 Message-ID: <87h6tlleg0.fsf@gmail.com> References: <87a5zj2vfo.fsf@gmail.com> <87wn2modrm.fsf@posteo.net> <87ile6o2ov.fsf@posteo.net> <87y1mz38rl.fsf@posteo.net> <87ile2n0kn.fsf@gmail.com> <83v8i2abqi.fsf@gnu.org> <87wn2ilgx7.fsf@gmail.com> <83a5ze9uc1.fsf@gnu.org> <831qkq9rpy.fsf@gnu.org> <83pm898xb9.fsf@gnu.org> 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="20510"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: larsi@gnus.org, 62720@debbugs.gnu.org, philipk@posteo.net, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 09:57:24 2023 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 1pmVM3-00055M-84 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 09:57:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmVLj-0007Zh-Q9; Wed, 12 Apr 2023 03:57:03 -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 1pmVLi-0007ZU-HW for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmVLi-0003M3-8E for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmVLh-0002iK-LP for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:57:01 -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: Wed, 12 Apr 2023 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62720 X-GNU-PR-Package: emacs Original-Received: via spool by 62720-submit@debbugs.gnu.org id=B62720.168128618910393 (code B ref 62720); Wed, 12 Apr 2023 07:57:01 +0000 Original-Received: (at 62720) by debbugs.gnu.org; 12 Apr 2023 07:56:29 +0000 Original-Received: from localhost ([127.0.0.1]:38956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmVLA-0002hZ-HR for submit@debbugs.gnu.org; Wed, 12 Apr 2023 03:56:29 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:36587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmVL7-0002hG-4h for 62720@debbugs.gnu.org; Wed, 12 Apr 2023 03:56:27 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id eo6-20020a05600c82c600b003ee5157346cso7449742wmb.1 for <62720@debbugs.gnu.org>; Wed, 12 Apr 2023 00:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681286179; x=1683878179; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x75CyZ3LVnFslgl+JraFRwrBtueXAZQEIRT5xe+dDrA=; b=sq0xzay6ze+E0yWWxreyKgZ1rlREC0wJk77C4355L6r0JXC68A0oeCbbfCqFv8MPhJ gvMYGdlK7ssglD0rA66jqrtAGtQTvWJADD1Kah1/dzp9FSlLw+qnojdYtkazXRWMTJXE 4SRxFAxQabs46y4kW9evF1p/gA3nqBYiX8HY4lKYhOoFuScWbQqeumLjvdwlMw9mTbAJ wXUL5RA5X2kilNHq2COiQ7KLGLbFfeu1HV+29rQEgNe45pW52jG2k9H0XER9uZJTl3XH LQxUWXHeyo3Xwp+nbpOlYRAVLkEMeNlKUaoFlXf/fmG231bGFUghrkM5+6vH0KW5eVDd EBZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681286179; x=1683878179; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=x75CyZ3LVnFslgl+JraFRwrBtueXAZQEIRT5xe+dDrA=; b=d1E+0Awi/JePrSA77iY9vTbTV0RhXHHm3adeqbnyaPB7Imunw7Vh9AHLhuIVAHV2AX YgyegWewg9sJdNWZ1ki0/c7rApi7Qnt+XdaQS3LhCB4Sl8LKu4H1OFNOFe4CyOYgyPba 8JEX6mB+jLhCSCvOz3NARXyEYXYXBiw0YhI+FdHtL8D/lQJh7r2DYNJFqfXl9lvF/udD x4l/krbrmzW4+9Djpj3M7cD8Z/0/ajZfW/kFWuwO5VxZ/rl2GfL5/0VYoYbvjsKXzHGE WpsqgS/pi3l4JxaPaqQLyDKcQ8hGC2YuzC2FwYv3eJftv3gt1DgpJtl1lukQHbkwruAU W8Sg== X-Gm-Message-State: AAQBX9cjnEKXN7ry9ci+b8tHUl0GsfLW55PDcTsD5E/VfMpAEh722bjl SXUqCUcHKOxhQ0nuq0+0rJc= X-Google-Smtp-Source: AKy350b6/09oJVPGRukst9B45fjL0kFkCrk/Fp4aSkezok5VL7PJYKpPdxkFTDUZ9TbYGVeBcSWaHw== X-Received: by 2002:a7b:c44f:0:b0:3f0:9a3f:c8b5 with SMTP id l15-20020a7bc44f000000b003f09a3fc8b5mr1811405wmi.27.1681286179049; Wed, 12 Apr 2023 00:56:19 -0700 (PDT) Original-Received: from krug ([87.196.73.56]) by smtp.gmail.com with ESMTPSA id l42-20020a05600c1d2a00b003ef6988e54csm1463731wms.15.2023.04.12.00.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 00:56:18 -0700 (PDT) In-Reply-To: <83pm898xb9.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Apr 2023 08:49:14 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259708 Archived-At: Eli Zaretskii writes: >> From: Jo=C3=A3o T=C3=A1vora >> Date: Tue, 11 Apr 2023 21:08:32 +0100 >> Cc: "Philip K." , Stefan Monnier , 62720@debbugs.gnu.org,=20 >> Lars Ingebrigtsen >>=20 >> > If this change can't go into emacs-29, I think it's better to add >> > an M-x eglot-update to eglot.el. >>=20 >> That's the worst of all worlds. >>=20 >> Why? It's the safest option. Absolutely no package.el regression possibl= e, and doesn't solve a problem >> where you don't think I've exists. > > From your POV of the Eglot maintainer, it might make sense. But from > my POV, it doesn't: the problem here is general, and a solution is at > hand that will give you what you want and also support all the other > core packages. Your solution doesn't "give me what I want". If I add 'eglot-update' it will work as a single command on every Emacs version from Emacs 26.3 onwards. This new command you're proposing is for Emacs 29 only (and will presumably be deprecated soon). So "what I want(ed)" is for `M-x package-install RET eglot` to keep working smoothly as it did up to here and forever onwards. That's want many package managers do (the "install" verb upgrades, or offers to upgrade). That not being possible, I had settled for a decent working `M-x package-update RET eglot` instead. So this is "what I want": smooth user experience with no new commands or at least simple ones that don't require understanding emacs dev concepts. >> What is the problem with the two possible solutions I suggested? >>=20 >> They are incongruent and not very user friendly IMO. > > The one which proposed a new command is a natural generalization of > your eglot-update proposal, so I think it is as user-friendly as it > gets. As for congruency, Stefan just expressed his intuition about > that, and I tend to agree with him: upgrades of core packages should > indeed be handled by separate command(s) with somewhat different rules > and perhaps also a different UI. I think 'package-update-core-package' is just unfortunate, because the regular user doesn't care what the heck is core, and can you blame her? I can't stop you from adding it, of course. Have you thought how it should behave when the package is no longer a core package, i.e. has already updated? I.e. should 'package-update-core-package' update a non-core package in certain situations? If so, then we're inches away from 'M-x package-update-any-package', which is just a fixed `M-x package-update` as I proposed. If not, then it's really quite strange to have to run one command for one update and another command for the next one. I have to ask (though I can guess the answer): may I add 'eglot-update' anyway to emacs-29 as a no-brainer shortcut in the meantime? Jo=C3=A3o