From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marcin =?UTF-8?Q?W=C5=82odarczak?= Newsgroups: gmane.emacs.bugs Subject: bug#41436: 26.1; How to list upgradable packages only Date: Sun, 23 Aug 2020 18:16:00 +0200 Message-ID: <87v9h99w3j.fsf@trurl> References: <878shlcrrc.fsf@biologica> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41436@debbugs.gnu.org To: Eduardo Mercovich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 23 18:17:17 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 1k9sgG-0009oa-M0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Aug 2020 18:17:16 +0200 Original-Received: from localhost ([::1]:53458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9sgF-00060m-HQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Aug 2020 12:17:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9sg2-00060d-Dx for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2020 12:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9sg2-0000wi-4j for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2020 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9sg2-0006dt-0D for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2020 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin =?UTF-8?Q?W=C5=82odarczak?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Aug 2020 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41436 X-GNU-PR-Package: emacs Original-Received: via spool by 41436-submit@debbugs.gnu.org id=B41436.159819937225473 (code B ref 41436); Sun, 23 Aug 2020 16:17:01 +0000 Original-Received: (at 41436) by debbugs.gnu.org; 23 Aug 2020 16:16:12 +0000 Original-Received: from localhost ([127.0.0.1]:54963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9sfE-0006cn-Fp for submit@debbugs.gnu.org; Sun, 23 Aug 2020 12:16:12 -0400 Original-Received: from mx.kolabnow.com ([95.128.36.42]:39542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9sfC-0006cT-BW for 41436@debbugs.gnu.org; Sun, 23 Aug 2020 12:16:11 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 31711874; Sun, 23 Aug 2020 18:16:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received:received; s=dkim20160331; t=1598199363; x=1600013764; bh=yJz2AvjK73mvm4OPw3D1Wp9y+U30Sfae1xX8Y6paL/k=; b=eCXze/piTTrO IfO7ISolb3ZV6HM5bNBGdUK2aCZjPuhhG7HOSea/A/ZVdpV/KzXIKvDfro58we9a 0b89RRoyUlaEzhN+S1C59osoYLEyk1rqnxv5pGl6Upw2vM/0n8aFkbjlJycd41PV gK38vDY4yLLDzpNW+XACzUVkAX2XIQ/3Y3OpVHSTn8BN7Ln9pbrby1SZGiR35LVD TmnaF0TsQvlttTaznCAjWbOVF2JtF/AMOb9UKe7k5aUe5crNybuES+Bx4vYSwMn4 lbi+XV0r0ONcGqK69wWuBvdbQLM/7comn3PF4GSi3Rz1LuwwYyd5xYhNukv7+lLs /KBi6/lBWv2B6fzf6wQV9/6XIBOvbBAWsBJZ/r7vHpr0sYBxULhaSAJ0V5k7CQpV y7kFK6Dly4+mKgtGvhQXDTEkHQvhb+uIQLE4bvP8XadB+7ks6y91skXKRMuCTYRd DZyXKGJupSfhcf2T7i+Qy3RmHO5tG+1nvuTSvunchL641Fglu+fPT49lSQc77O9b P7MWZMwaLSZNNj37SbrMGz0p38u/A+GJD+wKjksVxo5uqMl X-Virus-Scanned: amavisd-new at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gcDC2Xe8evcJ; Sun, 23 Aug 2020 18:16:03 +0200 (CEST) Original-Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 2531E513; Sun, 23 Aug 2020 18:16:01 +0200 (CEST) Original-Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id BB89F2BA9; Sun, 23 Aug 2020 18:16:01 +0200 (CEST) In-Reply-To: <878shlcrrc.fsf@biologica> (Eduardo Mercovich's message of "Thu, 21 May 2020 11:00:23 -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" Xref: news.gmane.io gmane.emacs.bugs:186061 Archived-At: Eduardo Mercovich writes: > > Upon refreshing the repos, the emacs package manager (PM) tells us > if/how many packages we have to upgrade. With U we can mark them all, > and with X let the PM do it's job (uninstall old versions, install the > new ones). Up to here, everything is great. > > However, being a rookie, I' afraid of upgrading 28 packages at once > since some things may break, so I prefer to upgrade them in small groups > in a more controlled way. > > But, for my life, even after quite some searching and reading I can't > find how to filter the list by that status (the command > package-menu-filter does something different or I don't understand how > to use it for this), so I can see only the packages that can be > upgraded. With that list in front of me, I can pick which ones to > upgrade, slowly and in a more controlled path. I too think such a feature would be useful. The following would get us part of the way but it has two problems: 1. It lists both the installed packages and the upgrade candidates. 2. As far as I can see, there is no mechanism for marking individual packages for upgrading. As a matter of fact, I think an even more general filtering mechanism would be useful, which would allow us to show, say, all installed packages or all dependencies, etc. but it does indeed seem that at the moment only keyword filtering is supported. I could try to add it if people think this makes sense. (defun package-menu-show-upgradable () (interactive) (let ((upgrades (mapcar 'car (package-menu--find-upgrades)))) (package-show-package-list upgrades)))