From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pieter van Oostrum Newsgroups: gmane.emacs.bugs Subject: bug#39903: 28.0.50; Feature request: another filter for Package Menu Date: Wed, 4 Mar 2020 15:53:46 +0100 Message-ID: <24159.49402.837723.45546@cochabamba.vanoostrum.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IpoZtEjYK3" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="29033"; mail-complaints-to="usenet@ciao.gmane.io" To: 39903@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 04 15:54:14 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 1j9VPZ-0007Rw-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 15:54:13 +0100 Original-Received: from localhost ([::1]:35260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9VPY-0007FQ-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 09:54:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34777) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9VPP-0007Ew-6u for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9VPO-00058p-1o for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9VPN-00058g-Uk for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9VPN-00013A-UP for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2020 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39903 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15833336364024 (code B ref -1); Wed, 04 Mar 2020 14:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Mar 2020 14:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:40537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9VPI-00012p-Dj for submit@debbugs.gnu.org; Wed, 04 Mar 2020 09:53:56 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9VPH-00012g-0y for submit@debbugs.gnu.org; Wed, 04 Mar 2020 09:53:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34729) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9VPF-0007En-OV for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:53:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9VPE-00052X-H3 for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:53:53 -0500 Original-Received: from [145.132.212.31] (port=49532 helo=cochabamba.vanoostrum.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9VPE-0004ys-24 for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:53:52 -0500 Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id BAABBAA18255 for ; Wed, 4 Mar 2020 15:53:47 +0100 (CET) X-Mailer: VM undefined under 27.0.90 (i686-apple-darwin10.0.0) X-detected-operating-system: by eggs.gnu.org: Mac OS X [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176838 Archived-At: --IpoZtEjYK3 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit This is a request for a new filter in Package Menu. Motivation: The command `package-menu-mark-upgrades' in the "*Packages*" buffer marks all packages that have new versions. Both the new versions are marked for installation (I) and the old versions for deletion (D). However, it is not so easy to inspect which packages will be affected. Currently the only simple ways are to do an `isearch' in the "*Packages*" buffer for "^[^ ]", or to do an `occur' for the same regexp. The latter gives an overview of all packages involved, but requires an indirection step to get into the "*Packages*" buffer, for example to unmark a package. The attached file adds a new command to filter the "*Packages*" buffer to show only the packages with a non-empty mark, i.e. the same as the above `occur' command would show, but then without the extra indirection. My proposal is to bind it to "/m", and to add a menu entry. This function is dependent on commit aea12d4903 (Bug#38424), which introduces other filters. Contrary to the other filters, this filter keeps the marks intact. Otherwise it would not be useful. (Other filters clear the marks, because the marks are not part of the data structure that builds the package list, but only of the representation in the buffer.) If this filter is accepted, I will make it into a full-blown patch with documentation, etc.) The current format is fit to be included in the `init' file. --IpoZtEjYK3 Content-Type: application/octet-stream; name="package-filter.el" Content-Disposition: attachment; filename="package-filter.el" Content-Transfer-Encoding: base64 KGRlZnVuIHBhY2thZ2UtbWVudS0tZmlsdGVyLW1hcmtlZCAoKQogICJGaWx0ZXIgXCIqUGFja2Fn ZXMqXCIgYnVmZmVyIGJ5IG5vbi1lbXB0eSB1cGdyYWRlIG1hcmsuClVubGlrZSBvdGhlciBmaWx0 ZXJzLCB0aGlzIGxlYXZlcyB0aGUgbWFya3MgaW50YWN0LiIKICAoaW50ZXJhY3RpdmUpCiAgKHBh Y2thZ2UtLWVuc3VyZS1wYWNrYWdlLW1lbnUtbW9kZSkKICAod2lkZW4pCiAgKGxldCAoZm91bmQt ZW50cmllcyBtYXJrIHBrZy1pZCBlbnRyeSBtYXJrcykKICAgIChzYXZlLWV4Y3Vyc2lvbgogICAg ICAoZ290by1jaGFyIChwb2ludC1taW4pKQogICAgICAod2hpbGUgKG5vdCAoZW9icCkpCiAgICAg ICAgKHNldHEgbWFyayAoY2hhci1hZnRlcikpCiAgICAgICAgKHVubGVzcyAoZXEgbWFyayA/XHMp CgkgIChzZXRxIHBrZy1pZCAodGFidWxhdGVkLWxpc3QtZ2V0LWlkKSkKICAgICAgICAgIChzZXRx IGVudHJ5IChwYWNrYWdlLW1lbnUtLXByaW50LWluZm8tc2ltcGxlIHBrZy1pZCkpCgkgIChwdXNo IGVudHJ5IGZvdW5kLWVudHJpZXMpCgkgIDs7IHJlbWVtYmVyIHRoZSBtYXJrCgkgIChwdXNoIChj b25zIHBrZy1pZCBtYXJrKSBtYXJrcykpCiAgICAgICAgKGZvcndhcmQtbGluZSkpCiAgICAgIChp ZiBmb3VuZC1lbnRyaWVzCiAgICAgICAgICAocHJvZ24KICAgICAgICAgICAgKHNldHEgdGFidWxh dGVkLWxpc3QtZW50cmllcyBmb3VuZC1lbnRyaWVzKQogICAgICAgICAgICAocGFja2FnZS1tZW51 LS1kaXNwbGF5IHQgbmlsKQoJICAgIDs7IHJlZG8gdGhlIG1hcmtzLCBidXQgd2UgbXVzdCByZW1l bWJlciB0aGUgbWFya3MhIQoJICAgIChnb3RvLWNoYXIgKHBvaW50LW1pbikpCgkgICAgKHdoaWxl IChub3QgKGVvYnApKQoJICAgICAgKHNldHEgbWFyayAoY2RyIChhc3NxICh0YWJ1bGF0ZWQtbGlz dC1nZXQtaWQpIG1hcmtzKSkpCgkgICAgICAodGFidWxhdGVkLWxpc3QtcHV0LXRhZyAoY2hhci10 by1zdHJpbmcgbWFyaykgdCkpKQoJKHVzZXItZXJyb3IgIk5vIHBhY2thZ2VzIGZvdW5kIikpKSkp CgooZXZhbC1hZnRlci1sb2FkICdwYWNrYWdlCiAgKHByb2duCiAgICAoZGVmaW5lLWtleSBwYWNr YWdlLW1lbnUtbW9kZS1tYXAgIi9tIiAncGFja2FnZS1tZW51LS1maWx0ZXItbWFya2VkKQogICAg KGVhc3ktbWVudS1hZGQtaXRlbQogICAgIHBhY2thZ2UtbWVudS1tb2RlLW1lbnUKICAgICAnKCJG aWx0ZXIgUGFja2FnZXMiKQogICAgIFsiRmlsdGVyIE1hcmtlZCIgcGFja2FnZS1tZW51LS1maWx0 ZXItbWFya2VkIDpoZWxwICJGaWx0ZXIgcGFja2FnZXMgbWFya2VkIGZvciB1cGdyYWRlIl0pKSkK Cg== --IpoZtEjYK3 Content-Type: text/plain; charset=us-ascii Content-Description: .signature Content-Transfer-Encoding: 7bit -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] --IpoZtEjYK3--