]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct default regexp in 'package-menu-hide-package'
authorPieter van Oostrum <pieter@vanoostrum.org>
Sun, 9 Feb 2020 15:55:29 +0000 (16:55 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 Feb 2020 08:23:21 +0000 (10:23 +0200)
* 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

index e2eba5afe11f7918b664095b07a74405f9701e80..10ce19525a078e57779fa016c4e2c88bac2bb090 100644 (file)
@@ -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 "")