Subject: bug#55430: 29.0.50; choose-completion errors when completion-show-help and completions-header-format are nil

From: Juri Linkov <[email-masked]>
Date: Sun, 15 May 2022 21:39:17 +0300

forcemerge 55289 55430
thanks

>     1. emacs -Q
>     2. M-: (setq completion-show-help nil completions-header-format nil)
>     3. M-x M-v
>
> Note how the cursor is not on the first candidate.  If you move to the
> first candidate, then type RET, it errors with the following backtrace
> for me.
>
> Sorry if this is a duplicate report.

It is.  But no problem, thanks for the bug report.
It will be fixed with bug#54374 and bug#55289.

> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>   get-text-property(nil completion--string)
>   choose-completion(13 nil)
>   funcall-interactively(choose-completion 13 nil)
>   call-interactively(choose-completion nil nil)
>   command-execute(choose-completion)