From: Pieter van Oostrum Date: Sun, 9 Feb 2020 15:55:29 +0000 (+0100) Subject: Correct default regexp in 'package-menu-hide-package' X-Git-Tag: emacs-27.0.90~49 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7448834f73;p=emacs.git Correct default regexp in 'package-menu-hide-package' * lisp/emacs-lisp/package.el (package-menu-mode-menu): Correct default regexp, so it only selects the package at point. (Bug#39436) --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e2eba5afe11..10ce19525a0 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -3194,7 +3194,8 @@ The default regexp will hide only the package whose name is at point." (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 "")