Subject: bug#39861: master; Documentation of package-menu--generate incomplete

From: Pieter van Oostrum <[email-masked]>
Date: Tue, 03 Mar 2020 16:30:10 +0100

Pieter van Oostrum <[email-masked]> writes:

> In the master branch, the documentation string of
> `package-menu--generate' is missing the description of the
> `remember-pos' parameter.
> Originally it contained:
>
> If REMEMBER-POS is non-nil, keep point on the same entry.
>
> but this line disappeared in commit aea12d4903.

Here is a patch:

>From 8bbb779bfa70f91641d7ebd508bd1506452f65b7 Mon Sep 17 00:00:00 2001
From: Pieter van Oostrum <[email-masked]>
Date: Tue, 3 Mar 2020 16:27:21 +0100
Subject: [PATCH] * lisp/emacs-lisp/package.el (package-menu--generate): Fix
 docstring

Add REMEMBER-POS to docstring (bug#39861)
---
 lisp/emacs-lisp/package.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 43eb038a86..6d6b31f1f3 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -3042,6 +3042,7 @@ package-menu--display
 
 (defun package-menu--generate (remember-pos &optional packages keywords)
   "Populate and display the Package Menu.
+If REMEMBER-POS is non-nil, keep point on the same entry.
 PACKAGES should be t, which means to display all known packages,
 or a list of package names (symbols) to display.
 
-- 
2.25.1

-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]