Subject: bug#54374: 29.0.50; previous-completion fails at beginning of completions buffer

From: Juri Linkov <[email-masked]>
Date: Sun, 13 Mar 2022 19:39:13 +0200

X-Debbugs-Cc: Philip Kaludercic <[email-masked]>

This is not reproducible in Emacs 28, so looks like a recent regression:

0. emacs -Q
1. M-x TAB
2. move point to the beginning of the *Completions* buffer
3. type S-TAB (<backtab>)

Debugger entered--Lisp error: (args-out-of-range 0 0)
  get-text-property(0 mouse-face)
  next-completion(-1)
  previous-completion(1)
  funcall-interactively(previous-completion 1)
  command-execute(previous-completion)
  completing-read-default("M-x " ...)
  read-extended-command()
  command-execute(execute-extended-command)