Subject: bug#39436: closed (Re: bug#39436: 27.0.60; Documentaion error for package-menu-hide-package)

From: Pieter van Oostrum <[email-masked]>
Date: Wed, 11 Mar 2020 08:36:53 +0100

Stefan Kangas <[email-masked]> writes:

> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
> index 43eb038a86..7dbb99684f 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -3190,8 +3190,11 @@ 'package-menu-refresh
>  
>  (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 saved for future Emacs sessions in the user option
> +`package-hidden-regexps'."

This could be interpreted that only this regexp is saved. In reality it is the collective list of the regexps that have been entered in this way, that is saved, until the option is cleared/changed.

So it would be better to say something like
The collected regexps are saved...
-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]