all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Morgan Willcock <morgan@ice9.digital>
Cc: 73234@debbugs.gnu.org
Subject: bug#73234: 30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf
Date: Tue, 17 Sep 2024 21:03:52 +0200	[thread overview]
Message-ID: <m1zfo685lz.fsf@dazzs-mbp.home> (raw)
In-Reply-To: <m1ttehbet9.fsf@dazzs-mbp.home> (Eshel Yaron's message of "Sun, 15 Sep 2024 08:40:02 +0200")

Eshel Yaron <me@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





  reply	other threads:[~2024-09-17 19:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-13 19:23 bug#73234: 30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf Morgan Willcock
2024-09-14  6:07 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14  9:53   ` Morgan Willcock
2024-09-14 16:23     ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 20:46       ` Morgan Willcock
2024-09-15  6:40         ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-17 19:03           ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-09-18 20:23             ` Morgan Willcock
2024-09-19  5:39               ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-19 14:59                 ` Morgan Willcock
2024-09-20  9:27                   ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-20 10:05                     ` Morgan Willcock
2024-09-20 10:34                       ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1zfo685lz.fsf@dazzs-mbp.home \
    --to=bug-gnu-emacs@gnu.org \
    --cc=73234@debbugs.gnu.org \
    --cc=me@eshelyaron.com \
    --cc=morgan@ice9.digital \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.