Subject: lisp-complete-symbol PREDICATE argument non-functional since 24.4

From: Glenn Morris <[email-masked]>
Date: Wed, 29 Apr 2015 03:03:10 -0400

Package: emacs
Version: 24.4

emacs -Q

Insert "(define-m" in scratch.
M-: (lisp-complete-symbol 'commandp)

Emacs 24.3 correctly returns:

Possible completions are:
define-mail-abbrev <f>
define-mail-alias <f>
define-mode-abbrev <f>

Emacs 24.4 and later return:

Possible completions are:
define-mail-abbrev      define-mail-alias
define-mail-user-agent  define-minor-mode
define-mode-abbrev

The PREDICATE argument does nothing. At the very least, the function's
documentation needs updating. (Obsoleting lisp-complete-symbol doesn't
obviate the need for doing that.)