Subject: Re: bug#61308: 28.2; icomplete --- Error in post-command-hook: wrong-type-argument

From: Juri Linkov <[email-masked]>
Date: Thu, 09 Feb 2023 20:09:34 +0200

close 61308 30.0.50
thanks

>> diff --git a/lisp/icomplete.el b/lisp/icomplete.el
>> index 014f38b2024..97457832e2c 100644
>> --- a/lisp/icomplete.el
>> +++ b/lisp/icomplete.el
>> @@ -686,6 +686,8 @@ icomplete-exhibit
>>  Should be run via minibuffer `post-command-hook'.
>>  See `icomplete-mode' and `minibuffer-setup-hook'."
>>    (when (and icomplete-mode
>> +             ;; Check if still in the right buffer (bug#61308)
>> +             (or (window-minibuffer-p) completion-in-region--data)
>>               (icomplete-simple-completing-p)) ;Shouldn't be necessary.
>>      (let ((saved-point (point)))
>>        (save-excursion
>
> This solved the problem, thank you!  🤝
>
> I hope this path gets merged upstream.

Now merged to master.  Thanks for the bug report.