Subject: bug#60252: 29.0.60; help-fns--describe-function-or-command-prompt asks for confirmation

From: Juri Linkov <[email-masked]>
Date: Fri, 23 Dec 2022 09:02:04 +0200

>> I suggest
>>
>> (define-key minibuffer-local-must-match-map (kbd "RET") #'minibuffer-
>> force-complete-and-exit)
>
> Why?
>
> Needing to do that is something new.  The binding has
> been `minibuffer-complete-and-exit' since Day One.

I tried to check the function bound to RET in the minibuffer,
but in Emacs 29 typing 'C-h f C-h k RET' raises an error:

Debugger entered--Lisp error: (wrong-type-argument consp nil)
  event--posn-at-point()
  event-end(13)
  help--analyze-key("\15" [return] nil)
  #f(compiled-function (x) #<bytecode 0x8dc81a7f13b6e25>)(("\15" . [return]))
  mapcar(#f(compiled-function (x) #<bytecode 0x8dc81a7f13b6e25>) (("\15" . [return])))
  describe-key((("\15" . [return])))
  funcall-interactively(describe-key (("\15" . [return])))
  command-execute(describe-key)
  completing-read-default("Describe function: " help--symbol-completion-table
    #f(compiled-function (f) #<bytecode 0x17c923a28e18507a>) confirm nil nil nil nil)
  help-fns--describe-function-or-command-prompt()
  command-execute(describe-function)