From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39436: 27.0.60; Documentaion error for package-menu-hide-package Date: Sun, 09 Feb 2020 18:50:52 +0200 Message-ID: <83imkfd7rn.fsf@gnu.org> References: <24122.56063.455926.185727@cochabamba.vanoostrum.org> <83eev5e7qh.fsf@gnu.org> <83zhdtcfpf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14042"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39436@debbugs.gnu.org To: Pieter van Oostrum , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 09 17:52:11 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 1j0poY-0003X1-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Feb 2020 17:52:10 +0100 Original-Received: from localhost ([::1]:52732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0poX-00024P-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Feb 2020 11:52:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59502) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0poR-000247-0D for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 11:52:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0poQ-0006q5-2o for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 11:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47171) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0poQ-0006pz-04 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 11:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0poP-0007jx-Um for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 11:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Feb 2020 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39436 X-GNU-PR-Package: emacs Original-Received: via spool by 39436-submit@debbugs.gnu.org id=B39436.158126707829694 (code B ref 39436); Sun, 09 Feb 2020 16:52:01 +0000 Original-Received: (at 39436) by debbugs.gnu.org; 9 Feb 2020 16:51:18 +0000 Original-Received: from localhost ([127.0.0.1]:53144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0pni-0007is-JP for submit@debbugs.gnu.org; Sun, 09 Feb 2020 11:51:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0png-0007ie-2u for 39436@debbugs.gnu.org; Sun, 09 Feb 2020 11:51:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j0pna-0006Eg-4S; Sun, 09 Feb 2020 11:51:10 -0500 Original-Received: from [176.228.60.248] (port=1953 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j0pnY-0001qo-3F; Sun, 09 Feb 2020 11:51:09 -0500 In-reply-to: (message from Pieter van Oostrum on Sun, 09 Feb 2020 17:08:08 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:175831 Archived-At: > From: Pieter van Oostrum > Cc: 39436@debbugs.gnu.org > Date: Sun, 09 Feb 2020 17:08:08 +0100 > > * lisp/emacs-lisp/package.el (package-menu-mode-menu): Correct default > regexp, so it only selects the package at point. > (Bug#39436) > --- > lisp/emacs-lisp/package.el | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el > index 64d2001646..b652dc9d6e 100644 > --- a/lisp/emacs-lisp/package.el > +++ b/lisp/emacs-lisp/package.el > @@ -3195,7 +3195,8 @@ package-menu-hide-package > (declare (interactive-only "change `package-hidden-regexps' instead.")) > (let* ((name (when (derived-mode-p 'package-menu-mode) > (concat "\\`" (regexp-quote (symbol-name (package-desc-name > - (tabulated-list-get-id))))))) > + (tabulated-list-get-id)))) > + "\\'"))) > (re (read-string "Hide packages matching regexp: " name))) > ;; Test if it is valid. > (string-match re "") Thanks! Does anyone see a reason why this change could be unsafe on the emacs-27 branch?