From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#73932: [PATCH] Add noconfirm to 'package-autoremove' Date: Tue, 5 Nov 2024 12:45:54 -0500 Message-ID: References: <2AA4E1A2-0422-40F5-BFD6-CDAE69996F1F@toadstyle.org> <864j55h0rl.fsf@gnu.org> <487C14D0-1114-49BC-996E-E3C74D17950F@toadstyle.org> <87iktfe2wr.fsf@posteo.net> <3EBD1382-E6F4-43BA-8CAA-39EAD42CC4CD@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_36E7F2CE-4B50-4BBC-B909-18EAAFBB66ED" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32965"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73932@debbugs.gnu.org To: Stefan Kangas , Philip Kaludercic , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 05 18:48:17 2024 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 1t8Nf6-0008Pb-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Nov 2024 18:48:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8Neu-0008Ji-I5; Tue, 05 Nov 2024 12:48:04 -0500 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 1t8Nes-0008JI-Pg for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2024 12:48:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8Nes-0002ka-GM for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2024 12:48:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:Date:Mime-Version:From:To:Subject; bh=HcpvOcBUfqtDumGxXx+yqxsQUcKbiup2TaWwXR8p45g=; b=n15XIqBG3b9Zm+jKhC2pKsSwo5IJL0fSrp/OGdHwKCtZiq6R1wR+WphmnmEL9NK927765Yzq48LOEeI5bckTUXLptuN1FapFgQ9M5EuOgymqA4YXxHklTZ5IzpOrSgbifKCeMdV+eANVbK9cRLkirK3HmM9GW/ByY0tdH9qrS3aAExlNKV7Leu0+MEsLeDBzcLFveLpzOjL20/fB+HslyA8VuH84GwAl8i/MFo1Tuo4L2tzzpFZV/JrjtQ2pYfngHCMtbcK7JYxpqX279B7Wt4Pi35ivKrOS0xWFSUlfkBuSe1bhEjiGTMsMSpeQj7GzITmUp5FNFnFGk8/yPEBV8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8Nes-0006i6-Bo for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2024 12:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Nov 2024 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73932-submit@debbugs.gnu.org id=B73932.173082883425787 (code B ref 73932); Tue, 05 Nov 2024 17:48:02 +0000 Original-Received: (at 73932) by debbugs.gnu.org; 5 Nov 2024 17:47:14 +0000 Original-Received: from localhost ([127.0.0.1]:44897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8Ne5-0006hr-Ia for submit@debbugs.gnu.org; Tue, 05 Nov 2024 12:47:13 -0500 Original-Received: from mail-qk1-f178.google.com ([209.85.222.178]:61505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8Ne3-0006hl-E5 for 73932@debbugs.gnu.org; Tue, 05 Nov 2024 12:47:12 -0500 Original-Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7b1488fde46so447667985a.2 for <73932@debbugs.gnu.org>; Tue, 05 Nov 2024 09:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1730828766; x=1731433566; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=HcpvOcBUfqtDumGxXx+yqxsQUcKbiup2TaWwXR8p45g=; b=eJc9+OS7LHqSafHF6usy8YOLaa4Gc7zUlv2m7qzvXv5VgLxHL83XP9DoFPGIyxtBgh eZ+V1Qm5kPSz1xaNQnn8n3yW3/9oaK1+K1AMaTgkcCfKz866JxBvtSF3VEtuggBYsghO jkScDH7YLt1mEQhNnXbLQIKlrYqA14DBa3K9NK0e3BVkbkUgWBeOqe0VGWJmI9hba0rx INGEsekcx+azrXbWUl5XzyRdRNxpvjJInp19Qz1Mh80F5kBd5ammruyI3Y/7hYevTm2m WWjKI9ImHB85edZLDCT0grYss0AzzSEdDhWSJpD0t5ldcGvB/kOHEo6OacznbRc3HTCE iixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730828766; x=1731433566; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HcpvOcBUfqtDumGxXx+yqxsQUcKbiup2TaWwXR8p45g=; b=MJDao14+Hj1ntV+kvTjmhsnp81RxQxUUBYlgPpNxkODk5b4RY0NLESjc5Z9vAMc8xi 8vj6r6PsaAkDUqEFdsrRUMvkM4P2btnWswHJZ454simccpzyZlrBgsFXGrNEDH02IaLj h+GXBfYDlzS04ONKNndYnbJCP1OM+NU2DUiWqEbEl9YUkGVySKAQfeXqsbeRLAbU1Fy/ N+BgizaP9Wy2uU4aMsKmYnr1g9M0TWPVNN/TJfn8WMiWOmHLkjIgKv02RQdHLs2v/lub SYvJoiQE8Jro4O4Cw2Obq9azAZdAzSV3EACI2ZdYUyuxRfuQ6/KCvMA60bfOWnm5OfaL m9tg== X-Gm-Message-State: AOJu0Yxkki8sylBHY4x2C1h6e2n9lXTBwXi1CiQEnF51LMIzs3C3Qi9f pyk54iiM1MMy3+otYAGILVPVqizEAZJH93R4149f4zFfk/WPB4+XAIFxqKNwkDE= X-Google-Smtp-Source: AGHT+IHKKyo7QBVY2H9eCedUipIBR11Bjnjamckgz0Ws3iMpL+k0UfDFGTT3/cfe4qJoo0fSj2k0pQ== X-Received: by 2002:a05:620a:28c6:b0:7ac:b3bf:c30b with SMTP id af79cd13be357-7b193f0a1bbmr5577691785a.32.1730828765701; Tue, 05 Nov 2024 09:46:05 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b2f39f7d21sm546588785a.30.2024.11.05.09.46.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2024 09:46:05 -0800 (PST) In-Reply-To: <3EBD1382-E6F4-43BA-8CAA-39EAD42CC4CD@toadstyle.org> X-Mailer: Apple Mail (2.3826.200.121) 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:294914 Archived-At: --Apple-Mail=_36E7F2CE-4B50-4BBC-B909-18EAAFBB66ED Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi folks, > On Oct 28, 2024, at 10:48=E2=80=AFAM, Sean Devlin = wrote: >=20 > Hi folks, >=20 >> On Oct 27, 2024, at 5:53=E2=80=AFAM, Stefan Kangas = wrote: >>=20 >> Philip Kaludercic writes: >>=20 >>> Is the variation interesting, where NOCONFIRM is a predicate so that >>> we can selectively remove packages? >>=20 >> Do you have a use case in mind? >>=20 >>>> Sure, that might make sense. If we do that, should we do the same = in package-install-selected-packages? It uses its NOCONFIRM argument in = a similar way. >>>=20 >>> We can do that in a subsequent patch. >>=20 >> Feel free to post such a patch, indeed. Thanks in advance. >=20 > Here=E2=80=99s two patches: >=20 > = <0001-Add-noconfirm-to-package-autoremove.patch><0002-Use-prefix-argument-= in-package-install-selected-pack.patch> >=20 > The first is the same as before, but it adds the prefix argument usage = Eli suggested. >=20 > The second patch adds a matching prefix argument to = package-install-selected-packages (if this is desired). >=20 > I didn=E2=80=99t implement a predicate option for NOCONFIRM yet, since = I couldn=E2=80=99t think of a use case, and the intended semantics are = not quite clear to me. >=20 > Please let me know what else is needed, and thanks! Are there any outstanding issues? If so, how can I help resolve them? Thanks!= --Apple-Mail=_36E7F2CE-4B50-4BBC-B909-18EAAFBB66ED Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi folks,

