Subject: bug#75544: 31.0.50; Completion preview does not work together with variable-pitch-mode by default

From: Eshel Yaron <[email-masked]>
Date: Tue, 14 Jan 2025 07:51:48 +0100

Hi,

Terje Larsen <[email-masked]> writes:

> - M-x 'variable-pitch-mode'
> - M-x 'completion-preview-mode'
> - Type 'eval'
> - Notice that the preview is inserted in the middle of the text and the
>  'l' is in the end and now you cannot get rid of this text without
>  reloading the mode.
> - You can also see the error that caused this in the '*Messages*'
>   buffer:
>
> Error in post-command-hook (completion-preview--post-command):
> (excessive-lisp-nesting 1601)
>
> The source of this is the recent commit 81cf42c8af75b9ee2f2cee36254e3286b2077cbc
> 'Auto-adapt completion preview background color'

Thanks for the detailed bug report!

I've confirmed the issue and pushed a fix in commit 0226d357946, could
you please pull from master and check that it works correctly now?

Best regards,

Eshel