[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 7448834: Correct default regexp in 'package-menu-hide-package'

From: Eli Zaretskii
Subject: emacs-27 7448834: Correct default regexp in 'package-menu-hide-package'
Date: Sat, 15 Feb 2020 03:25:06 -0500 (EST)

branch: emacs-27
commit 7448834f738b243d67f0bb2c9e8b531fc64d9064
Author: Pieter van Oostrum <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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.
 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 e2eba5a..10ce195 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
+                         "\\'")))
          (re (read-string "Hide packages matching regexp: " name)))
     ;; Test if it is valid.
     (string-match re "")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]