* lisp/calc/calc-ext.el (calc-execute-extended-command): Use
M-x's ':affixation-function' to show the keybinding of the calc
command next to its name. (Bug#74829)
(cherry picked from commit
aaacd5806c75019b052a69764ef4d193d243573c)
(interactive "P")
(let* ((prompt (concat (calc-num-prefix-name n) "M-x "))
(cmd (intern
- (completing-read prompt obarray 'commandp t "calc-"
- 'calc-extended-command-history))))
+ (let ((completion-extra-properties
+ (list :affixation-function
+ #'read-extended-command--affixation)))
+ (completing-read prompt obarray 'commandp t "calc-"
+ 'calc-extended-command-history)))))
(setq prefix-arg n)
(command-execute cmd)))