summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2020-03-18 07:50:36 -0700
committerGlenn Morris <rgm@gnu.org>2020-03-18 07:50:36 -0700
commit45630d02527e44de3153d09c8590d3f796c5dada (patch)
treeb2c05fe2347a78e42dd4a5cf2380af833fb0105e /lisp/emacs-lisp
parent299744e083342e43deece03bc0691feb190ccc54 (diff)
parent3a8a231810d3380889bda5034f4d9e995d82b0b7 (diff)
downloademacs-45630d02527e44de3153d09c8590d3f796c5dada.tar.gz
emacs-45630d02527e44de3153d09c8590d3f796c5dada.tar.bz2
emacs-45630d02527e44de3153d09c8590d3f796c5dada.zip
Merge from origin/emacs-27
3a8a231810 * lisp/textmodes/fill.el (fill-nobreak-predicate): Fix doc... cbe643104d Improve Package Menu hiding docstrings 8d28c98ae0 Fix display of Big5 characters when using Fontconfig
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package.el20
1 files changed, 16 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 07d63b3a7dc..f5a9055b5b7 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2861,7 +2861,11 @@ Can be toggled with \\<package-menu-mode-map> \\[package-menu-toggle-hiding].
Installed obsolete packages are always displayed.")
(defun package-menu-toggle-hiding ()
- "In Package Menu, toggle visibility of obsolete available packages."
+ "In Package Menu, toggle visibility of obsolete available packages.
+
+Also hide packages whose name matches a regexp in user option
+`package-hidden-regexps' (a list). To add regexps to this list,
+use `package-menu-hide-package'."
(interactive)
(package--ensure-package-menu-mode)
(setq package-menu--hide-packages
@@ -3191,8 +3195,16 @@ function. The args ARG and NOCONFIRM, passed from
(defun package-menu-hide-package ()
"Hide in Package Menu packages that match a regexp.
-Prompts for the regexp to match against package names.
-The default regexp will hide only the package whose name is at point."
+Prompt for the regexp to match against package names.
+The default regexp will hide only the package whose name is at point.
+
+The regexp is added to the list in the user option
+`package-hidden-regexps' and saved for future sessions.
+
+To unhide a package, type
+`\\[customize-variable] RET package-hidden-regexps'.
+
+Type \\[package-menu-toggle-hiding] to toggle package hiding."
(interactive)
(package--ensure-package-menu-mode)
(declare (interactive-only "change `package-hidden-regexps' instead."))
@@ -3211,7 +3223,7 @@ The default regexp will hide only the package whose name is at point."
package-archive-contents)))
(message "Packages to hide: %d. Type `%s' to toggle or `%s' to customize"
(length hidden)
- (substitute-command-keys "\\[package-menu-toggle-hidding]")
+ (substitute-command-keys "\\[package-menu-toggle-hiding]")
(substitute-command-keys "\\[customize-variable] RET package-hidden-regexps")))))