On Oct 28, 2024, at 10:48=E2=80=AFAM, Sean Devlin = <spd@toadstyle.org> wrote:

Hi folks,

On Oct 27, 2024, at 5:53=E2=80=AFAM, Stefan = Kangas <stefankangas@gmail.com> wrote:

Philip Kaludercic = <philipk@posteo.net> writes:

Is = the variation interesting, where NOCONFIRM is a predicate so that
we = can selectively remove packages?

Do you have a use = case in mind?

Sure, that might make sense. If we do that, should we do = the same in package-install-selected-packages? It uses its NOCONFIRM = argument in a similar way.

We can do that in a = subsequent patch.

Feel free to post such a patch, = indeed.  Thanks in advance.

Here=E2=80=99s two patches:

<0001-Add-noconfirm-to-= package-autoremove.patch><0002-Use-prefix-argume= nt-in-package-install-selected-pack.patch>

The first is the same as before, but it = adds the prefix argument usage Eli suggested.

The second patch adds a matching prefix = argument to package-install-selected-packages (if this is = desired).

I didn=E2=80=99t = implement a predicate option for NOCONFIRM yet, since I couldn=E2=80=99t = think of a use case, and the intended semantics are not quite clear to = me.

Please let me know what = else is needed, and thanks!

Are = there any outstanding issues? If so, how can I help resolve = them?

Thanks!
= --Apple-Mail=_36E7F2CE-4B50-4BBC-B909-18EAAFBB66ED--