GNU bug report logs - #73234
30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf

Previous Next

Package: emacs;

Reported by: Morgan Willcock <morgan <at> ice9.digital>

Date: Fri, 13 Sep 2024 19:24:02 UTC

Severity: normal

Found in version 30.0.91

Full log


Message #23 received at 73234 <at> debbugs.gnu.org (full text, mbox):

From: Eshel Yaron <me <at> eshelyaron.com>
To: Morgan Willcock <morgan <at> ice9.digital>
Cc: 73234 <at> debbugs.gnu.org
Subject: Re: bug#73234: 30.0.91; completion-preview-mode doesn't trigger for
 case-insensitive capf
Date: Tue, 17 Sep 2024 21:03:52 +0200
Eshel Yaron <me <at> eshelyaron.com> writes:

[...]

>>> If case is not important, and you're fine with completing "tes" in your
>>> example to "testSymbol", then setting completion-ignore-case to non-nil
>>> should get you there, IIUC.
>>
>> I found out the hard way that completion-ignore-case isn't something
>> that can be set as buffer-local:
>>
>> https://lists.gnu.org/archive/html/emacs-devel/2024-03/msg00302.html
>>
>> I wouldn't want to set case-insensitivity globally.
>
> I'll take a closer look at that discussion, but I'm pretty sure you can
> in fact set completion-ignore-case buffer-locally.  It works as expected
> in my quick tests, and it's done in other places in Emacs already :|

FYI, I've added a new user option completion-preview-ignore-case on the
master branch (commit f1794a17b62), which controls case sensitivity for
Completion Preview mode specifically.  This is definitely safe to set
buffer-locally.  The docstring of this new variable should hopefully
also explain exactly what's the expected behavior in this regard.


Cheers,

Eshel




This bug report was last modified 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.