Subject: Re: bug#53367: 29.0.50; tramp-debug-buffer-command-completion-p fails in empty buffers

From: Michael Albinus <[email-masked]>
Date: Wed, 19 Jan 2022 17:18:20 +0100

Koen van Greevenbroek <[email-masked]> writes:

Hi Koen,

> Starting from `emacs -Q`:
> 1. Evaluate the following:
> (require 'tramp)
> (setq read-extended-command-predicate
>       #'command-completion-default-include-p)
> 2. Open any empty buffer.
> 3. Press 'M-x TAB' to trigger a completion.
>
> We get the following message: "read-extended-command-predicate:
> tramp-setup-debug-buffer: Args out of range: #<buffer *scratch*>, 1,
> 10".

Thanks for the bug report and the analysis! I've fixed this in master.

> Cheers,
> Koen

Best regards, Michael.